05-10-2007 11:07 AM
The error code is the same for both: 1073807339; (Hex 0xBFFF0015) Timeout expired before operation completed.
It started with the Agilent, and seems to be moving around the other test equip.
The problem is intermittent, which will pose a huge problem since it is part of a test sequence at a remote site. I won't be around to reset anything, so I have to understand why it is intermittently hanging up and perhaps put some kind of error check/fix in place.
Thanks.
05-10-2007 03:01 PM
You probably should have started a new question instead of posting to an old thread about different instruments.
In any case, there are a large number of reasons for getting a timeout error with a GPIB instrument. A VISA Read (or GPIB Read) stops when the specified byte count is reached or when the EOI line is asserted. All 488.2 instruments will assert EOI. That is why you can ask for some large number of bytes. You don't have to know exactly how many bytes the instrument has in it's buffer. When you get a timeout, it's because the specified byte count was not read. It is likely that there are 0 bytes in the transmit buffer and with nothing to send, the instrument never asserts EOI either. Figuring out why there is nothing in the buffer is the challenge. Sometimes, it's because the instrument has failed to trigger and take a measurement. For example, the instrument is set to trigger on a certain voltage level but the signal is not high enough. Sometimes, the instrument is in the process of taking a measurement and is simply not ready when you request it. Sometimes, the instrument did not receive the command to perform a measurement. This can happen when an illegal command or a command with a syntax error is issued. Sometimes, you can have a bad GPIB interface on one of the instruments.
I can't find a driver for the counter on NI's site but I hope you are using the driver for the Boonton. Did you write a driver for the counter or are you using the Instrument I/O Assistant? If you wrote your own, you can make use of the SRQ registers in the instrument. After you request a measurement, you poll SRQ. When SRQ is asserted, then you can do the read. You might also want to turn on NI-Spy from MAX. Attaching the results from when a timeout happens an posting your code would help as well.
05-14-2007 11:39 AM