NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Strings to an array of string doesn't dynamically load the array in Teststand

Solved!
Go to solution

Hi,

I am trying to pass a string variable to an array of string in Teststand and it doesn't seem to load the array dynamically vs if I were to pass the strings in a literal format. 

 

I have attached screen shots. I think it's to do with how Teststand does the conversion for a string variable vs literally typed out string array

 

Please advise.

Thanks,

 

0 Kudos
Message 1 of 4
(2,109 Views)

Set ListOfStrings = {"061", "062", "063", "06F"}

 

Pass Evaluate(FileGlobals.ListOfStrings) as the parameter.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(2,096 Views)
Solution
Accepted by topic author fz86

If you don't want the brackets in your fileglobal variable then you can remove them and pass

Evaluate("{" + FileGlobals.ListOfStrings + "}")

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 3 of 4
(2,094 Views)

That worked. I was almost on the verge of using the split function to pass the string into the array...

 

Thank you!! 

0 Kudos
Message 4 of 4
(2,091 Views)