diff --git a/src/Anritsu_MS2830A.py b/src/Anritsu_MS2830A.py
index f8a8099589e6cd2244e632e48847f0c059628f9e..4f9dc43ab15b8f667ec8cc210a30078a280ee9bd 100644
--- a/src/Anritsu_MS2830A.py
+++ b/src/Anritsu_MS2830A.py
@@ -96,9 +96,9 @@ class Anritsu_MS2830A():
     #           TIME SWEEP               #
     ######################################
 
-    def do_get_sweeptime(self):
+    def get_sweeptime(self):
         """
-        gets the center frequency
+        query the sweep time
         """
         return float(self._visainstrument.query('swe:time?'))
 
@@ -294,12 +294,12 @@ class Anritsu_MS2830A():
     #               TRACE                #
     ######################################
             
-    def get_trace(self, tracenumber=1, sleeping_time=25):
+    def get_trace(self, tracenumber=1):
         """
         gets trace data
         """
         # in ASCII form (slow, but human readable) and binary (fast, but more difficult to debug)
-        sleep(sleeping_time)
+        sleep(self.get_sweeptime() + 1)
         trace = self._visainstrument.query_ascii_values("TRAC? TRAC%i" %(tracenumber) , container = np.array) # Trace A (default)
 
         return trace
diff --git a/src/pyvisa_commands.py b/src/pyvisa_commands.py
index 8b9e0d72313c8d5c25fdc7d3f9f64b30dcc687af..f113b496dd0d619ba8a9ac34b520954a50712d9c 100644
--- a/src/pyvisa_commands.py
+++ b/src/pyvisa_commands.py
@@ -15,9 +15,11 @@ print("Who am i? " + inst.query("*IDN?"))
 
 inst.write("*RST") # Preset
 print("Self Test: " + inst.query("*TST?"))
+print("SW: " + inst.query("swe:time?"))
+#inst.write("INST SPECT") # set Spectrum Analyzer
 
-inst.write("INST SPECT") # set Spectrum Analyzer
 
+"""
 ######################################
 #           FREQUENCY                #
 ######################################
@@ -72,3 +74,4 @@ print(track)
 #inst.write("*WAI")
 #print("Measurement status query: " + inst.query("MSTAT?"))
 
+"""
\ No newline at end of file