Hi,
I am remotly controlling HP 8595E Spectrum analyzer via GPIB.
Some commands (like "IP;") and others can take some time for the unit to complete, in some cases even a few seconds.
My controlling code has sequences of commands so I need a way to it know when a command is done so I can send the next one.
I found a bit in the status register (using "RQS 16;" and "STB?"), but I'm getting errors if I send "STB?" and then read from the GPIB. The errors stop when the "IP;" command completes on the device.
Is this the correct way wait-out a command like "IP;"?
Any other sugegstions will be welcome.
Thanks in advance,
Shay
I am remotly controlling HP 8595E Spectrum analyzer via GPIB.
Some commands (like "IP;") and others can take some time for the unit to complete, in some cases even a few seconds.
My controlling code has sequences of commands so I need a way to it know when a command is done so I can send the next one.
I found a bit in the status register (using "RQS 16;" and "STB?"), but I'm getting errors if I send "STB?" and then read from the GPIB. The errors stop when the "IP;" command completes on the device.
Is this the correct way wait-out a command like "IP;"?
Any other sugegstions will be welcome.
Thanks in advance,
Shay
with my 8591A, I sent "IP;" command and immediately after I sent "STB?;" command. If buffer$ returned is empty, command "IP;" is not completed. In a loop, I sent again "STB?" command, when "IP;" command is completed, I received a no empty buffer$ value, in this case "0" follow by carriage return and line feed. No error was generated by spectrum. When I use "RQS 16;" command, " I receive a no empty buffer$ value when GPIB command is completed, in this case "0" follow by carriage return and line feed and "SRQ 120" appear on spectrum display that indicated command is completed. I don't know if these informations may help you.
Yves Tardif
QC, Canada