LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use vkey with keyboard ENTER key instead of press button

Solved!
Go to solution

Hi Ni Engineers,

In stead of using Send button, after i key command in a string control i wanna just press ENTER key in keyboard.

 

I delete the Send button, just use string binding VKey Event to trigger, can it work ?

can any body give me a clue?

thanks a million.

 

Amanda
0 Kudos
Message 1 of 5
(4,409 Views)
Solution
Accepted by topic author amandarila

It can work. What are you having problems with? Have you just tried to create an event structure and handling the "Key Down" event?

0 Kudos
Message 2 of 5
(4,399 Views)

Yeah, i do want to creat a Key Down Event for string control to auto send the command to serial port.

so as to avoid pressing button.

I use your idea, and build a small vi, it seems work, but still exist some error, maybe i need use the property of updating when typing.

thanks.

Amanda
0 Kudos
Message 3 of 5
(4,383 Views)

Yeah, i do want to creat a Key Down Event for string control to auto send the command to serial port.

so as to avoid pressing button.

I use your idea, and build a small vi, it seems work, but still exist some error, maybe i need use the property of updating when typing.

thanks.

Amanda
0 Kudos
Message 4 of 5
(4,382 Views)

Please indicate what this "some error" is. Please post your VI and describe what is not working.

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