LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

keyboard input

there's got to be a way.

 

we're using LabVIEW RT. we've got some code that we are porting that use some funtions for keyboard input like getch(), scanf().  according to the Phar Lap Technical reference these are supported functions. the code compiles just fine with LabWindows/CVI. when it runs, it stops at the functions, waiting for keyboard input i presume.

 

i think that there is a keyboard driver, but i don't know where i can find it and how to install/run it. any ideas?

0 Kudos
Message 1 of 5
(6,695 Views)
p.s. i've also tried to use hyperterminal from the host pc and go in to serial port of the target to no avail.
0 Kudos
Message 2 of 5
(6,693 Views)

Hi Chucky,

 

Just to be clear, are you using LabVIEW RT, or LabWindows/CVI RT?   LabVIEW RT does not support keyboard inputs because there is no user interface.  If it is actuallyl LabWindows/CVI we can investigate further into the specific use of those functions.

 

 

Nick Keel 

Applications Engineering 

National Instruments

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 3 of 5
(6,662 Views)

we're using LabVIEW RT. what i am doing is porting a library/driver dll written in C to be used in LabVIEW RT. i have some test code,  already written in C that i would like to re-use.  what i have been doing is commenting out/hard coding/passing in parameters as a work around. i have a LabVIEW RT vi that i am using to call the test code.

 

there is not a lot of keyboard input but i thought it would be nice not to have to touch the code or to make it clean so it can be ported between windows and RT.

0 Kudos
Message 4 of 5
(6,658 Views)

If you are deploying a VI you could set up shared variables to communicate with your target VI.  You could then write to the shared variable from a host computer.  Connecting a keyboard directly to the RT target would require you to write your own driver for pharlap, which would be pretty difficult.

 

 

Nick Keel
Product Manager - NI VeriStand and Model Interface Toolkit
National Instruments
0 Kudos
Message 5 of 5
(6,646 Views)