Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Converting Your Models into LabVIEW Code (Control Design and Simulation Module)

LabVIEW 2012 Control Design and Simulation Module Help

Edition Date: June 2012

Part Number: 371894G-01

»View Product Info

Select Tools»Control Design and Simulation»Simulation Model Converter to display the Simulation Model Converter dialog box.

The Simulation Model Converter executes the following steps:

  1. Uses The MathWorks, Inc. MATLAB® application software and The MathWorks, Inc. Simulink® application software to compile your .mdl file and execute any of your .m files that you specify in the dialog box. The MATLAB software obtains the values of any parameters and equations that your .m file contains. The Simulation Model Converter then passes these values from the MATLAB software to LabVIEW. If the MATLAB software is not installed on the same computer as the LabVIEW Control Design and Simulation Module, the results of the conversion might be less accurate.
  2. Parses your .mdl file for model information such as timing and ordinary differential equation (ODE) solver settings.
  3. Stores each system, subsystem, block, and line in an XML-based Common Graph Description (CGD) format.
  4. Generates a LabVIEW simulation subsystem corresponding to each model subsystem, in order. Converting in order ensures that the Simulation Model Converter generates every LabVIEW subsystem that has a parent simulation diagram before generating the parent simulation diagram. The Simulation Model Converter converts all blocks into one or more LabVIEW functions or simulation subsystems. The Simulation Model Converter also converts lines into wires that connect terminals on the LabVIEW functions and simulation subsystems.


 Was this document helpful?  submit
  Helpful Not Helpful