How can I repeatedly trigger a waveform using 'Signal From Workspace block' and an external pulse signal?
2 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Ali Asghar Pourostad
on 13 Dec 2019
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!