NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand call back method to user interaface after sequence execution completes

Hi,

I am using customized teststand simple user interface. I have added a check box on simple user interface which should act like .

 

1. Before running the sequence, it should be enabled.

2. During sequence running, it should be disable.

3. Once sequence execution completes, the check box should be enabled .

 

i could able to do it for case 1 and 2, but for case 3, i am not sure how Teststand userinterface came to know that Teststand completes the sequence execution. I am thinking there should be call back method from teststand to simple userinterface to indicates sequence execution completes. Based on that i could enable the check box again.

 

Regards,

Anand

0 Kudos
Message 1 of 3
(2,201 Views)

Hi Anand

I would use UI Messages to pass the information about the state of a running Test Sequence to the user interface. You can learn about them here.  Its a little bit of work to get the communication mechanism going but once you have it place you can embed all sorts of information into your message(s).

 

Other UI Message related stuff:

https://forums.ni.com/t5/Example-Program-Drafts/How-to-use-User-Interface-UI-messages-in-TestStand/t...

http://zone.ni.com/reference/en-XX/help/370052W-01/tsexamples/infotopics/progress_status/

 

Steve

0 Kudos
Message 2 of 3
(2,181 Views)

Hi Anand

 

There is a callback to say that the sequence has ended. It is the Endexcution callback. You can set this up in the Simple interface as part of the Register Event Callbacks State.

 

regevent.PNG

 

Hope this helps

Mike

0 Kudos
Message 3 of 3
(2,165 Views)