ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to Array defined in DLL

Hello !
I defined a 1D array in a DLL and want to access this array from LabView. How do I pass the pointer to the first element from the DLL to LabView ?
 
Thanks !
Thomas !
0 Kudos
Message 1 of 3
(2,968 Views)
There is an example that ships with LabVIEW that goes into all the details on how to do this. Search for "Call DLL" in the NI Example Finder.
0 Kudos
Message 2 of 3
(2,957 Views)

Simple.  Initialize your Labview 1D Array and pass into the Call Library Node.  The Call Library parameter must be defined as such:   Type=Array, Data Type= whatever you need (U8, U16, etc), Dimensions=1, Array Format=Array Data Pointer.

Message Edited by tbob on 11-09-2006 10:20 AM

- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 3
(2,953 Views)