LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run program through some event

Hi

 

I want to run the program whenever i press spacebar button. How is it possible through event structures?

Somil Gautam
Think Weird
0 Kudos
Message 1 of 36
(3,619 Views)
0 Kudos
Message 2 of 36
(3,610 Views)

here is an example using the enter key:

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 36
(3,598 Views)

Hi Mathan

 

Thanks for the reply

 

I am going through the link that you have sent me.

By the time i finish, You please check this VI and tel me whats wrong with it? I have developed a VI to stop the Program execution if the mouse position changes. But nothing is happening.

Somil Gautam
Think Weird
0 Kudos
Message 4 of 36
(3,597 Views)
Sorry forgot to attach the VI
Somil Gautam
Think Weird
0 Kudos
Message 5 of 36
(3,595 Views)
you can loose the for loop and put the mouse referance in the timout of the event
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 6 of 36
(3,592 Views)

Hey harold.

Thanks for the VI

 

I had a query. Why the LED glows only when the Front panel window is active? If i select the Block diagram and then press the enter key, the LED no longer glows!!!

Somil Gautam
Think Weird
0 Kudos
Message 7 of 36
(3,589 Views)

possibly the reason,

 

it is registering that the active window is no longer the front panel which mean when you hit enter it is in referance to the block diagram and no longer the front panel due to the fact that the front panel is not the enter keys referance point.

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 8 of 36
(3,586 Views)

If i wire the Horizontal position to time out, it wont be doing any good as it will just vary the time out for the Event!!!

 

Here is what i did

Somil Gautam
Think Weird
0 Kudos
Message 9 of 36
(3,584 Views)
not connect it to the timeout terminal put it inside the timeout event.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 10 of 36
(3,579 Views)