changing sampling time though a simulink model?

5 visualizaciones (últimos 30 días)
Mikael
Mikael el 28 de Sept. de 2012
Hi
In Simulink, I'm collecting signals using 'From Workspace' blocks and bundling them up into a bus within an embedded function. Once collected I want to output them at the same time on that bus. They come in at a much faster rate than I want them to go out. Say, each signal line (a time series) gets read in at 0.0015 (1.5msec) seconds and I'd like the embedded function to output them at 0.01 (10msec) seconds. I've tried putting an 'Enabled System' block on the output of my embedded function but it still has data being put out at the 1.5msec rate. One of the outputs of the embedded function is an enable line which is held low until all the signals are collected in the bus. Any help would be appreciated.
Matlab ver 2011b Simulink 7.8
Thanks...
Mike

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 28 de Sept. de 2012
Editada: Azzi Abdelmalek el 28 de Sept. de 2012
use a zoh block from simulink/discret and set you new sample time

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by