Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sweep does not complete before next instruction execution

Hello there,

I am attempting to control a HP 8563E Spectrum Analyzer through the GPIB card.

When I ask the Spec An to sweep with a large sweep time (larger than say 20 seconds), labview does not wait until the sweep has been completed. Rather, my labview program continues to execute commands following the sweep command.

Note the problem only arises when there are large sweep times. I am aware that the spectrum analyzer is likely to be timing out, but I do not know how to change timing issues.

For the benefit of those familiar with HP commands, I am calling

TS; DONE?;

TS aka Take Sweep , DONE? returns a 1 when the preceding command (TS) has been completed.


Any assistance would be greatly appreciated.

Dean,
NDC, Australia.
0 Kudos
Message 1 of 3
(2,083 Views)
Hi ytass
Probably, your labview program continues after a timout or a bad interpretation on done command.
I am using an HP8566B and for long sweeps ( 5 s and up), after the TS command, I poll the analyzer every 1 s, and check the status word. In mine, bit 12 is true if operation has been completed. Now, is time to read traces, display and continue.

Hope it helps.
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 2 of 3
(2,079 Views)
Hello Alipio,

Thank you very much for your quick reply! I took note of your suggestions, and after consulting the relevant section of the hp manual, I was able to fix the problem in my labview program.

Your contribution was invaluable. Thank you again.
0 Kudos
Message 3 of 3
(2,051 Views)