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.


icon

Inputs/Outputs

  • cdlrn.png device ID

    device ID identifies which device you acquired data from.

  • cenum.png key mode

    key mode determines the key mode to use.

    0Relative—Defines the mouse coordinates as relative to the last time you called the VI.
    1Absolute—Defines the mouse coordinates (axis info) as absolute coordinates relative to the upper left hand corner of the screen.
  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • idlrn.png device ID

    device ID identifies which device to acquire data from.

  • inclst.png axis info

    axis info contains the numeric value for axes.

  • ii32.png Horizontal

    Horizontal is the numeric value of the horizontal axis.

  • ii32.png Vertical

    Vertical is the numeric value of the vertical axis.

  • ii32.png Scrolling

    Scrolling is the numeric value of the scrolling axis if the mouse supports it.

  • icclst.png button info

    button info contains Boolean values for up to four buttons. A TRUE value indicates that the button was pressed when the VI ran.

  • ibool.png button 1

  • ibool.png button 2

  • ibool.png button 3

  • ibool.png button 4

  • ierrcodeclst.png 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