필터 지우기
필터 지우기

Sine Wave display data

조회 수: 4 (최근 30일)
Krasimir Terziev
Krasimir Terziev 2020년 5월 31일
답변: Jonas 2020년 6월 3일
Hello,
I have a problem with my sine wave. The problem is that i want to display in sumulink ( if i can in simulink block - display, will be perfect) my data from sine wave, when i say the currect time of the wave.
Example:
if i look at X axis ( witch is the Time or the period ) like a number and i say -> show me the value of the sine wave at 0.2 sec from starting the simulation.
This is my wave on the picture below and i want to know at time 0.1 sec - what is the certain data !
Thanks for helping me !

답변 (1개)

Jonas
Jonas 2020년 6월 3일
You can use the Clock block to get the execution time. Then use a comparison block, which compares the execution time with your wanted time stamp (e.g. 0.2s) such that it gives a 1 when 'time > 0.2'. Then you can use a triggered subsystem with the outputs on 'held' to store the signal value and then use a regular Display block to display the value.
Alternatively, you can enable 'Cursor Measurements' inside a Scope and enter the requested time stamp manually. It will show the corresponding signal value.

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by