|
|
Simulink state-space
Hi,
I am trying to use a state-space block in Simulink. I have several (eventually need 100) and would like to find their sum as well as being able to use just the last element. I currently am trying to run my model with just four states. I have
mux-->function-->state-space-->demux
I have set the demux to have one input and four outputs. However, I am getting these errors:
--> Invalid setting for input port dimensions of 'sc10/Demux'. The
dimensions are being set to [-1]. This is not valid because the total
number of input and output elements are not the same.
--> Error in port widths or dimensions. Invalid dimension has been
specified for output port 1 of 'sc10/State-Space2'.
It seems like if I fix the second one, that may also resolve the first one, but I am not sure. If anyone could help me, I would appreciated it greatly. Thank you!
|
|
0
|
|
|
|
Reply
|
EJ
|
4/13/2010 8:48:22 PM |
|
"EJ Jewell" <gsp_sydney@yahoo.com> wrote in message <hq2lam$8i9$1@fred.mathworks.com>...
> Hi,
>
> I am trying to use a state-space block in Simulink. I have several (eventually need 100) and would like to find their sum as well as being able to use just the last element. I currently am trying to run my model with just four states. I have
>
> mux-->function-->state-space-->demux
>
> I have set the demux to have one input and four outputs. However, I am getting these errors:
>
> --> Invalid setting for input port dimensions of 'sc10/Demux'. The
> dimensions are being set to [-1]. This is not valid because the total
> number of input and output elements are not the same.
> --> Error in port widths or dimensions. Invalid dimension has been
> specified for output port 1 of 'sc10/State-Space2'.
>
> It seems like if I fix the second one, that may also resolve the first one, but I am not sure. If anyone could help me, I would appreciated it greatly. Thank you!
Hi,
here are a few tips that might be helpful:
- I am not sure what your "function" block does. if you remove it and just feed the state space block with a constant of the desired dimension? Also what is connected after the demux can influence, try connecting just a display to each signal for debugging.
- If you want the demux to split a vector of 4 elements into 4 individual signal, you might want to try setting it to [ 1 1 1 1]. That way you explicity telle simulink that you expect an in put vector of 4 elements.
- For debugging, you might want to insert "signal specification" block on some of the signals (like before and after the spatespace block for example). Specify the dimension you expect in this block, the error message might point more accuratly to the source of the issue.
I hope this helps.
Guy
|
|
0
|
|
|
|
Reply
|
Guy
|
4/13/2010 10:16:05 PM
|
|
Thanks for the help! I will try these things. EJ
|
|
0
|
|
|
|
Reply
|
EJ
|
4/14/2010 2:22:05 AM
|
|
|
2 Replies
512 Views
(page loaded in 0.08 seconds)
Similiar Articles: Simulink state-space - comp.soft-sys.matlabHi, I am trying to use a state-space block in Simulink. I have several (eventually need 100) and would like to find their sum as well as being abl... Non-linear state space in simulink - comp.soft-sys.matlab ...Hello, I need to represent a system in simulink, and I have the state space representation. But, some terms of the matrices depend on the state vec... Representing nonlinear state space systems in Simulink - comp.soft ...Representing nonlinear state space systems in Simulink - comp.soft ... Representing nonlinear state space systems in Simulink - comp.soft ... Representing nonlinear ... Simulink: Change initial state at run-time - comp.soft-sys.matlab ...Hi, I trying to find a way to change at run-time the initial state of state-space model without using any matlab function if possible To be more... excluding C matrix from state space block in controller design ...Hi all! In simulink there is a state space block which has equations of x'=Ax+Bu and y=Cx. I want to design a feedback matrix using ackerman formula... In Simulink,how to change parameters of a State-space block ...Hello all: I have a Simulink model,it uses a State-space block to calculates outputs,and i want to feedback some of the outputs to update correspondin... State Space Model Parameter Estimation - comp.soft-sys.matlab ...Hello all: I have a Simulink model,it uses a State-space block to calculates outputs,and i want to feedback some of the outputs to update corresponding parameters in ... state space system identification problem - comp.soft-sys.matlab ...Simulink state-space - comp.soft-sys.matlab state space system identification problem - comp.soft-sys.matlab ... However, implementing the same model in Simulink ... state ... Hold Function On Simulink (for graph) - comp.soft-sys.matlab ...Function space state (ss) of Matlab in Simulink - comp.soft-sys ... Hold Function On Simulink (for graph) - comp.soft-sys.matlab ... Function space state (ss) of Matlab in ... how to control coefficient of transfer function in Simulink ...Non-linear state space in simulink - comp.soft-sys.matlab ... how to control coefficient of transfer function in Simulink ... Non-linear state space in simulink - comp ... Implement linear state-space system - SimulinkState-Space -Implement linear state-space system Library. Continuous. Description . The State-Space block implements a system whose behavior you define as State-Space :: Blocks (Simulink) - www.kxcad.net homeImplement linear state-space system. Library. Continuous. Description . The State-Space block implements a system whose behavior is defined by. where x is the state ... 7/23/2012 12:18:58 PM
|
|
|
|
|
|
|
|
|