DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 9/30/2024
Public
Document Table of Contents

15.1.5. Edit Params

The Edit Params block opens the setup_<model name>.m file. If you call your set-up script setup_<model_name>.m you can use the Edit Params block in your design as a shortcut to open the set-up file.

The Edit Params block is available as a functional block in the Simulink library browser. To view it open the library, by right clicking on the Design Configuration Blocks library in the Simulink Library Browser and select Open Design Configuration Blocks Library.

Examples of Edit Params blocks are in many of the design examples.

To call your script automatically:

  • When your model opens, add a PreloadFcn reference to your script in the Callbacks tab of your Model Properties in Simulink.
  • At the start of a simulation run, add a InitFcn reference to your script in the Callbacks tab of your Model Properties in Simulink.