LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i push a button

i push a button and i want that some process wil start in labview . it should be like i press keyboard and interupt sent.
now it is implemented using for loop that alwayes check if the value of the button is one
0 Kudos
Message 1 of 8
(2,689 Views)
If LV7, use event structure
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 8
(2,671 Views)
This sounds like it would be better handled by a case structure and wiring the push button into that.
********************************************
Amateur programmer for over 10 years!
********************************************
0 Kudos
Message 3 of 8
(2,669 Views)
This calls for an event structure. Have a look at the online help and browse the examples (for example "New event handler.vi") for details.

In your case you would define a "this VI" event for "key down", then determine from the event terminals which key was actually pressed and act accordingly.

Good luck!
0 Kudos
Message 4 of 8
(2,667 Views)
If this is a button on the front panel, then everyone's comment about an event structure is correct. If this is some physical button someplace, could you provide more details?
0 Kudos
Message 5 of 8
(2,658 Views)
yes for example two buttones one push i take signal from channel one display it and the red light on
second buttone pushed i take signal from second channel green light on
0 Kudos
Message 6 of 8
(2,648 Views)
this button connected to the two pins device pci dio 6503
0 Kudos
Message 7 of 8
(2,647 Views)
If not time critical (~100msec), a while loop with a delay in it should suffice
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 8 of 8
(2,643 Views)