09-22-2014 10:55 PM
Hello,
I am trying to get the results of my UUT to my custom UI. I am already using the EndExecution Callback to tell my UI when the UUT is finished executing. I was hoping ot use that same callback VI to tell my UI the result of the execution.
The EndExecution callback includes a reference to the execution. I figured I could read the "ResultStatus" Property, which seems to report "Passed" or "Failed" correctly, but if I terminate execution, it is still returning "Passed", when I would expect it to return "Terminated".
Does anybody have any thoughts on what I am doing wrong or what might be a better way to do this? I thought of just using a UI Message, but then that requires me to modify the client sequence and post the UI message with the results. I'd rather have this work for all client sequences.
Solved! Go to Solution.
09-23-2014 03:10 AM
I think you are looking for handling the UIMsg_ModelState_TestingComplete user interface message.
Refer to the help:
UIMsg_ModelState_TestingComplete–(Value: 34) TestStand process models post this message to the user interface after the MainSequence in the client sequence file returns control to the model. If the execution is not a batch controller or a parallel controller, the stringDataParam parameter specifies the UUT result status. If the execution is a batch controller or a parallel controller, the value of the stringDataParam parameter is Done. The numericDataParam parameter specifies the test-socket index. The activeXDataParam parameter contains a reference to the sequence context for the process model sequence file that posts the message.
Norbert
09-24-2014 08:59 PM
Thanks Norbert,
That worked really well. I had some trouble initially because I was trying to use the User Message callback VI, but later realized that doesn't work for the built in UI messages and you have to register the callback VI as a UIMessageEvent. Anyway, I have it working. Thanks for the suggestion!
Scott