NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load Arrays using 'new' Property Loader.

Solved!
Go to solution

This doesn't seem to work with the new property loader syntax.  Using TestStand 2021 - 64bit.

 

Create an array (2 elements) Locals.Ports in my sequence.

 

Property loader syntax : Tab Delimited file.

<PropertyGroup>
<PropertyGroup name='Process Setup' id='914b01e3-2b42-43b5-8293-74c56498c5f9' description='Description for Group 1'>
<Sequence> <Category> <PropertyLookup> <Value>
ProcessSetup {Locals} Ports[0] {String} com6
ProcessSetup {Locals} Ports[1] {String} com3
<PropertyGroup>

 

Here is what I get.  Only wants to load the last item in the array.  It will error if I try to select the [0] index to  load.

 

Teds_0-1708100863342.png

 

Possibly a limitation of the properly loader but since you could do it with the old type,  I wouldn't think support would be removed.

 

Am I missing something?  

 

Thanks,

PH

 

0 Kudos
Message 1 of 3
(402 Views)
Solution
Accepted by Teds

Hi ,

 

I tried with 2021 64 bit version.

I am not seeing this restriction.

But i am seeing the following difference in the exported file :

------------------

<PropertyGroup name='Group 1' id='d2635d4d-c1cf-4b7d-88c6-85400e4928a2' description='Description for Group 1'>
<Sequence> <Category> <PropertyLookup> <Value>
MainSequence {Locals} Ports {String [0] .. [1]}
MainSequence {Locals} Ports[1]
MainSequence {Locals} Ports[0]
<PropertyGroup>

------------------------------

 

Try re creating this file from the import/export tool or add the above line.

 

Ravi

Message 2 of 3
(384 Views)

Thank you Ravi.

 

That the solution. I need to remember to 'export' the properties to get the formatting correct first, instead of just adding the entries directly in the text file.

 

Thanks

PH

0 Kudos
Message 3 of 3
(357 Views)