annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Blood pressure using Arduino

Résolu !
Accéder à la 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 sur 24
2 257 Visites

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 Compliments
Message 12 sur 24
2 242 Visites
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 sur 24
2 239 Visites

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 Compliments
Message 14 sur 24
2 219 Visites

@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 sur 24
2 176 Visites

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 sur 24
2 175 Visites

Also make sure you understand your glaring race condition:

 

altenbach_0-1684159532728.png

 

Message 17 sur 24
2 165 Visites

please can you send me the vi file

0 Compliments
Message 18 sur 24
2 133 Visites

@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 Compliments
Message 19 sur 24
2 097 Visites

@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 Compliments
Message 20 sur 24
2 052 Visites