NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

passing array of strings from Teststand to LV dll

Solved!
Go to solution
Solution
Accepted by topic author Madottati

Madottati,

 

I've attached a 2010 version of the files to this message.

 

As for the "Array of Strings" option, that would be for a C DLL that was not created in LabVIEW. LabVIEW uses this special format for arrays with the dimension and array data in a struct, so we have to use the custom data type. For a regular C DLL, you can use the Array of Strings option and pass an array in as a parameter normally.

0 Kudos
Message 11 of 13
(1,490 Views)

Hi Daniel,

 

it works fine when I pass array of strings to a labview dll. But it doesn't work in the other direction, if the dll returns an array of strings. TS says:

 

Expected instance of type LVArray, passed object without type.
Error in parameter 1, 'arg1'.

 

But I use the same type, as you sent me in the example.

 

Madottati

0 Kudos
Message 12 of 13
(1,439 Views)

Sorry Daniel,

 

the variable passed from the dll function to TS should also have the type LVArray. Now it works. Thank You!

 

Madottati

0 Kudos
Message 13 of 13
(1,437 Views)