Simulink state space observer output issue
Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all!Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all! Hello everyone. For my simulink state space observer system, I set up two models based on the same system. One model that doesn’t use the ‘state space block’, and another one that uses the ‘state space block’. The ‘state space block’ was configured (with the A, B, C, D matrices) to be the equivalent to my graphical interconnected blocks observer system model.
The output of the graphical interconnected block observer model is mostly satisfactory – except, I notice that the plotted output always spikes or rockets up to large value at the ‘end time’. So if I choose a simulation end-time of 0.5 seconds, then the spike occurs at 0.5 seconds. And if I choose the simulation end time to end at 10 seconds, then the spike will occur at 10 seconds, while the general output response is satisfactory for times well below 10 seconds. Same if I were to choose an end time of 20 seconds. The spike would occur at 20 seconds.
However, for the compact ‘state space block’ model of the observer system. Equivalent system. The output never gets that spiking (which is good).
Woud anyone have any ideas about the reason for spiking seen only at the end-time? And anything we can try – so that the spike at the end time doesn’t occur for the blocks-connected observer model? Thanks all! simulink observer MATLAB Answers — New Questions