Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Jan 9, 2009

LabVIEW Simulation Interface Toolkit

1 ratings | 3.00 out of 5
Print

Overview

The National Instruments LabVIEW Simulation Interface Toolkit gives control system design and test engineers a seamless link between LabVIEW and The MathWorks Simulink® software. With these integrated tools, engineers can build custom LabVIEW user interfaces to interactively view and control data in the Simulink® environment. By extending your Simulink® simulation software with LabVIEW, you can use The MathWorks Real-Time Workshop® to import the model into LabVIEW to integrate with real-time (RT) hardware I/O. With these capabilities, you can take a control model from software verification to real-world prototyping and hardware-in-the-loop simulation.

Descriptions

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.

Demos


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

Documentation


     

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:

• NI-DAQ
• National Instruments data acquisition hardware

Pricing and Purchasing


NI LabVIEW Simulation Interface Toolkit

 

Downloads

userguide.pdf

datasheet.pdf

manual.pdf

1 ratings | 3.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).