Example Code

Get Caps Lock Key State Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

Description

The VI calls the .net and uses the Control.IsKeyLocked(Keys) Method from System.Windows.Forms.

The VI outputs the current key state as a boolean.

 

Additional Information

 

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

Contributors