Sample time of Host Scopes in Simulink Real-time
1 次查看(过去 30 天)
显示 更早的评论
Hi
I am using Host Scopes to capture signal data of my model running on a Simulink Real-time target. My base model has a sample time of 24000Hz, but almost all blocks inside the model are running on 8000 Hz. The timing legend shows that there are in fact no blocks/signals running at 24kHz:
I have configured the Host Scope to log a signal inside a part that runs on 8000 Hz, with Decimation set to 1. However, the signal data is still sampled at 24000 Hz.
I am not surprised that Decimation = 1 means a sampling at 24000 Hz, but I am surprised that the signal data is different at each sample, while the signal is only going at 8000 Hz.
Shouldn't I need to see the same signal value very three samples? How can it sample at 24kHz in a 8kHz section?
With kind regards,
Jonas
0 个评论
回答(1 个)
Diego Kuratli
2019-12-5
Why do you use 24kHz as base rate of the model, if there isn't any block at that rate?
What are you logging? The data is logged at the base rate, even if the scope appears on a different rate. It is hard to answer your question without the model.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!