NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass string and numeric array in the same parameter from TestStand to CVI

Hi,

I am looking for a solution to able to pass string and numeric array TestStand variable in the same parameter into my dll.
The string is an array of char numeric to me so I would expect that TestStand handle the same way and it can send TS string variable as array of char numbers.
But unfortunately TS handle it separately and need different Property settings for string and for char numeric array.

Is there any way to pass any of them into the dll in the same parameter with the same Property settings?
Or is there any easy way to get the array representation of a string in TS?

Or is it possible to modify property settigs dynamically?

Thanks,

ArrayOfNumber and String into the same parameter.png

 

0 Kudos
Message 1 of 3
(1,234 Views)

Hi,

Please look at this article. In this article you can find how to use cluster parameters. 

https://zone.ni.com/reference/en-XX/help/370052AA-01/tsref/infotopics/labview_cluster_params/

bhovhann
0 Kudos
Message 2 of 3
(1,172 Views)

A teststand property can't be a numeric array and a string at the same time. I think you are searching for a way to type cast a string into a byte array, but I am not sure about what you are really asking for. 

You seem to have a choice of multiple available implementations in the DLL, but you can't dynamically select one of them in the same step, using only a "variant" kind of parameter.

Perhaps this one helps: 

https://forums.ni.com/t5/NI-TestStand/String-to-Byte-Array/td-p/3582576?profile.language=en

  

0 Kudos
Message 3 of 3
(1,156 Views)