MATLAB: Memory simulink c2000

c2000 memory simulink codersimulink coder

Dear,
                     With an MCU I would like to acquire a signal, store it in memory and later I would like to send it by SCI. I wouldn't know where to start with the storage issue in Simulink. Could you guide me where to start studying? I don't know which block to use.
Thank you very much and greetings
Juan

Best Answer

Hi Juan,
Look at the section "Data Logging" on the following page.
You can set triggers on when to to record and when to stop recording, the duration represents the size of the buffer. You can put negative delays to observe what happened prior to a particular event that triggered a recording.
I hope this helps,
Thanks,
Antonin.