NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a message popup and keep the sequence running ?

I have some steps in my sequence to initialize communication ports that takes a few seconds. As i have the trace off i want to display a message popup to tell the user that the sequence is doing the init. After the init steps are done i want to close the popup out of the sequence without pressing any button.

Is there a possibility in TestStand to do this ?

The normal Message popup stays until a key is pressed and even pauses the sequence while active.

Thank for help.
0 Kudos
Message 1 of 5
(4,858 Views)
We've done this using C code to generate a dialog that has the test stand context, and when the driver call was finished then it would close. You could accomplish the same effect with a simple C based (or LabView) based dll that generated a popup from a sequence that runs in it's own thread (called from your setup, for example). It would monitor a flag variable in a loop internal to the dll in test stand that would be set when you're done doing what you needed to do (in cleanup for example), which would then allow the loop to exit the dll and end the seperate thread (which is only there to generate the popup).

Hope this helps.
0 Kudos
Message 2 of 5
(4,843 Views)
You could call your message popup in a subsequence as new execution and terminate this execution programmatically after your init steps have finished.

In order to do this you have to specify (module) the sequence call step that calls your subsequence:
-Multithreading and Remote Execution = Run in a New Execution
-Settings: Initally Hidden and Tracing disable, Restartable, Close Window when done, Wait for Execution to complete: Do not wait, Process Model Option: Do not use a Process Model
-Store an Object Reference to the New Execution in: e.g. Locals.ExecutionRef

After your Init steps you insert a ActvieX/COM Action Step that terminates the new execution:
-Object Reference: Locals.ExecutionRef
-Automation Server: NI TestStand API 3.1
-Object Class: Execution
-Call Method or Access Property: Call Method
-Method: Terminate

This will terminate your new execution showing the message popup.
0 Kudos
Message 3 of 5
(4,807 Views)
Hi,

There are examples for creating a splash screen, here is a example


and an example of updating a panel from testand, here

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 5
(4,796 Views)

Hey Ray,

the example link is not working.

regards

 

 

0 Kudos
Message 5 of 5
(3,085 Views)