Skip to content

undersnading the value coming out of the Unisens object #5

@koriawas

Description

@koriawas

Hi @skjerns ,

I am using the pyunisens library for reading the files coming out of Movisens Device which follows the Unisens format.

I wanted to ask whether the 'signal value' coming out of object

signal = u.signal_bin
signal = u['signal.bin']
signal = u.entries['signal.bin']
signal = u[0]

are already the Real world values or do I need to convert it like this ?
value = (ADCout - baseline) * lsbValue

my unisens.XML look like below

'<signalEntry adcResolution="16" baseline="2048" comment="ecg" contentClass="ecg" dataType="int16" id="ecg.bin" lsbValue="0.0026858184230029595" sampleRate="1024" unit="mV"> </signalEntry> <signalEntry adcResolution="16" comment="temp" contentClass="temp" dataType="int16" id="temp.bin" lsbValue="0.1" sampleRate="1" unit="Grad Celsius"> <binFileFormat endianess="LITTLE"/> <channel name="temp"/> </signalEntry> <signalEntry adcResolution="16" comment="charging" contentClass="charging" dataType="int16" id="charging.bin" lsbValue="1" sampleRate="0.016666666666666666" unit=""> <binFileFormat endianess="LITTLE"/> <channel name="charging"/>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions