フィルターのクリア

Audio generation in Simulink Desktop Real-Time

3 ビュー (過去 30 日間)
Cecilia De Vicariis
Cecilia De Vicariis 2023 年 3 月 30 日
回答済み: Jan Houska 2023 年 4 月 5 日
Hi all,
We are trying to integrate audio signal generation (with blocks from Audio Toolbox) in a model which runs in real-time in Kernel Mode with Simulink Desktop Real-Time. It seems like there are some incompatibility issues.
In particular, we can integrate an Audio Oscillator block in the model, but we cannot have integrate an Audio Device Writer block.
Is there any other way we can listen to the generated signal?
Thanks

回答 (2 件)

Jimmy Lapierre
Jimmy Lapierre 2023 年 3 月 31 日
If you are using the Speedgoat, you would want to use their device-specific output blocks instead of the Audio Device Writer. Something like this example.
  3 件のコメント
Jimmy Lapierre
Jimmy Lapierre 2023 年 4 月 4 日
Let me know if this helps:
ref: https://www.mathworks.com/help/sldrt/model-preparation-for-real-time-execution.html
Jimmy Lapierre
Jimmy Lapierre 2023 年 4 月 4 日
Supported hardware:
https://www.mathworks.com/hardware-support/simulink-desktop-real-time.html

サインインしてコメントする。


Jan Houska
Jan Houska 2023 年 4 月 5 日
Hi Cecilia,
Simulink Desktop Real-Time operates sample-by-sample, whereas a typical audio device expects buffered waveform signal. That's why audio devices are not a good match with the product. So your best choice would probably be to use an analog output board, provided that the maximum sample rate the product can achieve (cca 10 kHz) is enough for your application.
Good Luck, Jan

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by