diff --git a/src/Anritsu_MS2830A.py b/src/Anritsu_MS2830A.py index 19004ab24327e3e8837d0319e890f0e1f2e54ca8..9187151f74149268ecada334d7446b328d38883c 100644 --- a/src/Anritsu_MS2830A.py +++ b/src/Anritsu_MS2830A.py @@ -141,7 +141,7 @@ class Anritsu_MS2830A(): """ sets the center frequency """ - self._visainstrument.write('CNF %i' % (centerfreq)) + self._visainstrument.write('CNF %e' % (centerfreq)) def do_get_centerfreq(self): """ @@ -167,7 +167,7 @@ class Anritsu_MS2830A(): sets the start frequency """ - self._visainstrument.write('STF %i'%(freq)) + self._visainstrument.write('STF %e'%(freq)) def do_get_startfreq(self): """ @@ -181,7 +181,7 @@ class Anritsu_MS2830A(): sets the stop frequency """ - self._visainstrument.write('SOF %i'%(freq)) + self._visainstrument.write('SOF %e'%(freq)) def do_get_stopfreq(self): """ diff --git a/src/Utils.py b/src/Utils.py index ae5d519caf8a6d8efc3948cb0883f6c0b22a082b..496b34cbeb18e8847900d32858ce0a9bec1c01f6 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -27,7 +27,7 @@ def set_SPA_for_measure(ms2830a, config_file, manual_command): log_list.append("Start Frequency: " + str(ms2830a.do_get_startfreq())) log_list.append("Stop Frequency: " + str(ms2830a.do_get_stopfreq())) - log_list.append("Center Frequency: " + str(ms2830a.do_get_centerfreq())) + #log_list.append("Center Frequency: " + str(ms2830a.do_get_centerfreq())) # Time sweep ms2830a.set_trace_points_sweeptime(config_file["sweep_trace_points"])