joystickAcquire VI
- Updated2025-07-30
- 5 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.
axis info
—
axis info contains numeric values for the axes. The number of axes depend on the specific joystick. When you use this VI on a myRIO target, the value of axis info is the raw data value this VI acquires from the joystick.
button info
—
direction info
—
direction info contains numeric values for up to four points of view.
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
—
axis info
—
X axis
—
button info
—
button 1
—
error out
—