LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Blood pressure using Arduino

Solved!
Go to solution
Solution

Salut Samiabch

 

J'ai essayé de combiner le programme de Mr. Altenbach avec Linx. Teste le et faut nous dire si ca marche. 

Merci!

Message 11 of 24
(1,569 Views)

Hi, thank u for your help, it works good, know I want to deflate the valve every -5mmHg or every equivalent time interval to compare the actual and the previous value of pressure and in the last to have the systolic pressure ( the first value of the pressure detected) and diastolic pressure ( tha last value of the pressure detected)

Samiabch123_0-1684129002560.png

 

0 Kudos
Message 12 of 24
(1,554 Views)
Solution

You are so welcome. It is my pleasure to help. But It's super late here. I would definitely like to help you. Also please can you give a Kudos? One way of thanking people here is also by giving them kudos or accept their answer as best answer. Also if you give me a kudo, please do also give to Mr. Altenbach because all I did was combining the code he made with Linx.

But Yes, I will try my best to look at it tomorrow.

Message 13 of 24
(1,551 Views)

Thank you for your remark I did not pay attention to the "kudos", so thank you very much for your efforts to help me and I am still waiting for your support to solve the problem of measuring systolic and diastolic pressures. thanks in advance

0 Kudos
Message 14 of 24
(1,531 Views)

@GRCK5000 wrote:

Salut Samiabch

 

J'ai essayé de combiner le programme de Mr. Altenbach avec Linx. Teste le et faut nous dire si ca marche. 

Merci!


This is still highly convoluted with race conditions, way too much unnecessary code, and hidden front panel controls just used as "scaffold" for local variables. None of these local variables are needed! Why would you need to set the pressure to zero in parallel to the first pressure reading?

 

Here's how it could look like  instead (sorry, I don't have linx).

 

altenbach_0-1684158100470.png

 

In the upper part we would add accumulate the pressure reading in an array for analysis (not shown) and in the lower part we would enhance the deflate state behavior so it repeatedly waits for the pressure to decrement by 5 pressure units. (not shown).

Message 15 of 24
(1,488 Views)

Thanks Mr. Altenbach!

I see. So I can just place the Linx VIs in series.

Thanks for showing me how to turn all the booleans to false without having to use local variables. This is awesome 😃.

I’m getting better acquiring all the knowledge. Haha

Message 16 of 24
(1,487 Views)

Also make sure you understand your glaring race condition:

 

altenbach_0-1684159532728.png

 

Message 17 of 24
(1,477 Views)

please can you send me the vi file

0 Kudos
Message 18 of 24
(1,445 Views)

@altenbach wrote:

@GRCK5000 wrote:

Salut Samiabch

 

J'ai essayé de combiner le programme de Mr. Altenbach avec Linx. Teste le et faut nous dire si ca marche. 

Merci!


This is still highly convoluted with race conditions, way too much unnecessary code, and hidden front panel controls just used as "scaffold" for local variables. None of these local variables are needed! Why would you need to set the pressure to zero in parallel to the first pressure reading?

 

Here's how it could look like  instead (sorry, I don't have linx).

 

altenbach_0-1684158100470.png

 

In the upper part we would add accumulate the pressure reading in an array for analysis (not shown) and in the lower part we would enhance the deflate state behavior so it repeatedly waits for the pressure to decrement by 5 pressure units. (not shown).


you said that the lower part will improve the behavior of the deflate state so that it repeatedly waits for the pressure to decrease by 5 pressure units. I have to make in "deflate" a wait for some time like 10ms?? please explain to me more.

0 Kudos
Message 19 of 24
(1,409 Views)

@User002 wrote:
you said that the lower part will improve the behavior of the deflate state so that it repeatedly waits for the pressure to decrease by 5 pressure units. I have to make in "deflate" a wait for some time like 10ms?? please explain to me more.

No, I said you need to modify the lower part to do these new requirements. Should not be too hard.

 

As a first step you need to define exactly how that should work. Obviously once the valve is open, the pressure will decrease at some rate, so what exactly should happen (valve state, pump state, etc.) after it has decreased by 5 units and repeatedly after that? Should it close the valve for a define short time (probably more than 10ms!) after each step? How long?

0 Kudos
Message 20 of 24
(1,364 Views)