示例#1
0
 def load(self):
     sysfile = open(seqconf.systemtxt(),"r")
     while True:
         line = sysfile.readline()
         if line[0:len('ANALOG_DEVICE')]=='ANALOG_DEVICE':
             break
     deviceSection = True
     num=0
     while True:
         line = sysfile.readline()
         if line[0]=='#':
             break
         else:
            dev=line.split()
            self.names.append(dev[0])
            self.trigout[dev[0]]=dev[1]
            self.trig[dev[0]]=dev[2]
            self.num[dev[0]]=num
            num=num+1
     self.len=len(self.names)
示例#2
0
 def load(self):
     sysfile = open(seqconf.systemtxt(), "r")
     while True:
         line = sysfile.readline()
         if line[0:len('ANALOG_OUT')] == 'ANALOG_OUT':
             break
     digoutSection = True
     num = 0
     while True:
         line = sysfile.readline()
         if line[0] == '#':
             break
         else:
             ch = line.split()
             self.names.append(ch[1])
             self.physCh[ch[1]] = ch[0]
             self.dflts[ch[1]] = ch[2]
             self.num[ch[1]] = num
             num = num + 1
     self.len = len(self.names)
示例#3
0
 def load(self):
     sysfile = open(seqconf.systemtxt(),"r")
     while True:
         line = sysfile.readline()
         if line[0:len('ANALOG_OUT')]=='ANALOG_OUT':
             break
     digoutSection = True
     num=0
     while True:
         line = sysfile.readline()
         if line[0]=='#':
             break
         else:
            ch=line.split()
            self.names.append(ch[1])
            self.physCh[ch[1]]=ch[0]
            self.dflts[ch[1]]=ch[2]
            self.num[ch[1]]=num
            num=num+1
     self.len=len(self.names)
示例#4
0
 def load(self):
     sysfile = open(seqconf.systemtxt(), "r")
     while True:
         line = sysfile.readline()
         if line[0:len('ANALOG_DEVICE')] == 'ANALOG_DEVICE':
             break
     deviceSection = True
     num = 0
     while True:
         line = sysfile.readline()
         if line[0] == '#':
             break
         else:
             dev = line.split()
             self.names.append(dev[0])
             self.trigout[dev[0]] = dev[1]
             self.trig[dev[0]] = dev[2]
             self.num[dev[0]] = num
             num = num + 1
     self.len = len(self.names)