From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops?

hello everyone,

i'm rai from indonesia

 

I have a final project about pulse oximetriy, I have some problems,

how to calculate the ratio between the maximum and minimum peaks of the two waves using two while loops to calculate SpO2 ?
My program image can be seen below predicament ?

 

 

hitung jadi satu.PNG

0 Kudos
Message 1 of 3
(5,827 Views)

Hi Rai,

 

You should post this into the LabVIEW forum rather than Real-Time since this isn't a Real-Time application. Your post will see more replies in the LabVIEW forum. 


As far as your question is concerned, you can write the max and min from the respective loops to a local variable to send the data out of the loops to a third loop or just do the calculation in one of the loops. This would be ideal if you're trying to do this while the loop is running. 

 

-Jayk

RF R&D
National Instruments
0 Kudos
Message 2 of 3
(5,801 Views)

hello Jayk, nice to meet you. thank you very much for your suggestion, i will try your suggestion

0 Kudos
Message 3 of 3
(5,778 Views)