LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to find a more complicated example, specifically using arrays as inputs and outputs, to Code Interface Nodes.

I am a beginner in C programming and I cannot understand how to use the structures that LabVIEW creates for its arrays in C. Can anyone point me to a good example?
0 Kudos
Message 1 of 3
(2,725 Views)
An easy way to figure out how to interface with LabVIEW arrays (or any data type) is to drop a Code Interface Node on your block diagram and wire the array to the input. Then right click on the CIN and select "Create .c file" This will create the skeleton code for you, including the typedef's needed to interface with custom data types.
0 Kudos
Message 2 of 3
(2,725 Views)
Check the following answer that I posted recently to a similar question.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000006D1E0000

Good luck!
Vargas
www.vartortech.com
0 Kudos
Message 3 of 3
(2,725 Views)