LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read from keyboard

Hi,
 
I woluld like te read from LabVIEW the pressed touch keyboard. Do you have any VI to do that.
 
Thanks
0 Kudos
Message 1 of 53
(4,711 Views)
Hi mora,

the easiest could be to use the event structure. There are some events like 'Key Down' associated with the vi!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 53
(4,700 Views)
Where can I find thid
0 Kudos
Message 3 of 53
(4,696 Views)
Hi mora,

first answer: in the manual.
2nd answer: in the LV online help.
3rd answer: in the structures palette.

Next question: Which LabView version are you using?
The event structure was introduced in 6.1 (or 6i), but didn't have all the events from start. So when asking please always note the LabView version you are using. This greatly helps when trying to find an answer!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 53
(4,691 Views)
I'am using 8.2 Laview.
 
I need VI to read the pressed touch keybord and then save this in the fille.
 
exemple:
 
If I presse F2 from keybord, the file from labviex must contain F2.
 
Thanks
0 Kudos
Message 5 of 53
(4,688 Views)
Hi mora,

please have a look at the attached vi. It should give you some hints on how to proceed.
When you need to check 'special' keys you have to track several informations (scancode, VKey).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 53
(4,685 Views)
Hi GerdW,
 
Thanks for helmping me
 
Do you speak french
0 Kudos
Message 7 of 53
(4,671 Views)
So know I want to acquire amplitude and frequency in continu if I press F2 or F3 keybord and save the pressed touch and the correponding ampitude and frequency marker in the file.
 
I send you my VI or amplitude and frequency from instrument and keybord VI.
 
 
Download All
0 Kudos
Message 8 of 53
(4,671 Views)
Hi mora,

no, I don't speak french. But maybe you can speak german? (Btw. I still prefer English, as nearly all other here on the forum can share as well.)

To save all those values I would suggest string formatting functions. Using 'Format to string' you can join all needed values to a well defined string. When this is done you can save the string to a text file. Use 'appending mode' (LV8+: set file position to EndOfFile) to build up a file for repetitive measurement.

So please try to find informations on: saving strings to file (LabView help and examples!), file formats like CSV (comma separated values, tab separation is also very convenient, you can find informations on this also in Excel)

Now I'm gone to weekend. On Monday I'll be back for more help 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 53
(4,665 Views)
Ok talk to you on Monday.
 
Have a nice weeken
0 Kudos
Message 10 of 53
(4,663 Views)