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.
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.
07-22-2005 06:47 AM
07-22-2005 01:52 PM - edited 07-22-2005 01:52 PM
Hi,
How are you looping on the step?
Are you executing it interactively or you just set the number of loops in the step properties/loop options?
Remember that if you loop on the step interactively you create a new interactive execution and the RunState.LoopIndex is not updated.
If you loop on the step by setting the step's loop options you can access RunState.LoopIndex.
The easiest way to prove it is creating a sequence containing a Message Popup step and displaying the RunState.LoopIndex every time the step is executed.
See attached file.
Hope it helps.
Message Edited by Antonio Lie (NI) on 07-22-2005 01:54 PM
07-23-2005 04:47 AM
Hi Antonio Lie,
I am looping the sequence using Step - Properties (LoopOptions).
Trying to access RunState.LoopIndex by Teststand API given below.
TS_PropertyGetValNumber(testData->seqContextCVI, &errorInfo, "RunState.LoopIndex", 0, LoopCount);
07-25-2005 09:13 AM
07-25-2005 11:17 AM
07-25-2005 02:34 PM