Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Set amplitude in Agilent N5181A

Hi. I want to set amplitude value in Agilent N5181A. Vaule - flaot type, unit is DBM, DBUV, DBUVEMF, V, VEMF,DB.
When i try set frequency it's work, but i can't undertstand. Why i can't set amplitude ? What i doing wrong? Thanks.

def set_level(self, value, unit😞
cmd = ':POW {}{}'.format(value, unit)
self.write(cmd)
0 Kudos
Message 1 of 2
(3,112 Views)

First, this question is better asked of Keysight who manufacturers and supports this instrument.  They should be able to tell you the right SCPI commands to accomplish your task.  Their manuals are quite good and full of SCPI programming examples.

 

The N5181A has lots of modes of operation, and advanced features for maintaining power as frequency and load change.  Read the manual about the ALC and the attenuation corrections the AWG uses as loads change.  I think you want something more along the lines of ":POW:ALC:LEV 10DB"

 

If you were going to get help from this forum you really need to provide more information.  The N5181A is a pretty sophisticated AWG.  What sort of signal are you producing?  Pulsed? Sweeping frequency?  Noise?  What errors do you get from the instrument when you send the commands? Etc.. 

 

Good things to explain when you talk to Keysight too 😉

0 Kudos
Message 2 of 2
(3,052 Views)