LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with boolean buttons

Hello,

I am doing a Labview soft, including many data entry.
For each of these entry, the operator has to validate it by clicking on
a boolean button.
These buttons are implemented in while loop.
But often, I have to click many times on the button to validate the and
to display the next step.
Does anyone can explain me how to do to have to click only once on the
button ?

Thank you for your responses,

Bertrand.


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 5
(2,748 Views)
Right click on boolean button. Choose Mechanical action and select latch
when released. The button will stay latched until it is read. There may
be more elegant methods especially if you loop takes a long time to itterate.

i_bertrand@my-deja.com wrote:
>Hello,>>I am doing a Labview soft, including many data entry.>For each of
these entry, the operator has to validate it by clicking on>a boolean button.>These
buttons are implemented in while loop.>But often, I have to click many times
on the button to validate the and>to display the next step.>Does anyone can
explain me how to do to have to click only once on the>button ?>>Thank you
for your responses,>>Bertrand.>>>Sent via Deja.com http://www.deja.com/>Before
you buy.
0 Kudos
Message 2 of 5
(2,748 Views)
The problem could be that your iteration goes too fast.
Instead of trying mechanical action change, you can put a
short Wait ms in your loop let's say 100 ms to avoid your
program be checking the value of your boolean button
everytime.
Hope this helps

Gorka Larrea
glarrea_1@hotmail.com


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
0 Kudos
Message 3 of 5
(2,748 Views)
If latch when release doesen't work, you could put a Wait
in your loop, let's say 100 ms to avoid your program to be
checking boolean state too fast.
Hope this helps

Gorka Larrea
glarrea_1@hotmail.com


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
0 Kudos
Message 4 of 5
(2,748 Views)
Try putting a 100 ms delay in your loop. If the loop is executing at full
speed, you are competing with the O/S for CPU time.

Ken Trudgeon
wrote in message
news:8jb0ah$r45$1@nnrp1.deja.com...
> Hello,
>
> I am doing a Labview soft, including many data entry.
> For each of these entry, the operator has to validate it by clicking on
> a boolean button.
> These buttons are implemented in while loop.
> But often, I have to click many times on the button to validate the and
> to display the next step.
> Does anyone can explain me how to do to have to click only once on the
> button ?
>
> Thank you for your responses,
>
> Bertrand.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
0 Kudos
Message 5 of 5
(2,748 Views)