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

ID 683337
Date 12/04/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

8.4.1. Running Setup Scripts Automatically

Procedure

  1. In a Simulink model file .mdl, click File > Model properties.
  2. Select Callbacks tab.
  3. Select PreLoadFcn and type the setup script name in the window on the right hand side. When you open your Simulink design file, the setup script runs.
  4. Select InitFcn and type the setup script name in the window on the right hand side. Simulink runs your setup script first at the start of each simulation before it evaluates the model design file .mdl.