LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Refrence to button

I do have a problem getting the Value of a button contained in a vi my
actual vi gets per reference.
It is no problem to write/read text areas or other displays/controls
using (panel/controls/array index/cast to control type), but I just
can´t get a button´s boolean value this way.

Thanks,
Andre
0 Kudos
Message 1 of 2
(2,468 Views)
> I do have a problem getting the Value of a button contained in a vi my
> actual vi gets per reference.
> It is no problem to write/read text areas or other displays/controls
> using (panel/controls/array index/cast to control type), but I just
> can´t get a button´s boolean value this way.
>

Most likely your button is set to using latched mechanical action.
Since the read of the Boolean has a side-effect on these, it isn't well
defined when the button should pop back out. This means that the read
or write to a latched button will return an error, the error probably
isn't wired up.

The solution is to turn off latching on the button by changing the
mechanical action, probably to switch on mouse up, then in your code,
after all locations have been noti
fied of the change or the notification
is sent anyway, you can set the value to FALSE using a value or local,
or terminal.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,468 Views)