LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you pass an array of characters using the DLL functions

I have exported C code into my DLL and I want to know how to pass an array of characters using LabVIEW.
0 Kudos
Message 1 of 3
(2,444 Views)
Mont;

If you want to pass a string from LabVIEW to your dll, and you do NOT change size of the string, you can use a C String pointer (CStr), which is equivalent to (unsigned) char *.

If you do modify size of the string, pass string as a LabVIEW structure (LStrHandle).

The example "Passing a Variety of Data Types from DLL to LabVIEW" is an excellent starting point. Also make sure you check the manual "Using External Code in LabVIEW".

Regards;
Enrique
www.vartortech.com
Message 2 of 3
(2,444 Views)
Thanks. This was really helpful.
0 Kudos
Message 3 of 3
(2,444 Views)