exopy_hqc_legacy/instruments/drivers/visa/tinybuilt.py
def defined_channels(self):
        """defined_channels is a list of tuple with format (module_number,
                                                                channel_number)
        """
        modules = self.query('I:L?')
        if modules:
            defined_modules = np.array([s.split(',')
                                            for s in modules.split(';')],
                                            dtype=np.uint)
            defined_channels = []
            for i in defined_modules[:,0].tolist():
                if defined_modules[i-1,1]==2141:
                    defined_channels.extend([(i,1), (i,2), (i,3), (i,4)])
                elif defined_modules[i-1,1]==2101:
                    defined_channels.append((i,1))
                else:
                    raise InstrIOError(cleandoc('''Driver not written for
                                                    this type of module'''))
            return defined_channels

        else:
            raise InstrIOError(cleandoc('''Instrument did not return
                                            the defined channels'''))
defined_channels is a list of tuple with format (module_number,
                                                                channel_number)
        
defined_channels is a list of tuple with format (module_number,
channel_number)
defined_channels is a list of tuple with format ( module_number channel_number )
def defined_channels(self):
        modules = self.query('I:L?')
        if modules:
            defined_modules = np.array([s.split(',')
                                            for s in modules.split(';')],
                                            dtype=np.uint)
            defined_channels = []
            for i in defined_modules[:,0].tolist():
                if defined_modules[i-1,1]==2141:
                    defined_channels.extend([(i,1), (i,2), (i,3), (i,4)])
                elif defined_modules[i-1,1]==2101:
                    defined_channels.append((i,1))
                else:
                    raise InstrIOError(cleandoc('''Driver not written for
                                                    this type of module'''))
            return defined_channels
        else:
            raise InstrIOError(cleandoc('''Instrument did not return
                                            the defined channels'''))
def defined_channels ( self ) : modules = self . query ( 'I:L?' ) if modules : defined_modules = np . array ( [ s . split ( ',' ) for s in modules . split ( ';' ) ] , dtype = np . uint ) defined_channels = [ ] for i in defined_modules [ : , 0 ] . tolist ( ) : if defined_modules [ i - 1 , 1 ] == 2141 : defined_channels . extend ( [ ( i , 1 ) , ( i , 2 ) , ( i , 3 ) , ( i , 4 ) ] ) elif defined_modules [ i - 1 , 1 ] == 2101 : defined_channels . append ( ( i , 1 ) ) else : raise InstrIOError ( cleandoc ( '''Driver not written for
                                                    this type of module''' ) ) return defined_channels else : raise InstrIOError ( cleandoc ( '''Instrument did not return
                                            the defined channels''' ) )
defined_channels is a list of tuple with format (module_number,
channel_number)
defined_channels is a list of tuple with format ( module_number channel_number )
"""defined_channels is a list of tuple with format (module_number,
                                                                channel_number)
        """
self