LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing structure to dll function

I hava a dll function that uses structure like
Driver_Struct {
int a1,
string a2,
char a3
}

as input parameter. How can I use Labview to pass this kind of structure.

Thanks,
0 Kudos
Message 1 of 2
(2,771 Views)
Hui,
a structure is equivalent to a LabVIEW cluster. So, you would pass a cluster of 3 elements to Call Library Node Function in LabVIEW. The 3 elements would an integer and 3 strings. LabVIEW only has one type of strings, and they are equivalent to char data type in C. Since you program uses also this "string" data type, you will have to somewhat modify your program so that it understands the string passed by LabVIEW.

The following thread has information about the similar issue:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000009F5F0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Zvezdana S.
National Instruments
Message 2 of 2
(2,771 Views)