NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Active Participant
Jed_Davidow
Posts: 242
0 Kudos

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?

Trusted Enthusiast
Norbert_B
Posts: 3,650
0 Kudos

Re: Limit to one execution in the Simple OI

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page