NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

csv property loader can't load comma seperated string variables

Hi,
 
I have a csv file and a local varible for in my sequence called ioList.  I'd like to have ioList as a comma seperated list of strings in the properties file that I am laoding.
 
I've tried enclosing the list in single/double quotes but have not had any luck loading the variable.  I can load it if I switch the file format to be tab delimited, but csv is cleaner to maintain/read.  Is it possible to load comma seperated strings into a variable when using a csv file?
 
The properties file has
 

<Locals>,VariableValue

So I'd expect the parser to only check for the first comma when it encounters this block but something like

ioList,Dev1/port0/line1,Dev1/port1/line5

get's imported as ioList = Dev1/port0/line1 (The second part is rejected)

 

 

Thanks
 
0 Kudos
Message 1 of 3
(3,085 Views)
Chilango,

I'd recommend taking a look at this post, especially the recommendation to use the Import/Export to create a csv file and then compare it with what you have already and see what TestStand is expecting.
Test Engineer - CTA
0 Kudos
Message 2 of 3
(3,069 Views)

Hi John,

When I export via the import/export properties option in tools I get a file similar to what I created by hand.  The local variable that has a comma separated list get's generated as ;

<Locals>,Variable Value

List,"Dev1,Dev2,Dev3"

However if I try and load this properties file I get an error when loading the above line.  So TestStand couldn't load the property file that it generated???

It seems to be an issue with the extra commas in the string list and how the parser is behaving.  Looks like a bug in TestStand but for now I'm just using a tab separated file as it works with this format no problem.

 

Thanks

 

 

0 Kudos
Message 3 of 3
(3,064 Views)