07-13-2017 09:55 AM - edited 07-13-2017 10:11 AM
I realize that English is not your first language, however, data was posted and not your algorithm. I have read your assignment and now see that your instructor's goal is to have you implement an algorithm in LABVIEW. This is why I asked for the algorithm. Use Google to search for Pulse oximeter Beer's Law. Ask your instructor to help you with calculating the SAO2 and PULSE RATE by hand (no computer).
I have a few observations and suggestions to improve with your LONG-TERM learning (this will not help you with your assignment):
1) Labview = Data-Acquisition. I suggest that you use measure an analog oximeter signal (http://tinyurl.com/oximeter1) to learn how Labview can be quickly used measure signals. The video shows an Nellcor N600X analog pleth signal collected with MATLAB using an Arduine Due: the concept is the same.
2) MATLAB = Signal Analysis. A mathematics package like MATLAB is the place to prototype the algorithm. The upper plot shows your red data:
I think that because of the order in which the data is stored, the data is 'backwards': the MATLAB command fliplr() was used to create the lower graph which (from experience) depicts a more realistic pleth waveform. I discarded the first data point and first column. Although this is a NI board and NI has made significant progress in the last 20 years regarding signal processing, MATLAB or NumPY would be my first choice.
3) Finally, I would suggest that you focus on either the algorithm OR the data-acquisition: NOT both. The algorithm involves Beer's law and it would be helpful (maybe necessary) to have an undergraduate EE degree. If you are an undergraduate or in highschool I suggest using wiring a Nonin iPod 3150 oximeter to a PL2303HX Converter USB To RS232 TTL USB To COM to demonstrate that you can wire up a device correctly and read a signal. I have mentored students serial communications and have 2 devices remaining that are 'plug and play.
07-14-2017 01:05 AM
Hi gatorback.
Thank you for your suggestion. I relized that yesterday after the comment from GerdW. I started doing everything from the start and manage to get Sp02 rate. For heart rate I will take the time between to peaks and 1/T is the heart rate.
07-18-2017 06:00 AM
Guys, How can I detect two adjacent peaks from array? And show their value and index?
Thanks
P.S. I am sending you the .csv file from which I have to detect peaks.
07-18-2017 06:15 AM
07-18-2017 06:29 AM
Search it with which function?
07-18-2017 06:37 AM
07-18-2017 06:42 AM
I tried array min and max, but that only returns one value, and peak detect but I cannot connect my array with that vi.
07-18-2017 06:50 AM
07-18-2017 06:57 AM
Here is the .vi