Hans,
This seems to be a very similar problem to the one that I discussed earlier.
And your solution seems almost identical to the one that I implimented. I
ended up creating a sequece structure after the gpib write. In the sequence
was first a 75ms wait and then a gpib read. This solved my problems as well.
I abandon the VISA stuff and the flexibility that went with it in favor of the
more simplistic gpib stuff. It does work however, and for now that is all that
I need.
Andrew B. Croll
Optical Specification,
Nortel Networks
"Hans �hra" wrote:
> Had some similar problems with VISA on an instrument with a simple GPIB
> implementation.
>
> I sent a command to the instrument and tried to read the response back, but
> the VISA read always hang (ie timed ot - returned no data - returned VISA
> error). I my case the problem was solved by introdusing a delay of about
> 100ms between the write and read command. The solution was not very good
> because writing a number of commands took a considerable time.....
>
> The instrument suported SRQ and an SRQ was initiated when the instrument had
> finishe its action and returned its respons. The solution was to make a
> 'while loop' between write and read and checking for SRQ and the right bits
> in the status register. Use VISA STB function..
>
> Hans �hra
>
> Croll, Andrew [SKY:1V43:EXCH]
wrote in message
> news:39187ECE.75A90D8@americasm01.nt.com...
> > hello all,
> >
> >
> > I have abit of a problem synchronizing a piece of equipment that I am
> > attempting to run through a gpib connection (doesn't follow 488.2
> > though).
> >
> > The goal is really simple, send a command (which works) and recieve a
> > responce from the device (just ok or something)
> >
> > What seems to be happening is the responce is comming too quickly for a
> > VISA read to catch. this is bad, I need to use visa because it is not
> > true GPIB 488.2, but I cant seem to correct this problem.
> >
> > Any insite would be greatly appreciated.
> >
> > Andrew B. Croll
> > Optical Specification, Nortel Networks
> > Ottawa, Canada
> > andcroll@nortelnetworks.com
> >