LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 6 occurs at GPIB Write

Everytime I run my vi I get the following Error

Error 6 occurred at GPIB Write in E4418BPowerMeter.vi
Possible reason(s):

LabVIEW: Generic file I/O error.
---
NI-488: I/O operation aborted.


I've tried several methods to get it to stop, but it just keeps coming 😕 any ideas?
0 Kudos
Message 1 of 4
(3,159 Views)
Error 6 is a GPIB Time Out.
1) Can the meter respond in 1 second?
- if not, increase the timeout
- P.S. I question why you put a clock wait in the
same sequence as the read. Is it suppose to wait
one second, and then read during the next, read
then wait, or do those in parallel?

2) The INIT:CONT 0 in the "0" sequence doesn't have a
"line-feed/cr" in it like sequence "1". Is that
OK?

3) Does the instrument error queue (SYST:ERR? query)
tell you anything - like bad command?

Les Hammer
0 Kudos
Message 2 of 4
(3,158 Views)
As it turns out the problem was the MEAS command isn't what I thought it was. So I was able to fix that problem. The clock wait itself I removed from the program as it was just a debugging method. I am still getting a weird reading error though were for some reason the gpib card will return a string of "++6.17345E-10" instead of "+6.17345E-10" could this have something to do with me using a PCI GPIB card I bought a long time back from a 3rd party vendor? (MeasurementComputing.com)?
0 Kudos
Message 3 of 4
(3,158 Views)
> I am still getting a weird reading error though were for some reason the gpib card
> will return a string of "++6.17345E-10" instead of "+6.17345E-10" could this have
> something to do with me using a PCI GPIB card I bought a long time back from
> a 3rd party vendor? (MeasurementComputing.com)?"

Anything is possible, I suppose. If you can borrow an NI GPIB card and the problem goes away that would confirm it. How good a contact do you have with your NI rep?

I have a vague de-ja-vu of this myself, but I don't remeber if it was GPIB, Firewire, or something else, or even if it was a bad instrument. If it doesn't go away when using an NI GPIB card you can always code in an "IF answer has '++', make it a '+'"

Les
0 Kudos
Message 4 of 4
(3,158 Views)