03-22-2013 03:29 PM
I would like to code a simple hybrid system model in the Control Design and Simulation toolkit. However, I am still rather new to LabView and am having trouble thinking in the right way.
Bottom line: I want to switch my model dynamics if the state crosses a boundary. Attached is my incomplete stab at implementation. I was thinking that I could wrap each state space model within a case structure and then toggle based on the boundary crossings: x1=0 or x2=0;
Any help would be great! Thanks!
03-25-2013 11:10 AM
Hi profmartin,
The best way to use information from one iteration of a Control & Simulation Loop to the next is to use the Memory function from the utilities palette (Control Design & Simulation >> Simulation >> Utilities >> Memory). I've added this to your code and included it below.
Hope this helps,
Justin D.
Applications Engineer
National Instruments