02-09-2010
04:10 PM
- last edited on
04-23-2025
03:51 PM
by
Content Cleaner
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.
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
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.
02-11-2010 06:32 PM
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.
02-12-2010 12:33 PM
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.
01-03-2011 07:23 AM
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!
01-04-2011 11:08 AM
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>
01-05-2011 01:42 AM
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!
01-12-2011 02:58 AM
Hello!
I have a question. I'dont know where can I find the circled block in the picture.
Thank you for your help!
01-12-2011 03:58 PM
Fulike86,
You can find it in the Express>>Signal Manipulation Pallete.
<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE>
05-04-2020 07:42 AM
hello Kristen could you by any chance have a mechanical ventilator vi that you can post to help me with my study please
05-09-2020 02:59 AM
What the C1 and C2 are representing in this equation?