changing sampling time though a simulink model?
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Azzi Abdelmalek
2012-9-28
编辑:Azzi Abdelmalek
2012-9-28
use a zoh block from simulink/discret and set you new sample time
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!