11-02-2020 06:43 PM - edited 11-02-2020 06:45 PM
I am having an issue when I try to include state variable feedback in my VI. I have a system that uses state variable feedback to control a plant. If I define a state space model that includes the necessary feedback gains, then the simulation runs as it should (as expected). All falls apart when I try to use the "CD State Variable Feedback Controller" VI on the Control & Simulation pallet to add the feedback. The system does not behave the same. I suspect that I am placing this VI in the wrong location. After much trial-and-error I am have been unable to find the answer. All parameters (state space model, and feedback gains) have been checked many times and are correct. The only difference between the two versions (working and not working) is how I introduce the feedback gains to the system.
I could really use some help. I suspect the issue is something very simple that I am overlooking. I am including a pic and VI for the system that works (where the feedback gains are included in the state space model), as well as the system I need help with. They are titled Working and NoGood respectively.
My overall goal is to implement a controller on a much more complex system in real-time. In order to do this, I am starting off small and building up complexity slowly. It is necessary to get the NoGood VI working before I can move on to the next step.
Any and all suggestions are welcome and appreciated.