diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-10 23:35:37 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-11 00:18:04 -0500 |
commit | fd715c5edfd06fcb106ddbb3c9eadd79a96a37a7 (patch) | |
tree | 0ed7449a87de9f7dfa83cb592e831a7ddd2724bc /qolab | |
parent | b81e491d87b95a5cac7b16f74466bd7a83d4dabc (diff) | |
download | qolab-fd715c5edfd06fcb106ddbb3c9eadd79a96a37a7.tar.gz qolab-fd715c5edfd06fcb106ddbb3c9eadd79a96a37a7.zip |
more RF functions
Diffstat (limited to 'qolab')
-rw-r--r-- | qolab/hardware/rf_generator/agilent_e8257d.py | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/qolab/hardware/rf_generator/agilent_e8257d.py b/qolab/hardware/rf_generator/agilent_e8257d.py index dab2277..e765d85 100644 --- a/qolab/hardware/rf_generator/agilent_e8257d.py +++ b/qolab/hardware/rf_generator/agilent_e8257d.py @@ -13,6 +13,13 @@ class AgilentE8257D(RFGeneratorSCPI): 'RFPowerState', 'RFAmplitude', 'ModulationState', + 'FM1State', + 'FM1Source', + 'FM1ModulationDepth', + 'FM2State', + 'FM2Source', + 'FM2ModulationDepth', + 'FrequencyMode', # sweep or continious 'SweepCentralFreq', 'SweepSpan', ]) @@ -66,9 +73,57 @@ class AgilentE8257D(RFGeneratorSCPI): def getRFAmplitude(self): return(float(self.query(f':POWer:AMPLitude?'))) - def seRFAmplitude(self, val): + def setRFAmplitude(self, val): rstr = self.write(f':POWer:AMPLitude {val}') + def getFM1ModulationDepth(self): + return(float(self.query(f':FM1:Deviation?'))) + + def setFM1ModulationDepth(self, val): + rstr = self.write(f':FM1:Deviation {val}') + + def getFM2ModulationDepth(self): + return(float(self.query(f':FM2:Deviation?'))) + + def setFM2ModulationDepth(self, val): + rstr = self.write(f':FM2:Deviation {val}') + + def getFM1Source(self): + return(str(self.query(f':FM1:Source?'))) + + def setFM1Source(self, val): + rstr = self.write(f':FM1:Source {val}') + + def getFM2Source(self): + return(str(self.query(f':FM2:Source?'))) + + def setFM2Source(self, val): + rstr = self.write(f':FM2:Source {val}') + + def getFM1State(self): + return(int(self.query(f':FM1:State?'))) + + def setFM1State(self, val): + rstr = self.write(f':FM1:State {val}') + + def getFM2State(self): + return(int(self.query(f':FM2:State?'))) + + def setFM2State(self, val): + rstr = self.write(f':FM2:State {val}') + + def getFrequencyMode(self): + return(str(self.query(f':Frequency:Mode?'))) + + def setFrequencyMode(self, val): + rstr = self.write(f':Frequency:Mode {val}') + + def startFrequencySweep(self): + self.setFrequencyMode('Sweep') + + def stopFrequencySweep(self): + self.setFrequencyMode('FIXED') + if __name__ == '__main__': import pyvisa print("testing") |