Sum block not summing inputs
显示 更早的评论
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 个评论
Ryan
2012-7-3
Did you change any settings under the 'Main' or 'Signal Attributes' sum block parameters?
Guy Rouleau
2012-7-3
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
2012-8-1
Walter Roberson
2012-8-1
Sorry, there is no notification for comments in the current MATLAB Answers system.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!