Esempio n. 1
0
    def __init__(self, addr=-1, delay=0.25):
        GPIBObjectBaseClass.__init__(self, '--Fill In--,D5TNF', addr)

        #Ask for the status of a bogus frequency, this will
        #return the current value
        response = self.instr.ask('S9999999')

        self.__addr__ = addr

        self.__freq__ = self.__str2freq__(response[1:])

        self.__delay__ = delay
Esempio n. 2
0
 def __init__(self, addr=-1):
     '''Initializes the GPIB interface'''
     GPIBObjectBaseClass.__init__(self, 'Tektronix,DG2020A', addr)
     self.instr.term_chars = ''  # No terminating characters to get GPIB to work ok
     
     # Internal class variables that are stored after initialization
     self.Vdd = 1.8
     self.SCLK_freq = 25e6
     self.writes = 100
     self.address_width = 16
     self.data_width = 8
     self.pause_width = 1
     self.total_bits = 100
     self.total_bits_digits = 3
Esempio n. 3
0
    def __init__(self,
                 addr=-1,
                 delay=30,
                 HighTemp=140,
                 LowTemp=-60):  # Added paramters to this
        GPIBObjectBaseClass.__init__(self, '', addr)
        #This code is to fix some odd bug in writing to the
        #temp machine the first time
        self.__delay__ = 0.1
        self.__airflow__ = AF_MAX

        #Reset Thermo4300
        #self.instr.write( '*RST' )
        #self.instr.write( 'RSTO' )

        #Set Air Mode by default
        self.__SetupAirMode__(HighTemp, LowTemp)

        #Continue with normal operation
        self.__delay__ = delay
        self.__airflow__ = AF_MAX
Esempio n. 4
0
    def __init__(self, addr=-1, delay=0.1):
        GPIBObjectBaseClass.__init__(self, 'HEWLETT-PACKARD,HP8112A', addr)
        self.__delay__ = delay

        #Trigger modes
        #NORM  = 'M1'
        #TRIG  = 'M2'
        #GATE  = 'M3'
        #E.WID = 'M4'
        #E.BUR = 'M5'
        self._M = 'M3'

        #Trigger control select
        #Trigger off            = 'T0'
        #Positive trigger slope = 'T1'
        #Negative trigger slope = 'T2'
        #Both edges             = 'T3'
        self._T = 'T1'

        #Timing parameters
        self._Period = 10  #msec
        self._DutyCycle = 10  #percent

        #Level parameters
        self._HIL = 3  #voltz
        self._LOL = 0  #voltz

        #Output mode
        #comp output off = 'C0'
        #comp output on  = 'C1'
        #enable output   = 'D0'
        #disable output  = 'D1'
        self._CompOutputs = 'C0'
        self._Enabled = 'D1'

        __SetTriggerMode__()
        __SetTimingParams__()
        __SetLevelParams__()
        __SetOutputMode__()
Esempio n. 5
0
    def __init__(self, addr=-1, delay=0.1, mode=TRIGGER_FALLING):
        GPIBObjectBaseClass.__init__(self, 'TSP>', addr)
      
##        self.instr = fake_instr()
    
        # Initialization of Keithley box
        #self.Reset()
        #time.sleep(2)
        
        self.images_dict = None
        
        self.SetPole('slot1', POLE_ONE)
        self.SetPole('slot4', POLE_ONE)
        self.ExclusiveClose(DEFAULT_BACKPLANE_CONFIG)
        
        self.SetTriggerMode(1, mode)
        self.SetTriggerMode(2, mode)
        
        self.SetConnectionRule(BREAK_BEFORE_MAKE)
        
        self.trigger_wait = 40
        self.channel_wait = 0.1
        self.delay = 0.6
