From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to copy array of values that is located in Excel to TestStand FileGlobals

I have a little table of parameters in Excel file.
For example it seems so:
 
Modulation_mode Upconversion_mode
1 3
2 4
 
And I have 2 FileGlobals in my sequence: Modulation_mode (array of numbers) and Upconversion_mode (array of numbers).
I want to copy a table from Excel table to my FileGlobals accordingly.
How can I do it  ?
0 Kudos
Message 1 of 8
(4,073 Views)

Hi,

 

Try using the property loader step type.

Attached is an example.

 

Regards

Ray Farmer

Regards
Ray Farmer
Download All
0 Kudos
Message 2 of 8
(4,069 Views)

Hi, Roy, thank you for example, it works.

But a table in .xls file became to be terrible.

I have to have this file in simple mode (for user) such as

Modulation_mode

1

2

4

without "terrible" string

 

Modulation_mode <Prop Name='Modulation_mode' Type='Array' LBound='[0]' HBound='[1]' ElementType='Number'><Value ID='[0]'>1</Value><Value ID='[1]'>2</Value></Prop>

Is this any way to do it beatiful ?

Just values in the table?

0 Kudos
Message 3 of 8
(4,064 Views)
Hi,
 
Yes it is a bit messy.
Try this example.
 
There is a down side to defining every element of the array.
 
Look at the PropertyLoader step properties between the two steps.
 
Regards
Ray Farmer
Regards
Ray Farmer
Download All
0 Kudos
Message 4 of 8
(4,058 Views)
Ok, Ray, Thank's.
0 Kudos
Message 5 of 8
(4,046 Views)

Hi Ray,

 

Is this still the only way of loading a set of variables using excel, or do any of the later versions of TestStand have the capacity to read an excel file without all the formatting?

 

Sean

0 Kudos
Message 6 of 8
(3,445 Views)

Hi SeanJ,

 

I used LabView to do this. I had a table of parameters in excel and I build a VI that extract this parameters in different way. This isn't the faster way to extract information (you need to open a file with LabView and than read your variables) but it works wery well because you can customize everything.

 

Otherwise, you can format the excel file like a text file with tabulation and than read the text file with TestStand, but I think that you have to re-format the information with a VI or similar for use that easily.

 

Good work,

 

Sem

Message 7 of 8
(3,431 Views)

Replying so I can check this thread on another machine.

0 Kudos
Message 8 of 8
(1,387 Views)