12-01-2015 05:48 PM
I know that this is a LabView forum, but maybe someone do know the answer as I would like to use this model later in LabView.
I've a problem with getting response for my LQR regulator. I attach a file with data, which You should run before running a model for creating a statespace matrixes. I get this error.
I'm trying to get a closed loop response similar to tha last model here: http://ctms.engin.umich.edu/CTMS/index.php?example=AircraftPitch§ion=SimulinkModeling
why is this error occuring when my matrixes are for 2 states? When in mdl I change in State Space a value of matrix A from A to A-B*K I get the same response as in mfile.
12-01-2015 06:07 PM
12-02-2015 10:11 AM
You most likely don't have the dimensions of your matrices right. Review the sizes and be sure to have the 'dimensions' as expected...
If you were using the LabVIEW Control Design and Simulation Module, you could easily see a shipping examples that would demonstrate these operations in LabVIEW:
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Control and Simulation\Case Studies\Mechatronics\Inverted Pendulum\Linear Inverted Pendulum Simulation.vi
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Control and Simulation\Case Studies\Mechatronics\Inverted Pendulum\Regulator_Inverted_Pendulum.vi
C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Control and Simulation\Case Studies\Mechatronics\Cart-Pole\CDEx Cart-Pole Control and Simulation.vi