09-27-2017 01:44 AM
Hello All,
I am working on a project where my log results is handled separately in a LabVIEW module where i keep my test data in a separate parameter.
I am calling the log results module in cleanup Step Group, during Normal Exit the Log Results will Log Normally but when it hits the Cleanup during Termination I wanted to Provide POP UP for the user Whether to log results or not based on which i need to decide my action.
Now how to find/ monitor the status of termination.
Tried with this function "RunState.Execution.GetTerminationMonitorStatus" but no use
Your suggestion will be helpful
Solved! Go to Solution.
09-27-2017 04:55 AM
Sorry I found the result in the Following way
Hope this may be useful to others
Used TetsStand API in LabVIEW in the Following way
Setup StepGroup
1.TSUtility.llb\TestStand - Initialize Termination Monitor.vi
2.
N
Main Step Group
1.
2.
N.
CleanUp Step Group
1. _TSUtility.llb\TestStand - Get Termination Monitor Status.vi (Gives termination Status)
2.
3.
4.
N._TSUtility.llb\TestStand - Close Termination Monitor.vi
09-27-2017 11:51 AM
For what it's worth, you could still do this directly in TestStand using the RunState.Execution.GetStates method; from the help:
Execution.GetStates ( runState, termState)
Returns the current state of the execution.
Note When a user interface that uses TestStand UI Controls needs to obtain the state of the execution, National Instruments recommends using the ApplicationMgr.GetRunState method or the ExecutionViewMgr.RunState property instead of directly calling the Execution.GetStates method on the execution. |
runState As ExecutionRunStates
[Out] The running state of the execution.
termState As ExecutionTerminationStates
[Out] If the execution is terminating, this value indicates how it is terminating.