Skip to content

Commit

Permalink
Fix Agilent formatting string
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Gustafsson committed Aug 29, 2024
1 parent f0ffc13 commit 4013121
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auspex/instruments/agilent.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,9 @@ class _AgilentNetworkAnalyzer(SCPIInstrument):

##Basic SCPI commands.
frequency_center = FloatCommand(scpi_string=":SENSe:FREQuency:CENTer")
frequency_start = FloatCommand(scpi_string=":SENSe:FREQuency:STARt", formatter={:.0f})
frequency_stop = FloatCommand(scpi_string=":SENSe:FREQuency:STOP", formatter={:.0f})
frequency_span = FloatCommand(scpi_string=":SENSe:FREQuency:SPAN", formatter={:.0f})
frequency_start = FloatCommand(scpi_string=":SENSe:FREQuency:STARt", formatter="{:.0f}")
frequency_stop = FloatCommand(scpi_string=":SENSe:FREQuency:STOP", formatter="{:.0f}")
frequency_span = FloatCommand(scpi_string=":SENSe:FREQuency:SPAN", formatter="{:.0f}")
if_bandwidth = FloatCommand(scpi_string=":SENSe1:BANDwidth")
num_points = IntCommand(scpi_string=":SENSe:SWEep:POINTS")

Expand Down Expand Up @@ -920,7 +920,7 @@ def reaverage(self):

meas_done = False
self.interface.write('*OPC')
print(int(self.interface.ESR()) & 0x1)
#print(int(self.interface.ESR()) & 0x1)
while not meas_done:
time.sleep(0.5)
opc_bit = int(self.interface.ESR()) & 0x1
Expand Down

0 comments on commit 4013121

Please sign in to comment.