systole.recording.Nonin3231USB#
- class systole.recording.Nonin3231USB(serial, add_channels: int | None = 1)[source]#
Recording Nonin 3231 USB HR signal through USB connection.
- Parameters:
- serialpySerial object
The serial instance interfacing with the USB port.
Examples
First, you will need to define a
serial()
instance, indexing the USB port where the Nonin 3231 Pulse Oximeter is plugged. >>> import serial >>> ser = serial.Serial(‘COM4’) This instance is then used to create anNonin3231USB()
instance that will be used for the recording from a Nonin 3231 USB device. >>> from ecg.recording import Nonin3231USB >>> exg = Nonin3231USB(serial).read(30) Use theread()
method to record some signal and save it in the exg dictionary. .. warning:: The signals received fom the host are appened to a list. Thisprocess can require more time at each iteration as the signal length increase in memory. You should alway make sure that this will not interfer with other task and regularly save intermediate recording to save resources.
Methods
__init__
(serial[, add_channels])close
()Close serial connections.
read
(duration)Read PPG signal for some amount of time.
readInWaiting
([bool])Read in waiting Nonin data.
reset
(serial[, add_channels])Initialize/restart the recording instance.
setup
()Reset the recording instance.