From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

Batchmodel - Reuse of created resultvalues

Hello,

i have a batchmodel with 5 batches.

Now there is a teststep that gets a value and calculates a new value as output. Now i want to use this new value as an input parameter of an other teststep.

1. Can i simply save the value in locals.value? Or 2. do i have to create an array locals.value[0..4] to save for each batch the value in its own variable?

If variant 1 is working.. is this also valid for the StationGlobals or only for locals?

 

Thx

0 Kudos
Message 1 of 2
(3,131 Views)

Locals are created per execution (per test socket in the batch case) so your option 1 (save the value in locals.value) should work.  StationGlobals are global across everything.  FileGlobals you can choose the scope as described here:

http://digital.ni.com/public.nsf/allkb/21368C716B06780A86256A5C007075DB?OpenDocument

 

Pulido Technologies LLC

Message 2 of 2
(3,129 Views)