Trigger audio file playback in Simulink

Hi there,
is it possible to trigger the playback of an audio file within Simulink? I connected a "From Multimedia File" block with an "To Audio Device" block which works well. Now I want to add something like a trigger mechanism, e.g. the rising edge of a digital signal (from value 0 to 1). Is this possible with basic building blocks, and if yes, how?
Thank you.
Best regards,
Matthias

回答 (1 件)

Ulysses Bernardet
Ulysses Bernardet 2020 年 1 月 16 日

0 投票

You can do this using an "Enabled Subsystem". Note that using a "Triggered Subsystem" will not work due to the sampling time needs of the audio block.

カテゴリ

ヘルプ センター および File ExchangeAudio I/O and Waveform Generation についてさらに検索

質問済み:

2016 年 5 月 11 日

回答済み:

2020 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by