changing sampling time though a simulink model?

조회 수: 7 (최근 30일)
Mikael
Mikael 2012년 9월 28일
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

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 28일
편집: Azzi Abdelmalek 2012년 9월 28일
use a zoh block from simulink/discret and set you new sample time

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by