05-14-2023 11:36 PM
Salut Samiabch
J'ai essayé de combiner le programme de Mr. Altenbach avec Linx. Teste le et faut nous dire si ca marche.
Merci!
05-15-2023 12:39 AM
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)
05-15-2023 12:50 AM - edited 05-15-2023 01:06 AM
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.
05-15-2023 01:31 AM
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
05-15-2023 08:46 AM - edited 05-15-2023 08:59 AM
@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).
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).
05-15-2023 08:52 AM
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
05-15-2023 09:06 AM
05-15-2023 03:59 PM
please can you send me the vi file
05-15-2023 11:41 PM
@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).
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.
05-16-2023 09:11 AM
@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?