NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Skip final TS status popup since using C#.NET

Solved!
Go to solution

Hi there,

 

I'm using TS2019 but wrapped in the Simple C#.Net example wrapper. I want the final pass/fail result to be embedded in the C# form and do not want the standard TS pass/fail popup to occur.

 

I've got PostUIMessageEx working so can pass parameters from TS to C# which can then indicate in my GUI the final result, however I cannot find any method of disabling the final TS status popup. Is it possible to disable or bypass in some way?

 

Thanks,

0 Kudos
Message 1 of 5
(1,998 Views)

The pass/fail message gets displayed by the PostUUT Callback in the process model. You should be able to override it, skip/delete the "Call DoPostUUT" Step, and send your UIMessage from there.

 

http://www.ni.com/product-documentation/6605/en/

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 5
(1,983 Views)

Thanks for the info - it has helped my TS understanding a little but I still can't stop the final status (pass/fail) popup to not be shown.

 

In my small test code I only have "Main Sequence" with a few trivial steps, where do I find the PostUUT callback to delete it  ?

 

Thanks,

Mark.

0 Kudos
Message 3 of 5
(1,923 Views)
Solution
Accepted by MisterVVC

This is covered in the "How to Use a Model Callback" section of that document.

  1. Add the PreUUT callback:
    callbacks.PNG
    addcallback.PNG
  2. Remove the "Call DoPreUUT" sequence call
  3. Put your replacement code here.
https://www.linkedin.com/in/trentweaver
Message 4 of 5
(1,910 Views)

Excellent - I couldn't work out how to insert the step in the first place ! Now I can try out my own code...….

0 Kudos
Message 5 of 5
(1,876 Views)