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: 

Loop while expression shared in multiple execution of the same sequence

Solved!
Go to solution

Hi everyone,

 

I'm using a custom Model derived from the sequentialModel (that's a requirement).

I need to run the same sequenceFile in a parrallel mode. My  sequence contains only a step with a custom loop, if I change programmaticaly the LoopWhileExpression in one thread, it also changes all the other thread running the same sequence, how can I prevent that ?

 

Is there any way to change the LooWhileExpression in one thread without an impact on the others ?

 

Thank you !

0 Kudos
Message 1 of 2
(2,145 Views)
Solution
Accepted by topic author romainvannier

If anyone is interested, I found a solution :

When setting the loop expressions of a step in the process model, I was giving them a static value every sequences shared.

I solved it by using expression using Locals tha way each sequences could have a different loop condition.

0 Kudos
Message 2 of 2
(2,044 Views)