Fixed a bug in tnmr interface, added functionality to load calibration files in ZVL net analyser

This commit is contained in:
2025-07-21 15:38:39 +02:00
parent 730aa61789
commit d7b45cd163
3 changed files with 12 additions and 1 deletions

View File

@@ -41,6 +41,10 @@ class ZVLNetAnalyzer():
#self.instrument.write('INIT:SCOP OFF')
#self.instrument.write('DISPlay:WINDow2:STATe ON')
def load_calibration(self, f):
self.instrument.write(f":MMEMORY:STORE:CORR 1, 'OSM1 {f}'") # put calibration in pool
self.instrument.write(f":MMEMORY:LOAD:CORR 1, 'OSM1 {f}'") # load from pool
def set_freq_range(self, start, stop):
'''In Hz'''
self.instrument.write(f'SENS1:FREQ:STAR {start}')