In a Simulink model, Check at simulation time 't' (eg. @t=3sec) what is the value of a signal (signal is from signal builder).

2 次查看(过去 30 天)
Hi, I have a signal (eg: sine wave) from signal builder block. When I run the model, I need to check at simulation time 't' (eg. @t=3sec) what is the value of that signal. Based on that value I'll be doing some logic. How can I achieve this?

回答(1 个)

Astik Sachan
Astik Sachan 2017-5-26
编辑:Astik Sachan 2017-5-30
You can use the Clock Block available in Simulink Library
It gives current time stamp as output.
Please refer Sample Model "Clock.png" attached below!

类别

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