pydevices/HtsDevices/acq400_hapi/acq400.py
def pull_plot(self, channels=(), demux=-1):
        """
        Pulls data from 53000 or 5300X depending on the status of demux.
        This function takes a tuple of integers and will return the
        corresponding data from each 5300X port (if demux is on) and will return
        the corresponding data filtered from 53000 if demux is off.

        The user can also override the detected demux state if they want to: 1
        is demux on and 0 is demux off. Default is -1 and means autodetect.

        This function returns an array of the specified channels and plots the
        data.
        """
        data = []
        if demux == -1:
            demux = self.get_demux_state()
        if demux == 1:
            data = self.read_channels(channels)
        elif demux == 0:
            mux_data = self.read_muxed_data()
            print("mux data = ", mux_data)
            nchan = self.nchan()
            if channels == ():
                channels = list(range(1,nchan+1))
            for ch in channels:
                print("Channel - ", ch)
                data.append(mux_data[ch-1::nchan])

        import matplotlib.pyplot as plt
        for channel in data:
            plt.plot(channel)
        plt.grid(True)
        plt.show()
        return data

        Pulls data from 53000 or 5300X depending on the status of demux.
        This function takes a tuple of integers and will return the
        corresponding data from each 5300X port (if demux is on) and will return
        the corresponding data filtered from 53000 if demux is off.

        The user can also override the detected demux state if they want to: 1
        is demux on and 0 is demux off. Default is -1 and means autodetect.

        This function returns an array of the specified channels and plots the
        data.
        
Pulls data from 53000 or 5300X depending on the status of demux.
This function takes a tuple of integers and will return the
corresponding data from each 5300X port (if demux is on) and will return
the corresponding data filtered from 53000 if demux is off.

The user can also override the detected demux state if they want to: 1
is demux on and 0 is demux off. Default is -1 and means autodetect.

This function returns an array of the specified channels and plots the
data.
Pulls data from 53000 or 5300X depending on the status of demux . This function takes a tuple of integers and will return the corresponding data from each 5300X port ( if demux is on ) and will return the corresponding data filtered from 53000 if demux is off . The user can also override the detected demux state if they want to : 1 is demux on and 0 is demux off . Default is - 1 and means autodetect . This function returns an array of the specified channels and plots the data .
def pull_plot(self, channels=(), demux=-1):
        data = []
        if demux == -1:
            demux = self.get_demux_state()
        if demux == 1:
            data = self.read_channels(channels)
        elif demux == 0:
            mux_data = self.read_muxed_data()
            print("mux data = ", mux_data)
            nchan = self.nchan()
            if channels == ():
                channels = list(range(1,nchan+1))
            for ch in channels:
                print("Channel - ", ch)
                data.append(mux_data[ch-1::nchan])
        import matplotlib.pyplot as plt
        for channel in data:
            plt.plot(channel)
        plt.grid(True)
        plt.show()
        return data
def pull_plot ( self , channels = ( ) , demux = - 1 ) : data = [ ] if demux == - 1 : demux = self . get_demux_state ( ) if demux == 1 : data = self . read_channels ( channels ) elif demux == 0 : mux_data = self . read_muxed_data ( ) print ( "mux data = " , mux_data ) nchan = self . nchan ( ) if channels == ( ) : channels = list ( range ( 1 , nchan + 1 ) ) for ch in channels : print ( "Channel - " , ch ) data . append ( mux_data [ ch - 1 : : nchan ] ) import matplotlib . pyplot as plt for channel in data : plt . plot ( channel ) plt . grid ( True ) plt . show ( ) return data
Pulls data from 53000 or 5300X depending on the status of demux.
Pulls data from 53000 or 5300X depending on the status of demux .
"""
        Pulls data from 53000 or 5300X depending on the status of demux.
        This function takes a tuple of integers and will return the
        corresponding data from each 5300X port (if demux is on) and will return
        the corresponding data filtered from 53000 if demux is off.

        The user can also override the detected demux state if they want to: 1
        is demux on and 0 is demux off. Default is -1 and means autodetect.

        This function returns an array of the specified channels and plots the
        data.
        """
self
channels
demux