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: 

Creating a wizard app using TestStand and LabVIEW

We want to create a wizard application to allow the user to navigate thru a series of steps by clicking a Next button and allow him/her to redo previous steps by clicking on a Back button.  We will write the wizard GUI in LabVIEW and want to use TestStand to store the required series of steps.   We can make the LabVIEW GUI tell TestStand which button (Next, Back, Cancel, or Done) the user clicked.  How can we make TestStand go Back one sequence step if the user clicked Back and forward to the next step if the user clicked Next?

Hans
0 Kudos
Message 1 of 3
(2,880 Views)

Hi,

You can change the next step to be actioned by changing the properties:

RunState.NextStepIndex, RunState.PreviousStepIndex and if you what to switch to a different group change RunState.StepGroup.

An example of this would be in the examples\Callbacks\SequenceFilePostStepFailure.

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(2,862 Views)
We added post expressions to the sequence steps to subtract 2 from RunState.NextStepIndex when the Back button was clicked and that works well.  One catch is that if the Back button was clicked on the last step of the Main Sequence, the sequence ends instead of executing the previous step.

Thanks for your help Ray!
Hans
0 Kudos
Message 3 of 3
(2,849 Views)