Esempio n. 6
0
    def __init__(self, addr=-1, delay=0.1, y_attn_val=110):
        GPIBObjectBaseClass.__init__(self, '--(unknown)--', addr)

        if (y_attn_val != 90 or y_attn_val != 110):
            assert ('Unknown attn attached.')

        self._lut_x = [
            'B1234', 'A1B234', 'A2B134', 'A12B34', 'A4B123', 'A14B23',
            'A24B13', 'A124B3', 'A34B12', 'A134B2'
        ]

        if y_attn_val == 110:
            self._lut_y = [
                'B5678', 'A5B678', 'A6B578', 'A56B78', 'A8B567', 'A58B67',
                'A68B57', 'A568B7', 'A78B56', 'A578B6', 'A678B5', 'A5678'
            ]
        elif y_attn_val == 90:
            self._lut_y = [
                'B5678', 'A5B678', 'A6B578', 'A7B568', 'A57B68', 'A67B58',
                'A78B56', 'A578B6', 'A678B5', 'A5678'
            ]

        self.__delay__ = delay
Esempio n. 7
0
 def __init__(self, addr=-1):
     '''Initializes the GPIB interface'''
     GPIBObjectBaseClass.__init__(self, 'Tektronixs,DPO70604', addr)
Esempio n. 8
0
 def __init__(self, addr=-1):
     GPIBObjectBaseClass.__init__(self, 'HEWLETT-PACKARD,34401A', addr)
Esempio n. 9
0
 def __init__(self, addr=-3):
     GPIBObjectBaseClass.__init__(self, 'TEKTRONIX,BSA175C', addr)
Esempio n. 10
0
 def __init__(self, addr=-1):
     GPIBObjectBaseClass.__init__(self, 'Agilent Technologies,34410A', addr)
Esempio n. 11
0
File: E5052.py Progetto: arpuvs/RFG
 def __init__(self, addr=-1, delay=0.5):
     GPIBObjectBaseClass.__init__(self, 'Agilent Technologies,E5052', addr)
     self.__delay__ = delay
     self.instr.write(":TRIG:SOPC ON")
     self.instr.write(":FORMAT:DATA ASCII")
Esempio n. 12
0
    def __init__(self, addr=-1, delay=0.1):
        GPIBObjectBaseClass.__init__(self, 'HP8116A', addr)
        self.instr.write('D1')  #disable output

        self.__delay__ = delay
Esempio n. 13
0
 def __init__(self, addr=-1):
     GPIBObjectBaseClass.__init__(self, 'Keithley2700', addr)
Esempio n. 14
0
    def __init__(self, addr=-1):
        GPIBObjectBaseClass.__init__(self, 'Boonton,9232', addr)

        self.Measure_Volt()
        self.__channel = '1'
Esempio n. 15
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'HP8563EC', addr)
     self.__delay__ = delay
Esempio n. 16
0
 def __init__(self, addr=-1):
     '''Initializes the GPIB interface'''
     GPIBObjectBaseClass.__init__(self, 'Tektronix,HFS9003', addr)
Esempio n. 17
0
 def __init__(self, addr=-1):
     GPIBObjectBaseClass.__init__(self, 'TEKTRONIX,DSA72504D', addr)
Esempio n. 18
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'Rohde&Schwarz,FSEA', addr)
     self.__delay__ = delay
Esempio n. 19
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'GW.Inc,PST-3202', addr)
     self.__delay__ = delay
Esempio n. 20
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'N6705B', addr)
     self.__delay__ = delay
Esempio n. 21
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, '2400', addr)
     self.__delay__ = delay
     self.Reset()
Esempio n. 22
0
 def __init__(self, addr=-1, delay=0.01):
     GPIBObjectBaseClass.__init__(self, 'Stanford Research Systems,SG384',
                                  addr)
     self.__delay__ = delay
Esempio n. 23
0
File: E3646A.py Progetto: arpuvs/RFG
 def __init__(self, addr=-1, delay=0.5):
     GPIBObjectBaseClass.__init__(self, 'Agilent Technologies,E3646A', addr)
     self.__delay__ = delay
Esempio n. 24
0
 def __init__(self, addr=-1):
     GPIBObjectBaseClass.__init__(self, 'TEKTRONIX,TDS 654C', addr)
