Example Code

Activate a Control With the Mouse and Keyboard Inputs Together.

Code and Documents

Attachment

Overview:

This example exemplifies how to make visible a control with a keyboard input to control.

Description:

The following example will show how to acquire input to an invisible control on the front
panel using the Mouse and Keyboard Key.

This could be useful to allow the administrators of an application access the hidden configuration settings
or functionality of the code.

Requirements:
LabVIEW Base Development System 2012 (or Compatible).

Steps to Implement or Execute Code:
1. Run the VI.
2. Hold the Ctrl Button on the Keyboard, this will show the control button on the front panel.
3. Now you can click on the Control button on the front panel to change its value.
4. Release the Ctrl Button on the Keyboard and the Control Button on the Front Panel will disappear.

Additional Information or References: (Snippet)

Snippet 10142.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.