I have problems with the pulse o2 meter.
I just got my FEX Cobra II Net board and the pulse o2 module.
Connected the module to port 5 and copyed the code from here:
https://www.ghielectronics.com/community/forum/topic?id=10950
The issue I have: when I dont have my finger in the module it get the the pulseOximeter_ProbeAttached event and
pulseOximeter_Heartbeat event. When I insert my finger the pulseOximeter_Heartbeat event stops and I cant measure any readings.
If I boot the device with the finger inserted no events are fired.
Have looked over the code and not much I can do or change, the triggers for these events are deep under my code.
Any tips or known issues?
Have tried to search the forums without any luck.
The code:
In ProgramStarted()
pulseOximeter.ProbeAttached += new PulseOximeter.ProbeAttachedHandler(pulseOximeter_ProbeAttached);
pulseOximeter.ProbeDetached += new PulseOximeter.ProbeDetachedHandler(pulseOximeter_ProbeDetached);
pulseOximeter.Heartbeat += new PulseOximeter.HeartbeatHandler(pulseOximeter_Heartbeat);
The functions:
void pulseOximeter_ProbeDetached(PulseOximeter sender)
{
Debug.Print("Probe Detached");
}
void pulseOximeter_ProbeAttached(PulseOximeter sender)
{
Debug.Print("Probe Attached");
_pulse = 0;
_spo2 = 0;
}
void pulseOximeter_Heartbeat(PulseOximeter sender, PulseOximeter.Reading reading)
{
Debug.Print("Heartbeat");
Debug.Print("Pulse: " + reading.PulseRate);
Debug.Print("SPO2: " + reading.SPO2);
Debug.Print("Signal: " + reading.SignalStrength);
if (_pulse != reading.PulseRate || _spo2 != reading.SPO2)
{
_pulse = reading.PulseRate;
_spo2 = reading.SPO2;
}
}
-Thomas