11-03-2009 09:22 AM
Hi all,
in my custom operator interface i register the EndExecution event callback in order to accomplish several final operation.
What i cannot do is to retrive the sequence result ("Passed" or "Failed", exactly the one displayed in the default report under the voice "UUT Result") using API properties or methods.
I've alredy tried Execution.ResultStatus property and SequenceContext.SequenceFailed property, but none of them works.
How can i get the sequence result?
Thanks
Solved! Go to Solution.
11-03-2009 10:09 AM
I am not sure if you can retrieve information about the UUT status when the execution is not running anymore.
I suggest you to use an UI message in your process model which forwards the UUT status to your UI.
The UUT status can be found in the local variable ResultList in your process model's Execution Entry Point (Test UUTs or Single Pass) in the following lookup string:
Locals.ResultList[0].Status
hope this helps,
Norbert
11-08-2009 11:28 AM
I've spent hours trying to retrive the sequence result, but i haven't succeeded.
I found an alternative method to get it. It consists in creating a global "Boolean" variable, initializing it to "True" before the execution starts, using the AND boolean operator with it and with any of the sequence test step result (which i get every time a step has been completed via the "TraceEvent" callback) and displaying its value after the execution ends. If the variable value is still "True", none of the steps failed, if it is "False", at least one of the steps failed.
Ok, this method work... but this isn't what i want!
The fact is that i want to retrive the result directly (using API methods or properties), and not implicitly, from TestStand, without make any modifications in TestStand itself (for example adding steps to the sequence).
I really need help!!!
11-08-2009 09:29 PM - edited 11-08-2009 09:35 PM
The process models already generate a "TestingComplete" UI Message that you can register an event callback on. It also passes the result status as part of the string parameter. The attached LV snippet show what the callback VI might contain to handle the event. If you need to process other UI event codes you can wire the event number directly into the case structure the event code for "TestingComplete" decimal 34.
P.S. the event is the same as Norbert pointed out, UIMessageEvent Event...
11-08-2009 09:57 PM - edited 11-08-2009 10:02 PM
One more thought...
If you need the UUT status for processing your final operations durring the EndExecution event callback I would suggest using the Event callback I described above and pass the status via the GUI (LabVIEW?) until the EndExecution event fires. Take note that the status is of the UUT tested, most likely the last one executed unless you handle them all. I point this out because the "execution" (for a Sequential Process Model) is generally all of the UUT's tested (from a Test UUT's entry point) unless you create seperate executions within your test sequence (i.e. the sequential process model - Test UUTs - has only one execution and loops for each UUT).
(P.S. An "execution" status does not equal a UUT test status)
11-09-2009 01:10 AM