LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Sweep command issue on FSP7 Spectrum Analyzer

I try to initiate a single sweep command using the following code "INIT:CONT OFF". The R&S FSP7 does not seem to except or recognize this command. Can you help as to why this is the case. I want to use single sweep mode and average my signal with the average count of 10. Manual it is fine but thru labview the command does not seem to function.
0 Kudos
Message 1 of 5
(3,138 Views)
Hello,

Are you communicating via serial or GPIB? When you say "manually it is fine", are you sending the command via Hyperterminal or perhaps in Measurement and Automation?

It sounds as though this is a termination character issue; if you use Hyperterminal to send a serial command, it automatically appends a termination character when you hit "enter" after a line (I would guess a '\r' or '\n' or both). I would first experiment with these characters, and also check the manual for your instrument to see what termination method it requires.

Scott
0 Kudos
Message 2 of 5
(3,138 Views)
Thank you for your help.

I am communicating via GPIB. When I say manually is me punching the button manually on the spectrum analyzer. I have checked the termination character and I believe that I am enter the command correctly. I have checked the manual but no mention of the termination required. I tried what you suggestion but no luck. The manual says to send the following string via GPIB "INIT:CONT OFF"

The spectrum analyzer does not respond to this commend. It does respond to the continuous mode but not single sweep mode. For the continuous mode it is simple as "INIT:CONT ON".

If you have any further ideas please do let me know.


Diptesh
0 Kudos
Message 3 of 5
(3,138 Views)
I haven't used this particular model but you may have to issue a trigger command or something similar. The command is probably correct but all it may do is arm the instrument. It then will probably wait indefinately until a different command is sent to do a single sweep. You could try contacting the manufacturer to get the details.
0 Kudos
Message 4 of 5
(3,138 Views)
Diptesh,

It sounds like you might want to put in a call to your instrument manufacturer. Since you are able to send the continuous mode string and have the instrument respond, I would assume that you're correctly terminating. Is it possible that other commands are required before the mode actually changes? This is really getting into the exact operation of the instrument rather than LabVIEW or GPIB.

Scott
0 Kudos
Message 5 of 5
(3,138 Views)