10-10-2012 05:25 PM
Hi,
I´ve been developing a .vi for controlling a lung simulator.
My hardware is not NI, so all my input/output is through 3 different VISA Serial-USB (Air Flow sensor, Pressure sensor, Motor controller).
The problem I have, is the delay of the flow measures (+- 160ms), so I am searching the way adding a Smith Predictor to the control routine.
In the attached, is part of what I am doing, but don´t know if this is ok?
I know that the Simulation Loop is used for simulate certain plant/control, and I also know that the Simulation loop can be put inside a general while loop, so that in every execution of the general while loop, only one step of the ODE solver is executed....
But, can I use a Simulation loop to actually control a real system??
I haven´t found any example of this, all the examples are of simulations, but not real stuff.
Which is the correct way of Deploying complex control in labview for real systems? (not modeling, nor design, nor simulation, neither optimization)
Thank you very much for your time!!
Best regards, Pablo
10-19-2012 03:14 PM
10-19-2012 06:23 PM
Pablo,
I don't really have time to look at the specifics of your VI. But hope the following are useful:
Smith Predctor is a model based *control structure* to cope with time delay dominated systems. There ae plenty of references that describe it:
Running a CD&SIM loop to simulate a model running on a real-time system: