How can I export the block configuration settings in a Simulink Model built from Xilinx System Generator for DSP blockset?

How can I export the block configuration settings in a Simulink Model built from Xilinx System Generator for DSP blockset?

Answers (1)

You can use 'Simulink.BlockDiagram.saveActiveConfigSet' to save the active configuration set of the model. You can refer to the following documentation:
https://www.mathworks.com/help/simulink/slref/simulink.blockdiagram.saveactiveconfigset.html

4 Comments

The answer addresses the export of the Simulink configuration for this model, but I'm looking to export the model configuration - each block used in the model - i.e. a Simulink model consisting of Xilinx Blocks - (obtained through System Generator for DSP) needs to be configured. When the cursor hovers over this block in Simulink there is a summary of the block configuration parameters. I want to export those parameters for the model i.e. for each block into a file.
You can use
get_param('model_name/block_name','ObjectParameters')
to extract all the properties of the specified block in the model.
Getting closer, but not yet. I have attached an example of the block configuration parameters I wish to export. These parameters are clearly known to the model and Simulink as they can be displayed by interacting with the model as I show in the attachment. Thanks for your support. I'm sure we are close to a solution.

Sign in to comment.

Asked:

on 30 Dec 2016

Commented:

on 10 Jan 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!