NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

file path of a currently executing teststand test step

How do i extract the file path for the currently executing LabVIEW test step within my operator interface.

Many Thanks,

Dave.
0 Kudos
Message 1 of 3
(3,471 Views)
Hi,

I assume you need the SequenceFile Path where the LabView test step is located in TestStand.

To reach to the currently executing step SequenceFile path you have to:
1. get the SequenceContext for the execution
2. get the currently executing step from the SequenceContext (SequenceContext.Step)
3. get the sequence in which the step resides from the Step (Step.Sequence)
4. get the containing sequence file for the Sequence (Sequence.SequenceFile)
5. get the Path from the SequenceFile (SequenceFile.Path property)

In case you want to determine the VI file path for the LabView test step Module one approach is:
1. get the SequenceContext for the execution
2. get the currently executing step from the SequenceContext (SequenceContext.Step)
3. get the PropertyObject for the step (Step.AsPropertyObject)
4. get the VI relative path from the step subproperty using "TS.SData.ViCall.VIPath" lookup string (PropObject.GetValString)
5. now use the Engine.FindFile on the retrieved path at the step 4. above, to get the path to the executing VI

Hope this helps,
Silvius
Silvius Iancu
0 Kudos
Message 2 of 3
(3,447 Views)
Silvius,

I did want to determine the Vi file path for the current LabVIEW test step module, your suggestion worked a treat.

Thanks for your help.

Dave.
0 Kudos
Message 3 of 3
(3,424 Views)