NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand-How do I determine the step type of the current step in the MainSequence from a LabVIEW VI called from a sub sequence?

I am attempting to modify the 'Test Failure Dialog.vi' in the LVTECompatibility folder supplied with TestStand. I would like to format the message based on Step Type of the MainSequence step currently being executed. This routine uses the 'RunState.Caller.RunState.Caller.Step' object to access the step properties, but there is no property for Step Type. I could use the Step Description field to get this information, but it does not seem to be available as a property. It there a way to get this information?
0 Kudos
Message 1 of 4
(3,904 Views)
Hi,
Here is a small example showing how to get the type etc of a step

Regards
Ray Farmer
Regards
Ray Farmer
Download All
0 Kudos
Message 2 of 4
(3,904 Views)
Thanks for your response. However, your response shows me how to get step properties for the current step in the invoking sequence(Sequence Context). What I need is a way to get a reference to to the Main sequence(or one level above the Sequence Context), so that I can look at properties of the current step in that sequence. TIA for any input you may have.
0 Kudos
Message 3 of 4
(3,904 Views)
Hi,

I have modified the Test Failure Dialog.vi to display the Step Type Information along with the Failed Step name.

The test failure sequence file contains a demo vi. Actual it one from the Computer Motherboard Test Sequence. It has the Failure path set to call a sequence. Added to the sequence is the Test Failure sequence etc.

The modification are a bit messy but I hope it gives a bit more information from my last example.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,904 Views)