Tuesday, December 16, 2014

running m-file from Simulink

Create Block Callbacks

You can create block callbacks interactively or programmatically.
To create block callbacks interactively:
  1. Right-click a block, and in the context menu, select Properties.
  2. In the Block Properties dialog box, select the Callback tab.
  3. Create the callback code.

To create a block callback programmatically, use the set_param command to assign MATLAB® code to the block callback parameter.
ex: 
openFcn: -> m file to run 

No comments: