コード例 #1
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_fixed_loss_compensation(self, loss_comp):
     """
     Sets fixed loss compensation
     :type loss_comp: double
     :param loss_comp: loss compensation is in dB. Range -50dB to +40dB.
     """
     (err, msg) = WN4010ASetup.SetFixedLossCompensation(self, loss_comp)
     self.__error_check(err, msg)
コード例 #2
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_test_sequence_loop_number(self, nb_loop):
     """
     Sets test sequence loop number
     :type nb_loop: integer
     :param nb_loop: the number of test loops (1 to 99).
     """
     (err, msg) = WN4010ASetup.SetTestSequenceLoopNumber(self, nb_loop)
     self.__error_check(err, msg)
コード例 #3
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_bits_number(self, nb_bits):
     """
     Sets bits number
     :type nb_bits: unsigned long
     :param nb_bits: the number of returned payload bits to use for the test
     """
     (err, msg) = WN4010ASetup.SetBitsNumber(self, nb_bits)
     self.__error_check(err, msg)
コード例 #4
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_specific_rx_power_level(self, power_level):
     """
     Sets specific Rx power level
     :type power_level: double
     :param power_level: the power level in dBm. Range -70 to 25,
     resolution 5.
     """
     (err, msg) = WN4010ASetup.SetSpecificRxPowerLevel(self, power_level)
     self.__error_check(err, msg)
コード例 #5
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_specific_tx_power_level(self, power_level):
     """
     Sets specific Tx power level
     :type power_level: double
     :param power_level: the power level in dBm. Range -95.0 to 0.0,
     resolution 0.1.
     """
     (err, msg) = WN4010ASetup.SetSpecificTxPowerLevel(self, power_level)
     self.__error_check(err, msg)
コード例 #6
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def select_link_profile(self, profile):
     """
     Selects the link profile
     :type profile: str
     :param profile: the head set profile to set:
         - "NONE"
         - "HSP": head set profile
     """
     (err, msg) = WN4010ASetup.SelectLinkProfile(self, profile)
     self.__error_check(err, msg)
コード例 #7
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_frequency_hopping_state(self, state):
     """
     Sets frequency hopping state
     :type state: str
     :param profile: the frequency hopping state to set:
         - "ON"
         - "OFF"
     """
     (err, msg) = WN4010ASetup.SetFrequencyHoppingState(self, state)
     self.__error_check(err, msg)
コード例 #8
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_link_profile_state(self, state):
     """
     Sets the link profile state
     :type state: str
     :param profile: the head set profile state to set:
         - "ON"
         - "OFF"
     """
     (err, msg) = WN4010ASetup.SetLinkProfileState(self, state)
     self.__error_check(err, msg)
コード例 #9
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_loss_compensation_state(self, state):
     """
     Sets loss compensation state
     :type state: str
     :param profile: the loss compensation state to set:
         - "ON"
         - "OFF"
     """
     (err, msg) = WN4010ASetup.SetLossCompensationState(self, state)
     self.__error_check(err, msg)
コード例 #10
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_test_mode_link_type(self, mode):
     """
     Sets the test mode link type
     :type mode: str
     :param mode: the test mode link to set:
         - "LOOP"
         - "TRAN"
     """
     (err, msg) = WN4010ASetup.SetTestModeLinkType(self, mode)
     self.__error_check(err, msg)
コード例 #11
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def list_bd_address(self):
     """
     Lists BD addresses
     :rtype: str
     :return: the addresses of the bluetooth devices that have responded to
     the inquiry procedure.
     """
     (err, addresses, msg) = WN4010ASetup.ListBDAddress(self)
     self.__error_check(err, msg)
     return addresses
コード例 #12
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def auto_disconnect_test_set(self, state):
     """
     Auto disconnects from test set
     :type state: str
     :param profile: the auto disconnect state to set:
         - "ON"
         - "OFF"
     """
     (err, msg) = WN4010ASetup.AutoDisconnectTestSet(self, state)
     self.__error_check(err, msg)
コード例 #13
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_impairment_state(self, state):
     """
     Sets impairment state
     :type state: str
     :param profile: the impairment state to set:
         - "ON"
         - "OFF"
     """
     (err, msg) = WN4010ASetup.SetImpairmentState(self, state)
     self.__error_check(err, msg)
