From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, ni.com will be undergoing 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
(2,178 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
(2,176 Views)