LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use spacebar to toggle in key navigation

Solved!
Go to solution

I want to use the spacebar as a start stop button in my application. It's not listed under key navigation is there a way to do it programmatically?

0 Kudos
Message 1 of 5
(4,496 Views)
Solution
Accepted by topic author Viper

You could use an event structure with a Key Down event for the VI.  Compare the Keydown with the space character and act accordingly.

Message 2 of 5
(4,490 Views)

How do you determine what key was pressed?

0 Kudos
Message 3 of 5
(4,487 Views)

The terminals inside the event case have Char and Scan Code, you can read either one and compare it to the value for space (Char =32,  Scan Code = 57)

Message 4 of 5
(4,482 Views)

That did it!!   thanks

0 Kudos
Message 5 of 5
(4,472 Views)