NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get overall Pass/Fail from custom User Interface

Hi Guys

I’m working on a custom user interface for operators and I would like to check and display the overall Pass/Fail result of the test at certain time intervals during execution.

I added a sequence called ‘GetOverallResult’ to the ‘FrontEndCallbacks.seq’ which checks the Pass/Fail status of the sequence and I’m calling it form a SubVI within the User Interface written in LabVIEW (Check status.vi).

The problem is that I’m getting the Pass/Fail status of the CallBack sequence not the test sequence I’m running.

Could anyone please help me in this?

Download All
0 Kudos
Message 1 of 7
(4,459 Views)
Hi Attila,

Have you instead tried reading the value directly from the main sequence? Have a look at the attached VI; pass the sequence context in and the Get Property Value VI will read the sequence's state.

Is this suitable for what you had in mind?

Regards,
Tom

Applications Engineering, NI UK
0 Kudos
Message 2 of 7
(4,376 Views)
I would suggest using UI Messages for this. I haved used them with great success for about a year now. In your sequence (wherever you want) post the UI message. In your user interface you will need to setup a callback VI to handle the messages.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 3 of 7
(4,372 Views)
Guys,
 
Thank you very much for your answers I appreciate it, but the thing is that I cannot touch the main sequence because this user interface intended to be used at all test sites with all the existing test sequences and we have a lot. We cannot change all of those and this user interface should be a general user interface handling all different test sequences. And also I would like to check the overall Pass/Fail of the sequence every 5 or 10 seconds. I would not be able to do that with that method you suggested.
 
Attila
Software Engineer
Certified TestStand Developer
0 Kudos
Message 4 of 7
(4,366 Views)
Hi Attila,

I just wanted to let you know that I'm still looking into this issue for you. Can I ask how you're running the TestStand sequences? Are you calling them programmatically with a LabVIEW operator interface (such as the one at C:\Program Files\National Instruments\TestStand x.x\UserInterfaces\NI\Simple\LabVIEW), or running them from the TestStand environment?

Regards,
Tom

Applications Engineering, NI UK
0 Kudos
Message 5 of 7
(4,335 Views)
Hi Tom,
 
Yes, I'm calling the TestStand sequences from my custom user interface written in LabVIEW, but don't worry about it any more, because fortunately I could get in touch with Sacha (NI Engineer), who pointed me into the right direction, so I added the StationPostStepFailure callback sequence to the "StationCallbacks.seq" and updating a windows registry, which I can read from my user interface.
 
Thanks anyway!
 
Attila
Software Engineer
Certified TestStand Developer
0 Kudos
Message 6 of 7
(4,332 Views)
Hi,

I'm glad you've got it sorted, that's great news! I was in fact speaking with Sacha on the issue, so it's a good job you spoke with him - the man knows his TestStand!

Cheers,
Tom

Applications Engineering, NI UK
0 Kudos
Message 7 of 7
(4,327 Views)