示例#1
0
    def video_bandwidth(self):
        """Video bandwidth

        Parameters
        ----------
        value : str {AUTO, 1 Hz to 10 MHz
            When set to AUTO, video bandwidth is based on the VideoBandwidth/RBW ratio.
        """
        value = self._visa.query(f"SENSE{self._screen()}:BANDWIDTH:VIDEO?")
        return scale_frequency(float(value))
示例#2
0
 def center(self):
     """value (int or str):
         0 to f_max in hertz
         string such as '1 GHz'
         keyword such as 'UP' or 'DOWN'
         Marker
     """
     value = float(
         self._visa.query(f"SENSE{self._screen()}:FREQUENCY:CENTER?"))
     return scale_frequency(value)
示例#3
0
    def resolution_bandwidth(self):
        """Resolution bandwidth

        Parameters
        ----------
        value : str {AUTO, 10 Hz to 50 MHz}
            When set to AUTO, RBW is based on the RBW/SPAN ratio.
        """
        value = self._visa.query(
            f"SENSE{self._screen()}:BANDWIDTH:RESOLUTION?")
        return scale_frequency(float(value))
示例#4
0
 def cf_step(self):
     """value (int or string): {f Hz, SPAN, CENTER, MARKER}"""
     value = float(
         self._visa.query(f"SENSE{self._screen()}:FREQ:CENT:STEP?"))
     return scale_frequency(value)
示例#5
0
 def stop(self):
     """value (int or str): 0 to f_max in hertz or string such as '20 MHz'"""
     value = float(
         self._visa.query(f"SENSE{self._screen()}:FREQUENCY:STOP?"))
     return scale_frequency(value)
示例#6
0
 def span(self):
     """value (int or str): 0 to f_max in hertz or string such as '100 MHz' or 'FULL'"""
     value = float(
         self._visa.query(f"SENSE{self._screen()}:FREQUENCY:SPAN?"))
     return scale_frequency(value)
示例#7
0
 def stop_frequency(self):
     """value (int, str): stop frequency in hertz in discrete 1, 3 steps"""
     value = int(self._visa.query("FREQUENCY:STOP?"))
     return scale_frequency(value)
示例#8
0
 def video_bandwidth(self):
     """(str): 1 Hz to 10 MHz"""
     value = self._visa.query(f"SENSE{self._screen()}:BANDWIDTH:VIDEO?")
     return scale_frequency(float(value))
示例#9
0
 def resolution_bandwidth(self):
     """(str): 10 Hz to 50 MHz"""
     value = self._visa.query(f"SENSE{self._screen()}:BANDWIDTH:RESOLUTION?")
     return scale_frequency(float(value))
示例#10
0
 def X(self):
     """value (int or str): 0 to f_max Hz"""
     value = float(
         self._visa.query(f"CALC{self._screen()}:MARK{self._num}:X?"))
     return scale_frequency(value)
示例#11
0
 def resolution(self):
     """value (int or str): frequency counter resolution {0.1, 1, 10, ..., 10000} Hz"""
     value = float(
         self._visa.query(f"CALC{self._screen()}:MARK:COUNT:RESOLUTION?"))
     return scale_frequency(value)
示例#12
0
 def frequency(self):
     """(str): measured frequency at marker 1"""
     value = float(
         self._visa.query(f"CALC{self._screen()}:MARK:COUNT:FREQUENCY?"))
     return scale_frequency(value)