LabVIEW

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 looping to find the value of SPO2?

 

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 2
(4,014 Views)

Hi rai,

 

I would appreciate it as kind of respect for forum participants if you would clean up your VI before uploading it (or images of its block diagram)…

 

That being said:

- Your inner while loops each run exactly twice. Replace them with FOR loops!

- Lots of unneeded operations, mainly induced by ExpressVI usage. Is there a reason to convert to DDT and immediately convert back to 1D array?

- You already calculate some Min/Max values. Ratio is just a division of two values…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(3,998 Views)