How to setup buff block in trigger subsystem
Mostrar comentarios más antiguos
trigger block parameters: Trigger type:function-call Sample time type:triggered
buffer block parameters: Output buffer size (per channel):256 Buffer overlap:156
err "All sample times for 'untitled/Trigger Subsystem/Buffer' must be discrete. No continuous or constant sample times are allowed"
if trigger block parameters: Trigger type:function-call Sample time type:periodic
buffer block parameters: Output buffer size (per channel):256 Buffer overlap:156
err "Port-based sample time block 'untitled/Trigger Subsystem/Buffer' has a sample time, 100, on output port 1 that does not align with the periodic sample time of function-call subsystem 'untitled/Trigger Subsystem'. Only constant (inf), inherited (-1), or periodic (1) sample times are allowed in the subsystem."
thanks
Only one buffer block in trigger subsystem Ver: MATLAB 7.11 (R2010b) Simulink 7.6 (R2010b)
3 comentarios
Fangjun Jiang
el 3 de Jun. de 2011
What do you want to achieve putting a buffer block inside a trigged subsystem block? The triggered subsystem executes only once per trigger event (even for periodic).
alamo
el 4 de Jun. de 2011
alamo
el 4 de Jun. de 2011
Respuestas (1)
Kaustubha Govind
el 16 de Jun. de 2011
0 votos
The Buffer block has port-based sample times, which are not supported inside triggered subsystems. You may need to create your own S-function that imitates the functionality of the Buffer block, while reconciling its operation within triggered subsystems.
Categorías
Más información sobre Subsystems en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!