예제 #1
0
 def __init__(self, samples=5000, sample_rate_Hz=100000):
     PhreshQPD.__init__(self,
                        samples=samples,
                        sample_rate_Hz=sample_rate_Hz)
     self.qpd_task = nicontrol.AnalogWaveformInput("PCIe-6321", 0)
     self.qpd_task.addChannel(1)
     self.qpd_task.configureAcquisition(samples, sample_rate_Hz)
예제 #2
0
 def createTask(self):
     self.task = nicontrol.AnalogWaveformInput(source=self.lines[0])
     for line in self.lines[:1]:
         self.task.addChannel(source=line)
     self.task.configureAcquisition(source=self.clock,
                                    samples=self.n_points,
                                    sample_rate_Hz=self.sampling_rate)
     self.task.startTask()
예제 #3
0
 def createTask(self):
     self.qpd_task = nicontrol.AnalogWaveformInput("PCIe-6259", 0)
     self.qpd_task.addChannel(1)
     self.qpd_task.addChannel(2)
     self.qpd_task.configureAcquisition(self.samples, self.sample_rate_Hz)