Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

"The input handle is invalid or out of ragne"

I have an automated test setup that's fairly elaborate, custom software, several NI I/O and acquisition boards, a GPIB interface controlling one or two instruments, a several Measurement Computing acquisition boards, and sundry other bits.  I'm getting an exception from somewhere in the system that has the following message:

 

"The input handle is invalid or out of range"

 

The system is able to catch the exception and log the message, but not when it occured, why it occured, what caused it, what hardware  or software it was associated with, or anything else that might be useful in troubleshooting.  The error occurs roughly once per week at random, and I cannot induce or replicate the error manually.  I really don't have much to go on.

 

So, as a simple first step I'd like to pin down what hardware device (if any) is responsible.  Do any NI devices ever throw an exception with this message?

 

My NI hardware consists of these devices:

USB 6221

USB 4065

USB 6509

GPIB-USB-HS

 

0 Kudos
Message 1 of 3
(4,496 Views)

Hi John,

 

As a premature conjecture, I would say it was related to the gpib communication- see EHDL (23). Since it is intermittent I recommend using NI Spy to review the driver calls to see if it sheds some light onto the issue.  Hopefully this helps us get started with the troubleshooting!

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(4,473 Views)
Make sure you are properly disposing of your NI objects after exiting the program.  You can only have 1024 GPIB objects and then that error is thrown.
0 Kudos
Message 3 of 3
(4,373 Views)