LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Toolbar

Hello
Can anybody help me?
I have tried to make a toolbar in LabVIEW 6i.
I have manage to create a toolbar, but I have not understand how you
"connect" a button on the toolbar to
ex. Exec function.

Regard
Richard Pettersen
0 Kudos
Message 1 of 2
(2,362 Views)
> Can anybody help me?
> I have tried to make a toolbar in LabVIEW 6i.
> I have manage to create a toolbar, but I have not understand how you
> "connect" a button on the toolbar to
> ex. Exec function.
>

The buttons and controls in LV aren't tied directly to callbacks and
such. On the diagram, place a Case structure on the diagram, wire the
Boolean to the case and check to make sure that the mechanical action of
the Boolean is latched, probably needs to be the Latch on Mouse Up. Now
place anything you want in the False and True frames of the case. For
instance, place a snippet of code into the True frame and it will be
called only when the button is pressed, and the latching action will pop
the button back to False so that it executes only once.

You probably want
to place all of these cases inside of a loop and place
a 100ms delay inside it so that it runs often enough, but not as fast as
possible. There are a number of examples that respond to buttons in
this way if you want to look at actual code.

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