LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ways to fix an Error code 6 in Labview 8.

I am getting another error after the program runs for a while.  It is a Labview Error 6 GPIB Read error.  I thought I had fixed this problem by making the GPIB read function asynchronis, but I just got the error again.  I am using a PCI cable to measure two channels of an optometer.  I send a write command to the device to send channel 1 readings then I send the read command.  I then send a write command to the device to send channel 2 readings and then I send the read command.  Let me know if this is the correct way to take readings from two channels.
0 Kudos
Message 1 of 2
(2,716 Views)
Hello Stevens1111,
 
According to the documentation it sounds this error occurs because a 488.2 command is aborted, probably because a new command is sent to the GPIB interface before it has finished executing the last command.  Do you have any waits in your code to allow the device and interface enough time to respond to each command?  What version of the NI-488.2 driver are you using?  Is the error occurring when you try to read or when the write command is issued?
 
I hope this helps, please let us know if you continue to see this behavior or how you were able to resolve this error.
 
Regards,
Angela
Applications Engineer
0 Kudos
Message 2 of 2
(2,691 Views)