From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-30-2008 08:01 PM
Solved! Go to Solution.
12-01-2008 01:20 AM
Hi,
Using the Sequence File as a reference, you can use SequenceFile.Path to return a string containing the full path to the sequence file. You will then have to strip off the Sequence File filename and extension.
Regards
Ray Farmer
12-01-2008 10:04 AM
To get the current sequence name you can use the expression: NameOf(RunState.Sequence)
Or with the TestStand API you can get the Name property from a reference to the sequence.
Hope this help,
-Doug
01-09-2009 12:42 AM
Hi,
I want to get the status of the sequence programmatically, even if when the sequence is terminated. I get the knowledge if the sequence is passed or failed using the RunState.SequenceFailed property but unfortunately I could not find a property that tells if the sequence is terminated or not. I will be glad if you can help me.
Thank you.
01-12-2009 04:50 PM
tsiltu,
The termination state is not stored with each sequence. When you terminate, you are terminating the entire execution, and all threads in it. You could use Execution.GetStates() to get the current termination state.
However, you don't mention why you want to get this information. If you are looking to get it inside of a code module, or in a TestStand step, then this is the proper way to go about it. However, if you are getting this information in a User Interface, there are better ways.
01-13-2009 01:38 AM
John,
I want to get this information in a TestStand step. I will try the method you mentioned.
Thank you
Tugba Siltu | ASELSAN
01-13-2009 10:37 AM
Tugba,
I just want to add that if you are trying to monitor for termination within your step you should use the following API instead of GetStates().
Execution.InitTerminationMonitor()
Execution.GetTerminationMonitorStatus()
Please see the help file for more information.
-Doug
07-21-2020 10:48 AM
Many thanks man, you're awesome
01-16-2023 06:45 PM
RunState.SequenceFile.AsPropertyObjectFile.DisplayName
or
RunState.Caller.SequenceFile.AsPropertyObjectFile.DisplayName