Sum block not summing inputs
Show older comments
I'm having trouble with a Sum block in my Simulink model. When I use the debugger to watch its input/output values, I see that it appears to be just passing U1 through, rather than adding the 3 values. Can anyone tell me why this might happen?
Trace: Data of 0:180 Sum block 'Robot_4_Motors/dc_motor_simplified/Sum':
U1 = [-0.064934694127110726]
U2 = [0]
U3 = [0.62636893981851649]
Y1 = [-0.064934694127110726]
4 Comments
Ryan
on 3 Jul 2012
Did you change any settings under the 'Main' or 'Signal Attributes' sum block parameters?
Guy Rouleau
on 3 Jul 2012
I would really like to see that model. Can you place it on some file sharing site so I can give a look?
At first look, this is surprising.
A few things I would try and/or like to know:
- Try is disabling optimization options like block reduction, signal reuse, etc. - Do you have hand-written s-functions in the model? If yes, try removing them from the model, and/or enable the "array out of bound exceeded" diagnostic. - Try enabling Test Points on all the input and output of the block. - Does that happen to other blocks in the model? - Is this happening for all time steps? or only once? - Always only the first input port is passed? - Are there any conditionally executed subsystem before or after? - Is there a Merge block involved?
Without the model, it is difficult to be 100% sure... so I would really like to see the model to see if there is an explanation.
Nick Jordan
on 1 Aug 2012
Walter Roberson
on 1 Aug 2012
Sorry, there is no notification for comments in the current MATLAB Answers system.
Accepted Answer
More Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!