From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Limit to one execution in the Simple OI

I have a customized OI that's running well.  However, the user can still hit the "Single Pass" button multiple times while things are running.

 

What is the best way to prevent this?

 

This old post says you can disable the button after it's clicked (from LV) but I am finding that setting button properties from LV is not the best way to go- they get overridden by the TS engine.

 

Suggestions?

0 Kudos
Message 1 of 2
(2,830 Views)

You have the reference to the "Single Pass" button control. You will find an "Enable" property for this.

 

EnableButton.png

 

Set this property in the "StartExecution" to "False" and in "EndExecution" back to "True". Both are callbacks you have to define. They are message events from the ApplicationManager.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,813 Views)