Audio generation in Simulink Desktop Real-Time
6 views (last 30 days)
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?
Jan Houska on 5 Apr 2023
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