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 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Astik Sachan
Astik Sachan el 26 de Mayo de 2017
Editada: Astik Sachan el 30 de Mayo de 2017
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!
  2 comentarios
Sagar Kamble
Sagar Kamble el 26 de Mayo de 2017
By using that how I can get my signals magnitude at time 't'? The Clock block can give me current simulation time only.
Astik Sachan
Astik Sachan el 30 de Mayo de 2017
Editada: Astik Sachan el 30 de Mayo de 2017
You can sample the value at that time stamp with the help of a Clock block and trigger subsystem.

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by