Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Input Device Control VIs (Windows, Linux)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Owning Palette: Connectivity VIs and Functions

Use the Input Device Control VIs to obtain information about the joystick, keyboard, or mouse connected to a computer.

Example

Use the Query Input Devices VI to obtain information about the devices connected to a computer. Use the appropriate Initialize VI to open a reference to and initialize a device. Use the Acquire Input Data VI to acquire the data you want. Use the Close Input Device VI to close the reference to the device.

(Windows) You must have DirectX 8.0 or later to use the Input Device Control VIs.

Palette ObjectDescription
Acquire Input DataReturns data about the device connected to the computer. The data type you wire to the device ID input determines the polymorphic instance to use.
Close Input DeviceCloses the device you specify in device ID. The data type you wire to the device ID input determines the polymorphic instance to use.
Initialize JoystickOpens a reference to and initializes a joystick device at the index you specify.
Initialize KeyboardOpens a reference to and initializes the keyboard connected to the computer.
Initialize MouseOpens a reference to and initializes the mouse connected to the computer.
Query Input DevicesObtains information about the devices connected to the computer.

Example

Refer to the labview\examples\input\InputDemo.llb for examples of using the Input Device Control VIs.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit