コード例 #1
0
ファイル: vna.py プロジェクト: linan0827/scikit-rf
 def __init__(self, address=16, channel=1, timeout=3, **kwargs):
     GpibInstrument.__init__(self,
                             'GPIB::' + str(address),
                             timeout=timeout,
                             **kwargs)
     self.channel = channel
     self.port = 1
コード例 #2
0
ファイル: vna.py プロジェクト: seilis/scikit-rf
 def __init__(self, address=16, channel=1,timeout = 3, echo = False,
     front_panel_lockout= False, **kwargs):
     '''
     Constructor 
     
     Parameters
     -------------
     address : int
         GPIB address 
     channel : int
         set active channel. Most commands operate on the active channel
     timeout : number
         GPIB command timeout in seconds. 
     echo : Boolean
         echo  all strings passed to the write command to stdout. 
         usefule for troubleshooting
     front_panel_lockout : Boolean
         lockout front panel during operation. 
     \*\*kwargs : 
         passed to :func:`visa.GpibInstrument.__init__`
     '''
     GpibInstrument.__init__(self,
         'GPIB::'+str(address),
         timeout=timeout,
         **kwargs)
         
     self.channel=channel
     self.port = 1
     self.echo = echo
     if not front_panel_lockout:
         self.gtl()
コード例 #3
0
ファイル: sa.py プロジェクト: Keysight-NBrennan/scikit-rf
 def __init__(self, address=18, *args, **kwargs):
     '''
     Initializer
     
     Parameters
     --------------
     address : int
         GPIB address
     \*args, \*\*kwargs :
         passed to ``visa.GpibInstrument.__init__``
     '''
     GpibInstrument.__init__(self,'GPIB::'+str(address),*args,**kwargs)
コード例 #4
0
 def __init__(self, address=18, *args, **kwargs):
     '''
     Initializer
     
     Parameters
     --------------
     address : int
         GPIB address
     \*args, \*\*kwargs :
         passed to ``visa.GpibInstrument.__init__``
     '''
     GpibInstrument.__init__(self, 'GPIB::' + str(address), *args, **kwargs)
コード例 #5
0
ファイル: stages.py プロジェクト: SjoerdOptLand/scikit-rf
    def __init__(self, address=1, current_axis=1,\
            always_wait_for_stop=True,delay=0,**kwargs):
        '''
        takes:
                address:        Gpib address, int [1]
                current_axis:   number of current axis, int [1]
                always_wait_for_stop:   wait for stage to stop before
                        returning control to calling program, boolean [True]
                **kwargs:       passed to GpibInstrument initializer
        '''

        GpibInstrument.__init__(self,address,**kwargs)
        self.current_axis = current_axis
        self.always_wait_for_stop = always_wait_for_stop
        self.delay=delay
コード例 #6
0
ファイル: stages.py プロジェクト: seilis/scikit-rf
    def __init__(self, address=1, current_axis=1, always_wait_for_stop=True, delay=0, **kwargs):
        """
        Initializer 
        
        Parameters
        -------------
        address :   int
            Gpib address
        current_axis :   int 
            number of current axis
        always_wait_for_stop :   Boolean
            wait for stage to stop before
            returning control to calling program
        \*\*kwargs :
            passed to GpibInstrument initializer
        """

        GpibInstrument.__init__(self, address, **kwargs)
        self.current_axis = current_axis
        self.always_wait_for_stop = always_wait_for_stop
        self.delay = delay
コード例 #7
0
    def __init__(self, address=1, current_axis=1,\
            always_wait_for_stop=True,delay=0,**kwargs):
        '''
        Initializer 
        
        Parameters
        -------------
        address :   int
            Gpib address
        current_axis :   int 
            number of current axis
        always_wait_for_stop :   Boolean
            wait for stage to stop before
            returning control to calling program
        \*\*kwargs :
            passed to GpibInstrument initializer
        '''

        GpibInstrument.__init__(self, address, **kwargs)
        self.current_axis = current_axis
        self.always_wait_for_stop = always_wait_for_stop
        self.delay = delay
コード例 #8
0
ファイル: vna.py プロジェクト: rgommers/scikit-rf
	def __init__(self, address=16,**kwargs):
		GpibInstrument.__init__(self,'GPIB::'+str(address),**kwargs)
		self.write('FORM4;')
コード例 #9
0
ファイル: vna.py プロジェクト: rgommers/scikit-rf
	def __init__(self, address=20,**kwargs):
		GpibInstrument.__init__(self,address, **kwargs)
		self.add_channel(1)
コード例 #10
0
ファイル: vna.py プロジェクト: rgommers/scikit-rf
	def __init__(self, address=16, channel=1,**kwargs):
		GpibInstrument.__init__(self,'GPIB::'+str(address),**kwargs)
		self.channel=channel
		self.write('calc:par:sel CH1_S11_1')
コード例 #11
0
ファイル: vna.py プロジェクト: rgommers/scikit-rf
	def __init__(self, address=20, active_channel = 1, continuous=True,\
		**kwargs):
		GpibInstrument.__init__(self,address, **kwargs)
		self.active_channel = active_channel
		self.continuous = continuous
		self.traces = []
コード例 #12
0
ファイル: vna.py プロジェクト: edy555/scikit-rf
 def __init__(self, address=16, channel=1,timeout = 3, **kwargs):
     GpibInstrument.__init__(self,'GPIB::'+str(address),timeout=timeout,**kwargs)
     self.channel=channel
     self.port = 1
コード例 #13
0
ファイル: vna.py プロジェクト: linan0827/scikit-rf
 def __init__(self, address=16, **kwargs):
     GpibInstrument.__init__(self, 'GPIB::' + str(address), **kwargs)
     self.write('FORM4;')
コード例 #14
0
ファイル: vna.py プロジェクト: linan0827/scikit-rf
 def __init__(self, address=20, **kwargs):
     GpibInstrument.__init__(self, address, **kwargs)
     self.add_channel(1)
コード例 #15
0
ファイル: vna.py プロジェクト: linan0827/scikit-rf
 def __init__(self, address=20, active_channel = 1, continuous=True,\
         **kwargs):
     GpibInstrument.__init__(self, address, **kwargs)
     self.active_channel = active_channel
     self.continuous = continuous
     self.traces = []