LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I simulate hybrid systems?

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!

0 Kudos
Message 1 of 2
(2,170 Views)

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

 

 

Justin D.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,132 Views)