Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

N9320B ivi functions not working properly (averaging and ChannelPowerSpan)

I'm already doing this.

But it seems that when you are in spectrum analyser mode you can set the sweep-time auto or manual. But from the moment you select channel power mode in the BW/AVG menu there is a selection at the bottom called "sweep type" and this is always placed on FFT. When in this mode you cannot select your own sweep time you have to select the type called "swept" and then you can choose your own sweep-time.

The problem now is that i cannot find a command (or at least a sequence of commands) to set this "sweep type" to swept in the BW/avg menu while in channel power mode.

0 Kudos
Message 11 of 15
(1,298 Views)

"When in this mode you cannot select your own sweep time you have to select the type called "swept" and then you can choose your own sweep-time."

For your sentence above, do you mean that the sweep time could not be set in CHP mode?

You can follow ACP Measurement example the driver provide(Don't forget to change the mode to CHP),  set the 6th parameter(SweepTimeAuto) of agn9320ni_ConfigureSweepCoupling()  to be VI_FALSE and the last parameter to be the value you want to set.

 

I think the sweep time value could be changed this way. For I have no instrument at hands, the method cannot be tested. Do you mind to have a try? 

0 Kudos
Message 12 of 15
(1,277 Views)

Hello FVA,

 

Have you been able to fix the behaviour with this advice?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 13 of 15
(1,255 Views)

I recieved from an Agilent Engineer some SCPI commands to set the sweep type to swept instead of FFT.

[:SENSe]:SWEep:TYPE FFT|SWEep

 

thx to all for the support

0 Kudos
Message 14 of 15
(1,247 Views)

Hello fva,

 

Thanks for the feedback !

A lot of succes with the further automation!

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 15 of 15
(1,240 Views)