NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Gui Start Button

Solved!
Go to solution

I'm using the TestStand 2010 simple gui, (Labview).

 

Problem I have with it is that it allows you to press the "Start Test" button multiple times, creating a instance of the test seq each time the button is pressed.

This causes a big problem for my system.

 

Is there anyway to disable the "Start Test" button after it has been pressed once, or only to allow one instance of the sequence to run ?

 

Thanks

0 Kudos
Message 1 of 10
(4,771 Views)

You just have to register StartExecution and End Execution events in Configure Event Callbacks.vi

Pass your button references as User Parameters and in the former disable them and enable them back (using property nodes) in the latter and voila you are done.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 10
(4,760 Views)

Thanks for the reply!

 

What VI-REF the start and EndExecution are linked to ? (I've tried them all!)

0 Kudos
Message 3 of 10
(4,743 Views)

You need to right click on the node and select Create Callback VI.

callback.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 4 of 10
(4,732 Views)

Thanks for the help, spent over 3 hours on this today but can't get it working.

All these callbacks and events is new territory for me .....

0 Kudos
Message 5 of 10
(4,725 Views)
Solution
Accepted by topic author morngoose

No worries. Here is the project saved in LabVIEW version 8.0.

Hope that helps.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 6 of 10
(4,718 Views)

Can't seem to open the VI in Labview 2011, keeps crashing.

Sorry to be a pain, would you mind attaching a screenshot of the main VI ?

0 Kudos
Message 7 of 10
(4,702 Views)

StartExec Callback_BD.png

 

TS Simple LabVIEW OI.lvlib_Top-Level VI_BD.png

 

Event Callback.png

 

EndExec Callback_BD.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 8 of 10
(4,698 Views)

Thank you so much!!

 

0 Kudos
Message 9 of 10
(4,694 Views)

Thanks a ~ton~ .aCe. !! 

 

I will add one caveat that threw me off for a while: 

 When creating the Callbacks you have to wire the user parameter FIRST before creating the Callback VI or the VI Ref will be broken. 

 

Thanks again

Sr Test Engineer at American Innovations - LabVIEW CLA - Kudo's are appreciated!!
0 Kudos
Message 10 of 10
(2,597 Views)