Esempio n. 25
0
File: L4445A.py Progetto: arpuvs/RFG
    def __init__(self,
                 gpib_addr,
                 switches,
                 drive=MODULE_DRIVE_SOURCE_INTERNAL,
                 delay=0.25,
                 self_test=False):
        """
        __init__(gpib_addr, switches, drive = L4445A.MODULE_DRIVE_SOURCE_INTERNAL, delay = 0.25, self_test = False)
            @brief  : Initializes the L4445A Switch Driver Object, with default switch delay of 0.25 seconds.
            @param  : gpib_addr  : GPIB address of the L4445A Switch Driver. Generally it's set to 9.
            @param  : switches   : Python dictionary keyed with a tuple of (bank_no, switch_no) with values
                                   of the switch model number used on the 34945EXT board using the
                                               Y1150A switch control for N1810UL,
                                               Y1151A switch control for L7206A,
                                               Y1152A switch control for 87206A
                                   The bank no. and switch no. on the bank is used in combination as a key.
                                   The range for banks is [1, 2, 3, 4] for 34945EXT = 1,
                                                           [5, 6, 7, 8] for 34945EXT = 2, and so on.
            @param  : drive      : Drive source for the 34945EXT module (master only)
            @param  : delay      : Delay between switch transitions.
            @param  : self_test  : Run Self Test after initialization.
            @example: L4445A(9, switches = {(1, 1) : 'L7206A', (1, 2) : 'L7206A', (2, 2) : '87206A', (3, 1) : 'N1810UL', (3, 2) : 'N1810UL'})
            @note   : If more than one 34945EXT is used in a daisy chain format, then the bank number
                    needs to have an offset of the total number of banks from the previous 34945EXT modules.
        """
        GPIBObjectBaseClass.__init__(self, 'Agilent Technologies,L4445A',
                                     gpib_addr, delay)

        # Validate the switches
        self.__ValidateSwitchMatrix__(switches)

        # Intitialize the switches with the banks. This will also calculate the 34945EXT index based
        # on the bank numbers. If 34945EXT = 2, then the banks should represent (34945EXT*8 + bank_no)
        self.__Initialize34945EXTandSwitches__(switches)

        # Expose the instantiated switches as named attributes of the class
        self.__ExportSwitchesAsAttributes__()

        # Set the drive source for the 34945EXT module based on evaluation of the no. of banks used.
        for _34945ext in self._34945EXTs:
            idx = _34945ext.Index

            # Turn off Drive Source
            self.__SetDriverModuleSource__(idx, self.MODULE_DRIVE_SOURCE_OFF)
            # Set the pair mode
            self.__SetSwitchPairModeAndVerifyPolarity__()
            # Turn on Drive Source
            drive = self.__EvaluateModuleDriveSource__(idx)
            self.__SetDriverModuleSource__(idx, drive)

        # Disable Channel Verification.
        self.__DisableChannelVerification__()

        # Test out the switches, they should click
        try:
            if (self_test):
                self.TestSwitches()
        except Exception, e:
            print "*** ERROR *** : Unable to run the self-test on the switches. "
            print "                You might want to check the drive source."
            print "                Exception : %s" % str(e)
Esempio n. 26
0
 def __init__(self, addr=-1, delay=0.5):
     GPIBObjectBaseClass.__init__(self, 'HEWLETT-PACKARD,E3631A', addr)
     self.__delay__ = delay
Esempio n. 27
0
File: SMIQ.py Progetto: arpuvs/RFG
 def __init__(self, addr=-1, delay=0.025):
     GPIBObjectBaseClass.__init__(self, 'ROHDE&SCHWARZ,SMIQ', addr)
     self.__delay__ = delay
Esempio n. 28
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'Data Precision,8200', addr)
     self.__delay__ = delay
Esempio n. 29
0
 def __init__(self, addr=-1, delay=0.5):
     GPIBObjectBaseClass.__init__(self, 'TEKTRONIX,PS2521G', addr)
     self.__delay__ = delay
Esempio n. 30
0
 def __init__(self, addr=-1, delay=0.1):
     GPIBObjectBaseClass.__init__(self, 'Agilent3499', addr)
     self.__delay__ = delay
     #Reset Agilent3499
     self.instr.write('RESET')