NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand Expression to Build Array

Solved!
Go to solution

Hi Everyone,

 

I have a requirement to build an array in TestStand. The idea is to maintain a Variable called "Locals. DB" in my main sequence as below

VipinAMP_1-1687368805211.png

 

Can you please help me to find how to append the values to this variable during the execution of each test case (It's similar to Result list variable in TestStand)

 

Thanks,

Vipin

0 Kudos
Message 1 of 3
(1,065 Views)
Solution
Accepted by topic author Vipin@AMP

2 potential options:

 

Option 1-

Locals.DB += {Locals.Current}  where current is a container that matches the container in DB and has the actual values you want to insert.

 

Option 2-

There's a demo here that shows how to do it through the API: https://forums.ni.com/t5/NI-TestStand/Dynamic-Measurement-name/m-p/659622?query.id=288653#M18421

 

Hope this helps,

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

Hi ,

 

Thanks for the reply. I will try this and update here

0 Kudos
Message 3 of 3
(979 Views)