Model/trap.py
def startMonitor(self,conditions):
        """Starts continuous acquisition of the specified channels with the specified timing interval.
        conditions['devs'] -- list of devices to monitor
        conditions['accuracy'] -- accuracy for the monitor. If not defined defaults to 0.1s
        """
        self.monitorTask = self.tasks['Monitor']
        channels = []
        if conditions['accuracy']>0:
            accuracy = conditions['accuracy']
        else:
            accuracy = 0.1 # 100 milliseconds
        if self._session.adq['type'] == 'ni':
            if type(conditions['devs']) == type(""):
                conditions['devs'] = [conditions['devs']]
            for dev in conditions['devs']:
                self.devsMonitor = len(conditions['devs'])
                if dev.properties['Type'] == 'Analog':
                    channels.append(dev.properties['Input']['Hardware']['PortID'])
                    limitmax = dev.properties['Input']['Limits']['Max']
                    limitmin = dev.properties['Input']['Limits']['Min']
                    # print('Channel: %s'%channels[-1])
                    # print('--- Limit Max: %s'%limitmax)
                    # print('--- Limit Min: %s'%limitmin)

            self.monitorNum = self.adq.analogSetup(self.monitorTask,channels,0,accuracy,(limitmin,limitmax))
            #for mon in self.monitorNum:
            self.adq.analogTrigger(self.monitorNum)
Starts continuous acquisition of the specified channels with the specified timing interval.
        conditions['devs'] -- list of devices to monitor
        conditions['accuracy'] -- accuracy for the monitor. If not defined defaults to 0.1s
        
Starts continuous acquisition of the specified channels with the specified timing interval.
conditions['devs'] -- list of devices to monitor
conditions['accuracy'] -- accuracy for the monitor. If not defined defaults to 0.1s
Starts continuous acquisition of the specified channels with the specified timing interval . conditions [ ' devs ' ] -- list of devices to monitor conditions [ ' accuracy ' ] -- accuracy for the monitor . If not defined defaults to 0 . 1s
def startMonitor(self,conditions):
        self.monitorTask = self.tasks['Monitor']
        channels = []
        if conditions['accuracy']>0:
            accuracy = conditions['accuracy']
        else:
            accuracy = 0.1 
        if self._session.adq['type'] == 'ni':
            if type(conditions['devs']) == type(""):
                conditions['devs'] = [conditions['devs']]
            for dev in conditions['devs']:
                self.devsMonitor = len(conditions['devs'])
                if dev.properties['Type'] == 'Analog':
                    channels.append(dev.properties['Input']['Hardware']['PortID'])
                    limitmax = dev.properties['Input']['Limits']['Max']
                    limitmin = dev.properties['Input']['Limits']['Min']
            self.monitorNum = self.adq.analogSetup(self.monitorTask,channels,0,accuracy,(limitmin,limitmax))
            self.adq.analogTrigger(self.monitorNum)
def startMonitor ( self , conditions ) : self . monitorTask = self . tasks [ 'Monitor' ] channels = [ ] if conditions [ 'accuracy' ] > 0 : accuracy = conditions [ 'accuracy' ] else : accuracy = 0.1 if self . _session . adq [ 'type' ] == 'ni' : if type ( conditions [ 'devs' ] ) == type ( "" ) : conditions [ 'devs' ] = [ conditions [ 'devs' ] ] for dev in conditions [ 'devs' ] : self . devsMonitor = len ( conditions [ 'devs' ] ) if dev . properties [ 'Type' ] == 'Analog' : channels . append ( dev . properties [ 'Input' ] [ 'Hardware' ] [ 'PortID' ] ) limitmax = dev . properties [ 'Input' ] [ 'Limits' ] [ 'Max' ] limitmin = dev . properties [ 'Input' ] [ 'Limits' ] [ 'Min' ] self . monitorNum = self . adq . analogSetup ( self . monitorTask , channels , 0 , accuracy , ( limitmin , limitmax ) ) self . adq . analogTrigger ( self . monitorNum )
Starts continuous acquisition of the specified channels with the specified timing interval.
Starts continuous acquisition of the specified channels with the specified timing interval .
"""Starts continuous acquisition of the specified channels with the specified timing interval.
        conditions['devs'] -- list of devices to monitor
        conditions['accuracy'] -- accuracy for the monitor. If not defined defaults to 0.1s
        """ # 100 milliseconds # print('Channel: %s'%channels[-1]) # print('--- Limit Max: %s'%limitmax) # print('--- Limit Min: %s'%limitmin) #for mon in self.monitorNum:
self
conditions