Simulating External Models (Control Design and Simulation Module)
- Updated2023-03-14
- 2 minute(s) read
LabVIEW users can use the External Model Interface (EMI) to simulate an external, or third-party, model in the LabVIEW Control Design and Simulation Module. Use the External Model function to represent and simulate the model. Refer to the Example 2: Simulating an External Model topic for an example of simulating an external model.
Complete the following steps to simulate an external model.
- Create a new VI.
- Add a Control & Simulation Loop to the block diagram.
Add
- Add an External Model function to the block diagram inside the Control & Simulation Loop.
Add
- In the Select an External Model Library dialog box that appears, browse to the shared library corresponding to the model you want to simulate.

Note If you reference an invalid shared library, the Select an External Model Library dialog box returns an error. - If the model requires model configuration parameters, enter the parameters in the Configuration parameters text box. Refer to the documentation for the external model, if available, for more information about required model configuration parameters.
- Click the OK button to close the Select an External Model Library dialog box. The External Model function now represents the model corresponding to the shared library you selected. You can configure the External Model function as you do other Simulation functions.
If the shared library you reference from an External Model function changes, right-click the External Model function and select Relink to External Model Library from the shortcut menu to reference the modified shared library. If you want to reference a different shared library from the External Model function, right-click the External Model function and select Select External Model Library from the shortcut menu to display the Select an External Model Library dialog box. Then select the new shared library you want to reference.