MATLAB: Reading .wav audio file for Code Generation

DSP System ToolboxEmbedded Coder

The Simulink provides block 'From Multimedia File' in DSP Systems Toolbox. I am trying to use this block for code generation for C6713 DSK. But, it is not getting built in CCS environment.
Is this block supported for code generation ? Thanks in advance.
Amey Kulkarni

Best Answer

It doesn't look like that block supports code-generation for embedded targets. It will run it in Rapid Accelerator mode though, since the Block Support Table (run showsignalblockdatatypetable at the MATLAB prompt and look at the "Code Generation Support" column against the row for "From Multimedia File"). The footnote says "Host computer only. Excludes Real-Time Windows (RTWIN) target." - the host computer is the target in Rapid Accelerator mode. These are the only C6713 specific blocks currently available.
However, if you know how to do the same operation using C-code for your target board, you can create a custom driver block.