Input Device Control VI Error Codes

The Input Device Control VIs can return the following error codes. This includes the Acquire Input Data, Close Input Device, Initialize Joystick, Initialize Keyboard, Initialize Mouse, and Query Input Devices VIs. Refer to the KnowledgeBase for more information about correcting errors in LabVIEW.

CodeDescription
–2000000013Input Sprockets Failure The Mac Input Sprockets tool kit is not properly installed on the machine.
–2000000012Close failure. Make sure the device is currently open.
–2000000011Read failure. Fails to read the device.
–2000000010The deviceCount being passed in is incorrect. Please connect the deviceCount parameter from initializeVI to the input parameter of closeDeviceVI.
–2000000009The operation cannot be performed while the device is acquired.
–2000000008Please check to see if the device is attached correctly. Please make sure the deviceIndex you passed in to initDevice.vi is correct.
–2000000007Data is not yet available.
–2000000006The operation cannot be performed unless the device is acquired.
–2000000005Access to the input device has been lost. It must be reacquired.
–2000000004This object has not been initialized.
–2000000003The DirectInput subsystem could not allocate sufficient memory to complete the call. This value is equal to the E_OUTOFMEMORY standard COM return value.
–2000000002The application requires a newer version of DirectInput.
–2000000001An invalid parameter was passed to the returning function, or the object was not in a state that permitted the function to be called. This value is equal to the E_INVALIDARG standard COM return value.
–2000000000The application was written for an unsupported prerelease version of DirectInput.
–1Check to see if proper initialization VI has been called. Also, please check the Microsoft web page for additional information about directInput.