필터 지우기
필터 지우기

Logging of Merge block Inputs

조회 수: 4 (최근 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에서 Sources에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by