This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE4490: How to get the Volts data for the 6 channels using Matlab?

Part Number: AFE4490

I am using the AFE4490EVM in my project and I added another LED to this module, so the GUI does not show the final result (PPG) better. So I tried to use MATLAB to communicate directly with evm and control afe490 and get data from it. I don't know if a special function is needed on matlab.

Here is an example

s=serial('COM6')
fopen(s);

  • Hi Ren,

    To communicate with the EVM using MATLAB, you have to follow some predefined protocol.
    The AFE4490 EVM Firmware source code directory contains the Message Communication Protocol v4.0 - AFE44x0EVM
    The document lists the commands to send to the EVM for reading and writing to the registers, read ADC data etc.,

    Regards,
    Prabin
  • Hi Prabin,
    Thank you for your reply, but I still don't understand which instruction to use in Matlab to send the commands to the EVM.
    Don't we need to open a port 'COM' and then use some instructions to send the commands? Likes, fopne(serial('COM1‘).
    Actually, in the document which contains the Message Communication Protocol v4.0, there are only the format of the commands, not the instructions of Matlab to send this message.
    So If you know which instructions can use for reading and writing to the registers, etc.

    Regards,
    Ren
  • Hi Ren,

    I am no expert in MATLAB programming. However you have to use some built-in functions to open the serial port and send commands to the EVM in a format given in the protocol's document.
    Following link might help you.
    in.mathworks.com/.../getting-started-with-serial-i-o.html

    Regards,
    Prabin