Logging of Merge block Inputs

1 次查看(过去 30 天)
BhanuPrakash MVLA
BhanuPrakash MVLA 2011-3-28
Hai, I wanted to log the input signals going to merge block. By default MATLAB does not allow to log the signals going to merge block. Is there any alternate solution to get the signal values of the inputs going to merge block?

回答(1 个)

MarkB
MarkB 2011-3-28
I would recommend putting a "Signal Conversion" (not to be confused with Data Type Conversion) block immediately upstream from each of the Merge block inputs, and then open each Signal Conversion block's dialog and enable the checkbox that overrides optimizations. These blocks essentially "break up the signal" while passing the value through (don't worry, no Unit Delay-style behavior). You should be able to log the signals immediately upstream from each of the Signal Conversion blocks without any issue.
  1 个评论
BhanuPrakash MVLA
BhanuPrakash MVLA 2011-3-28
Thank you for your answer.
But the problem over here is, we will not get the behaviour of the merge, i.e according to the inputs going to the merge block, only one input is changed which gets reflected at the outport of the merge, while all other inputs are kept unchanged (or preferebly empty values). My point is if we use the Signal Conversion, the above property is being lost. I have tried using gain block, which is solving the problem of logging at the cost of logical behaviour of the merge block. I wanted to to have an alternate solution without compramising the merge blocks logical behaviour. Please suggest me if you have any other alternate solution. Anyway, thanks a lot for your answer.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by