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

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Adding Hardware to a MATRIXx Model Running in LabVIEW Real-Time

3 ratings | 2.33 out of 5
Print

Downloads

Filename: sysblddll_can.vit
Requirements: View

Filename: sysblddll_daq.vit
Requirements: View

The Application note Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time describes how a MATRIXx SystemBuild model can be called from LabVIEW. The model is built into C code using AutoCode and then compiled into a DLL.

Here are two examples of how the model can be connected to hardware. Connecting a model to hardware allows for both hardware-in-the-loop (HIL) and prototyping.

* Analog Input and Output (sysbld_daq.vit): The first example shows how to do analog input and output while calling the model. The acquisition is hardware-timed. The example assumes that all the analog input channels are on the same board, and all the analog output channels are on the same board

* CAN Channels (sysbld_can.vit): The second example uses the channel API of NI-CAN 2.0. The CAN Channels may be part of the same frame or from different frames.

Related Links:
Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time

Requirements


Filename: sysblddll_can.vit

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: CAN, Multifunction DAQ (MIO)
Driver: NI-CAN 2.2

 
Filename: sysblddll_daq.vit

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.0
Language(s): LabVIEW

Hardware Requirements


Hardware Group: CAN, Multifunction DAQ (MIO)
Driver: Traditional NI-DAQ (Legacy) 7.0

 
3 ratings | 2.33 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program 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 program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM 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/).