コード例 #14
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_link_inquiry_duration(self, duration):
     """
     Sets link inquiry duration
     :type duration: double
     :param duration: duration in seconds: range 1.28 to 61.44. Value is
     rounded to the nearest multiple of 1.28 (example: giving 2.3s sets
     2.56s).
     """
     (err, msg) = WN4010ASetup.SetLinkInquiryDuration(self, duration)
     self.__error_check(err, msg)
コード例 #15
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def add_test(self, name):
     """
     Adds a test to the test sequence
     :type name: str
     :param name: the test name to set:
         - {"CFDR"; "ICFT"; "MCH"; "MIL"; "MSEN"; "OPOW"; "PCON"; "SSEN";
            "BFP"; "DPEN"; "EMIL"; "ESEN"; "FSM"; "GTIM"; "RPOW"}
     """
     (err, msg) = WN4010ASetup.AddTest(self, name)
     self.__error_check(err, msg)
コード例 #16
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_link_type(self, link_type):
     """
     Sets the link type
     :type link_type: str
     :param link_type: the connection type to use:
         - "ACL"
         - "SCO"
         - "TEST"
     """
     (err, msg) = WN4010ASetup.SetLinkType(self, link_type)
     self.__error_check(err, msg)
コード例 #17
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_eut_power_class(self, power_class):
     """
     Sets equipment under test power class
     :type power_class: str
     :param power_class: the power class to set:
         - "PC1"
         - "PC2"
         - "PC3"
     """
     (err, msg) = WN4010ASetup.SetEUTPowerClass(self, power_class)
     self.__error_check(err, msg)
コード例 #18
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_operating_mode(self, mode):
     """
     Sets the operating mode
     :type mode: str
     :param mode: the connection type to use:
         - "LINK"
         - "RFA"
         - "RFG"
     """
     (err, msg) = WN4010ASetup.SetOperatingMode(self, mode)
     self.__error_check(err, msg)
コード例 #19
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def set_test_sequence_loop_mode(self, mode):
     """
     Sets test sequence loop mode
     :type mode: str
     :param mode: the test name to set:
         - "SING"
         - "CONT"
         - "FIX"
     """
     (err, msg) = WN4010ASetup.SetTestSequenceLoopMode(self, mode)
     self.__error_check(err, msg)
コード例 #20
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def select_test(self, name, occurrence):
     """
     Selects a test in the test sequence
     :type name: str
     :param name: the test name to set. Possible values:
         - {"CFDR"; "ICFT"; "MCH"; "MIL"; "MSEN"; "OPOW"; "PCON"; "SSEN";
            "BFP"; "DPEN"; "EMIL"; "ESEN"; "FSM"; "GTIM"; "RPOW"}
     :type occurrence: integer
     :param occurrence: the occurrence of the test name to select
     """
     (err, msg) = WN4010ASetup.SelectTest(self, name, occurrence)
     self.__error_check(err, msg)
コード例 #21
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def reset_eut_bd_address(self):
     """
     Resets equipment under test BD addresses
     """
     (err, msg) = WN4010ASetup.ResetEUTBdAddress(self)
     self.__error_check(err, msg)
コード例 #22
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def initiate_inquiry_procedure(self):
     """
     Initiate inquiry procedure
     """
     (err, msg) = WN4010ASetup.InitiateInquiryProcedure(self)
     self.__error_check(err, msg)
コード例 #23
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def disconnect_test_set(self):
     """
     Disconnects from test set
     """
     (err, msg) = WN4010ASetup.DisconnectTestSet(self)
     self.__error_check(err, msg)
コード例 #24
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def reset_link_configure_parameters(self):
     """
     Resets link configure parameters
     """
     (err, msg) = WN4010ASetup.ResetLinkConfigureParameters(self)
     self.__error_check(err, msg)
コード例 #25
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def run_test_sequence(self):
     """
     Runs test sequence
     """
     (err, msg) = WN4010ASetup.RunTestSequence(self)
     self.__error_check(err, msg)
コード例 #26
0
ファイル: AgilentN4010A.py プロジェクト: zenghui0-0/tempfile
 def reset_test_sequence(self):
     """
     Resets test sequence
     """
     (err, msg) = WN4010ASetup.ResetTestSequence(self)
     self.__error_check(err, msg)