How can I repeatedly trigger a waveform using 'Signal From Workspace block' and an external pulse signal?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Ali Asghar Pourostad
el 13 de Dic. de 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 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!