Difference between revisions of "Creating a block in Simulink"

From OpenMBD
Jump to: navigation, search
(Created page with "With all files in place, a new block can be created. *Open the Simulink Library Browser *Drag-and-drop a Level-2 MATLAB S-Function into the project File:level_2_matlab_s_fun...")
 
Line 2: Line 2:
 
*Open the Simulink Library Browser
 
*Open the Simulink Library Browser
 
*Drag-and-drop a Level-2 MATLAB S-Function into the project
 
*Drag-and-drop a Level-2 MATLAB S-Function into the project
[[File:level_2_matlab_s_function.PNG|200px]]
+
[[File:level_2_matlab_s_function.PNG]]
 
* Right-click the block
 
* Right-click the block
 
*Select Block Parameters (M-S-Function)
 
*Select Block Parameters (M-S-Function)
 
*Fill in the parameters as follows:
 
*Fill in the parameters as follows:
[[File:level_2_matlab_s_function_parameters.png|200px]]
+
[[File:level_2_matlab_s_function_parameters.png]]
 
*Close the dialog
 
*Close the dialog

Revision as of 14:48, 28 February 2019

With all files in place, a new block can be created.

  • Open the Simulink Library Browser
  • Drag-and-drop a Level-2 MATLAB S-Function into the project

Level 2 matlab s function.PNG

  • Right-click the block
  • Select Block Parameters (M-S-Function)
  • Fill in the parameters as follows:

Level 2 matlab s function parameters.png

  • Close the dialog