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: 

How do I read the Step Index and Number of steps from the bottom right of the execution window

I would like to be able to get the step index and number of steps information from the teststand execution window to be read into CVI. How can I do this?
 
Steven Block
 
0 Kudos
Message 1 of 3
(2,812 Views)

Hi,

You can get the Number of Steps by getting the size of the array of RunState.Sequence.Main. eg GetNumElements(RunState.Sequence.Main) if you were using the expression browser.

The number of steps executed can be obtained by look at RunState.NumStepsExecuted,

There are other properties you can find in the Help of TestStand under Sequence Context.

Hope this helps

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 3
(2,806 Views)

In the OI code, you can call

ExecutionViewMgr.GetCaptionText(..)

The caption constants that would probably be of the most interest to you are:

CaptionSource_CurrentStepIndex_ZeroBased
CaptionSource_CurrentTestIndex_OneBased
CaptionSource_NumberOfSteps
CaptionSource_NumberOfTests
CaptionSource_SelectedSteps_ZeroBased
CaptionSource_SelectedTests_OneBased

 

 

0 Kudos
Message 3 of 3
(2,803 Views)