How can I repeatedly trigger a waveform using 'Signal From Workspace block' and an external pulse signal?

조회 수: 1 (최근 30일)
I am using Simulink to trigger output of an arbitray waveform signal to a DAQ card, in response to an external TTL pulse. To attempt this, I am currently using a triggered subsystem containing a 'Signal from workspace' block. However, I can only get the waveform to output once in response to the pulse. 'Cyclic repetition' does not solve my problem, because that simply repeats the waveform immediately when the last iteration finishes. I need to be able to trigger repeatadly at arbitrary time points. Can anyone tell me how to trigger the same waveform repeatedly?
thanks for any advice.

답변 (1개)

Ali Asghar Pourostad
Ali Asghar Pourostad 2019년 12월 13일
As I know 'From Workspace' block get signal from workspace just when model is starting and u can't change that signal during simulation
Instead u can change a block value using set_param function. see this link.

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by