05-17-2009 03:02 PM
Hello,
I attach a VI that measures and displays Capacitance as a function of voltage swept at a "keithley 590" meter. In the llb file attach, i am using the vi called "590-CV Measurement.vi"
I get the error "Error code 6 in GPIB Read in 590-CV Meaurement.vi".
The VI is supposed to display data as a table and as a graph. I see the keithley instrument sweeping the voltage but no data is displayed and the error code 6 which means "I/O operation aborted" as per
http://zone.ni.com/reference/en-XX/help/371361B-01/lverror/gpib_error_codes/
is displayed. Could anyone please help me on what is wrong?
Thanks a lot
poli
Solved! Go to Solution.
05-18-2009 10:55 AM
05-19-2009 06:46 PM
Hello,
i monitored the error message using NI Spy and it is attached below here.
Please help me to take the next step to fix this error code 6 in GPIB Read in 590 CV-Measurement.vi
Regards
Neel
05-20-2009 10:43 AM
Hey Poli,
Thanks for the files. I've been looking through the intrument driver and the spy file to correlate the behavior we're seeing with the function calls being made. I would like you to try two things and let me know the results.
First open the 590 CV-Measurement.vi and view the block diagram. In the Event Structure, select the "Run" event. In here, on the second line of function calls you'll fine one labeled GPIB Read. The top of this VI has a terminal for Timeout. Create a numeric constant of value 0 and wire it to this terminal. Run your program and see what behavior you see.
Once that test is done, delete the changes you made (the addition of the numeric constant). Then change the numeric value connected to the same GPIB Read command to any value less than the 20000 it's set to (i.e. 10000 or something). This will change the number of bytes the function is trying to call and hopefully prevent it from timing out.
Let me know what results you get.
05-20-2009 06:44 PM
thanks a ton david,
the problem is solved.
the first approach of setting timeout to 0 s fixed the bug.
Thanks once again
poli