keyboardAcquire VI
- Updated2025-07-30
- 2 minute(s) read
Returns data about the device connected to the computer. Wire data to the device ID input to determine the polymorphic instance to use or manually select the instance.
(Windows) You must have DirectX 8.0 or later to use this VI.

Inputs/Outputs
device ID
—
device ID identifies which device you acquired data from.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
device ID
—
device ID identifies which device to acquire data from.
keys pressed
—
keys pressed indicates which keys were pressed when the VI ran. This parameter returns values associated only with US keyboards.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Connectivity\Input Device Control\Monitoring Keyboard and Mouse Activity.vi
device ID
—
error in (no error)
—
device ID
—
keys pressed
—
error out
—