NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Loader and/or Importing variable values

How do I import a .csv file into a local variables container in TestStand?

 

I.E.  The cotainer would be udpDataIn(Container) with the following variables

index of type number

apply_doNotApply_ of type number

inputInterface of type number

udp of type number

mCastIp of type string

sourceIp of type string

alarmBitRate of type number

redundancy of type number

compareType of type number

redThrHold of type number

suspend of type number

 

 

For example if we has a .csv file that contained:

 

1,DoNotApply, GigE1, 9001, 239.255.90.1, 0.0.0.0, 95, Primary, DataRate, 10, NotSuspended

2, Apply, GigE2, 9002, 239.255.90.2, 0.0.0.0, 95, Backup, DataRate, 10, NotSuspended

Scott Saxton
Motorola
0 Kudos
Message 1 of 2
(4,262 Views)

Hi,

 

The easiest way is to work from TestStand and Use the Import/Export Tool in the Tools menu.

 

Open up the Import/Export Tool, select the file format you required, select the variable you want to export udpDataIn.

Unfortunately I believe to Export the Container you have to select the individual elements of the Container, eg udpDataIn.index

(I maybe wrong and I cannot confirm this at this moment in time as I dont have immediate access to TestStand)

When you have selected your TestStand Variable, you can then press the Export Button to create a new file. This will ensure the file generated is in the correct format.

 

Once you have the file, you can modify the values in the file, then either use the Import/Export tool to Import the new data, or use the PropertyLoader step to load in the new values at runtime.

 

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 2
(4,253 Views)