The Simulation Interface Toolkit provides methods for:
- Creating a LabVIEW user interface for a Simulink® model.
- Converting the Simulink® model into a dynamic link library (DLL).
- Mapping CAN, FPGA, or Analog I/O to model imports and outports
- Running the model on an RT target for HIL simulation or rapide control prototyping.
By combining the capabilities of Simulink® and Real-Time Workshop® with LabVIEW, the Simulation Interface Toolkit helps you import simulation models into LabVIEW.
Create a LabVIEW user interface for a Simulink model
On the host computer, you create a host VI. The front panel of the host VI provides the user interface to the Simulink® model. This front panel contains LabVIEW controls and indicators that correspond to the Simulink® parameters and sinks that you want to modify and display. You can change the values of controls and immediately view the results of that change in the indicators.
The block diagram of the host VI contains the code that connects front panel controls and indicators with model parameters and sinks. You use the SIT Connection Manager dialog box to generate this block diagram code automatically.
The Simulation Interface Toolkit installs a User Interface palette that contains VIs with which you can build customized block diagrams. You can use these User Interface VIs to replicate the block diagram code generated by the Simulation Interface Toolkit.
Using the Simulation Interface Toolkit, you can connect multiple VIs created on the host computer to the same Simulink® model. You also can connect multiple Simulink® models on the same computer to a single VI created on the host computer.
Convert a Simulink model into a dynamic link library (DLL)
You can run a Simulink® model on an RT target. For this, you use Real-Time Workshop® to convert the model file (.mdl) into C code. Real-Time Workshop® then uses Microsoft Visual C++ to compile the C code into a model DLL that LabVIEW calls. The Simulation Interface Toolkit automatically builds a model VI that calls the model DLL.
Run a simulation model on an RT target
When you create the model DLL, you create a simulation model that can run on an RT target. When you run the host VI, you can choose to download the model DLL and model VI to an RT target. The Simulation Interface Toolkit then starts the SIT Server on the RT target. The host VI communicates with the model VI and model DLL through the SIT Server.
MATLAB®, Real-Time Workshop®, and Simulink® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.
Simulation Interface Toolkit Video Demonstration
LabVIEW Simulation Interface Toolkit Interactive Tutorial
Building a LabVIEW User Interface for a Simulink Model with the LabVIEW Simulation Interface Toolkit
Using CAN with the LabVIEW Simulation Interface Toolkit
Using CAN with the LabVIEW Simulation Interface Toolkit – ABS Brake Model
4. System Requirements
To use the Simulation Interface Toolkit, you must be a properly licensed user of and have the following software installed on the host computer (the host computer is the computer where you create the LabVIEW user interface and must be a PC with a Windows operating system):
• The MathWorks MATLAB® 6.0 or later
• The MathWorks Simulink® 4.0 or later
• The MathWorks Real-Time Workshop® 4.0 or later
• Microsoft Visual C++ 5.0 or later
• National Instruments LabVIEW 7.0 or later, Full or Professional Development Systems
To use the Simulation Interface Toolkit with RT Series hardware, you must have the following software and hardware:
• National Instruments LabVIEW Real-Time Module
• National Instruments RT Series hardware
To use the Simulation Interface Toolkit for data acquisition (DAQ) applications, you must have the following software and hardware:
• National Instruments data acquisition hardware
5. Pricing and Purchasing