Example #1
0
 def record(self, monitor = Monitor(5512)):
     with Streaming('I',
                    self.samplingRate,
                    self.device,
                    'float32',
                    0,
                    self.inChannels,
                    None,
                    None,
                    None,
                    self.numSamples,
                    monitor) as strm:
         rec = strm.record()
     return SignalObj(rec, 'time', self.samplingRate)
Example #2
0
 def playrec(self, monitor = Monitor(5512)):
     with Streaming('IO',
                    self.samplingRate,
                    self.device,
                    'float32',
                    0,
                    self.inChannels,
                    self.outChannels,
                    self.excitation,
                    None,
                    self.numSamples,
                    monitor) as strm:
         rec = strm.playrec()
     return SignalObj(rec, 'time', self.samplingRate)
Example #3
0
    def play(self, monitor=Monitor(5512)):
        """
        Play SignalObj.

        Returns
        -------
        None.

        """
        with Streaming('O', self.samplingRate, self.device, 'float32', 0, None,
                       self.outChannels, self.excitation, None,
                       self.numSamples, monitor) as strm:
            strm.play()
        return