Timing Measurement block Simulink question
이전 댓글 표시
I'm using Timing measurement block to measure period and duty cycle. This one:
What I found, at the beggining of simulaton the output is 0, when I apply signal then it measures correctly, but when i remove signal it showes instead of showing 0 it shows the recent measured value.
This is on purpose or this is an error?
답변 (1개)
Sayan
2023년 11월 2일
0 개 추천
Hi Adam Sojka,
I understand from your query that the Timing Measurement block (available at Mixed-Signal Blockset / Utilities) is showing the output even when the "reference" is removed.
You can look inside the block to find the possible reasons for the same:
- The segment of the block calculating "Period" is using a "Triggered Subsystem". Due to this, when no trigger signal is found, the block output is the previously calculated result at the previous trigger.
- The segment of the block calculating "Duty Cycle" uses an "Enabled Subsystem" in which the Outport value is set to be "held" in "Output when disabled" field, which results in holding the output value.
You can follow these documentations to learn more about "Triggered Subsystem" and "Enabled Subsystem"
- "Triggered Subsystem" : https://www.mathworks.com/help/releases/R2020b/simulink/ug/triggered-subsystems.html
- "Enabled Subsystem" : https://www.mathworks.com/help/releases/R2020b/simulink/ug/enabled-subsystems.html
Hope this helps in answering the query.
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!