LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mechanical ventilator simulation

Hi MMozart,

 

I am not sure what specifically you mean by your code is not working.  When I rebuilt your VI, I had to add a case structure with First Call? function and the case selector to make sure the feedback got decent values for end conditions.  inhaleexhale2.png

 

I didn't get the same plot as the simulation, which i suspect is because the two functions are different mathematically.  Take a look at these two help files to compare the functions:

 

CD&Sim Integrator Function Help

 

Integral x(t) Help

 

I also found the KB about the Integral x(t) VI, which might be easier to read through than the equations: http://digital.ni.com/public.nsf/allkb/862567530005F09C8625675B0053F71E?OpenDocument  

 

I hope this helps!

 

Kristen H.

 

Message 11 of 21
(4,100 Views)

Finally, I found the solution with the little help from my friend ! 🙂 Just in case if someone is interested in, here is the solution. Kristen and Andy, thank you very much for your help.

 

1.png

 

 

 

 2.png

 

3.png

 

 

 

 

0 Kudos
Message 12 of 21
(4,087 Views)

MMozart,

 

Glad to hear you have a working solution.  My only comment is to be careful when using so many local variables.  This creates oportunities for race conditions, which are difficult to troubleshoot and can lead to some serious headache.  If you can, replace the local variables with wires- its also easier to read and use highlight execution.  

 

Kristen H.

0 Kudos
Message 13 of 21
(4,075 Views)

Hello MMozart!

 

I'm doing my diploma work (Application technique of preterm ventilation), and I must to simulate some of the mechanical ventilation modes in Labview, but I dont have any equation to the curves (pressure, flow, volume). Can you help me where can I find the equations which are calculated on the basis these curves? 

 

Sorry if my letter is difficult to understand, but I have started studying the English language recently.

 

Thank you for your help! 

0 Kudos
Message 14 of 21
(3,857 Views)

Fulike86,

 

I would like to remind you that you are posting on a very old forum. The likely hood that anybody will see your post is low. If you wish to contact MMozart I would suggest that you send him a private message. You can do this by clicking on his name and in the left column selecting "send user private message".

 

<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 


0 Kudos
Message 15 of 21
(3,827 Views)

Oh, you are right! I didn't see the date of the letters. I'm going to write to him.

 

Thank you for your warn!

0 Kudos
Message 16 of 21
(3,811 Views)

Hello!

 

I have a question. I'dont know where can I find the circled block in the picture.

 

Thank you for your help!

0 Kudos
Message 17 of 21
(3,775 Views)

Fulike86,

 

You can find it in the Express>>Signal Manipulation Pallete.

 

2011-01-12_155708.jpg

 

<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE> 


0 Kudos
Message 18 of 21
(3,753 Views)

hello Kristen could you by any chance have a mechanical ventilator vi that you can post to help me with my study please

0 Kudos
Message 19 of 21
(2,592 Views)

What the C1 and C2 are representing in this equation?

 

0 Kudos
Message 20 of 21
(2,522 Views)