How can I repeatedly trigger a waveform using 'Signal From Workspace block' and an external pulse signal?
2 次查看(过去 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.
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!