LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Popup Win10 Keyboard with Touchscreen

Solved!
Go to solution

I agree with Rolf, its is beyond beginners to implement this. We followed a similar method to what Rolf describes. Except we register for all controls on the front panel (Including strings in clusters). We also implemented a numeric and alpha keyboard.  

 

Managing Keyfocus, Bringing Keyboard frontmost, copying existing data from the control to edit, validation of numeric input is all quite a bit of work. In the case of the numeric, the +- and decimal point buttons are hidden depending on the datatype of the numeric input. It turns the numeric value red if its outside the specified range of the control.

 

Yes the events caveat is also true, we override the value change event. Because of this, I have implemented a user event to pass data back to the control when the keyboard closes. This also allows the caller a chance to validate the data before processing it. Also making sure the keyboard appears on the screen and not off it if aligning under a control. It was quite an undertaking to get a reliable touch screen keyboard library working. Its all LabVIEW - note .Net solutions mentioned above won't work on Linux. 

 

Apologies for the self promotion, however when encountering these types of problems it is worthwhile spending some time checking the NI tools Network / VIPM. 

 

P.S. Only have sliver keyboard at the moment. Contact us for white label or NXG style keys. We are happy to get feedback. 

 

Its available in VIPM with a demo. Its also only licenced for development - we don't licence check the executable. 

 

 

Advertisement - NI Tools Network

 

http://sine.ni.com/nips/cds/view/p/lang/en/nid/217168

 

Description:

 

Touchscreen Keyboard by CPE Systems NZ is an easy-to-use tool to add touchscreen capability to LabVIEW applications. 

It is simple to add a Touchscreen Keyboard (Sliver Buttons) to new or existing applications; all it requires is initializing the keyboard at the beginning of the application and closing it at the end of the application. 

A numeric keyboard appears when touched/clicked on a numeric control while an alphanumeric keyboard appears for strings and paths. 

The position of the keyboard can selected to be under the control, under the window or the bottom centre of the monitor.

Control values can be updated on typing, on keyboard close or with user events.

The keypad disappears after 10 seconds of inactivity, or if you click a different control, or click on the VI background.

 

Examples include Event Signalling, On a SubVI, On Two front panels.

 

Numeric Keyboard size: 220 x 277 pixels.

Alpha Keyboard size: 1000 x 290 pixels.

 

Value change property nodes are not supported. Use user events option if validation of entered data is required before the control value is used elsewhere in the program.

 

Visit our website http://www.cpesys.co.nz/products.html to view screenshots.

 

Message 11 of 11
(910 Views)