Raspberry pi Simulink toolbox

Hi,
I am working with a Adafruit LC709203F LiPoly / LiIon Fuel Gauge and Battery Monitor and I am trying to read this sensor using the I2C block from the Simulink Support Package for Raspberry Pi. I successfully read some data from the sensor using MATLAB support Package but not from the simulink. I was wondering , why I cannot read any data from the sensor using I2C block on simulink. I really appreciate any subjection.
Thank you in advace

4 Comments

Hi Joan,
We are looking into the issue and will get back to you ASAP.
-Reeno
Joan Taveras
Joan Taveras on 19 Feb 2021
Edited: Joan Taveras on 22 Feb 2021
Hi Joseph,
Thank you very much for your response. Please do not hesitate to contact me if you need more information about this issue.
Best regards,
Joan Taveras
Hi Joan,
Since with your MATLAB code you were able to read the data properly, I am guessing there could be some minor modelling issue in Simulink to do the same. If you could share(attach it to the question) both the MATLAB code and the Simulink Model that you have tried, I can have a quick look to see if there is any discrepancy in the implementation.
Thanks,
Prasanth
Hi Joseph,
Attached you will find the MATLAB code and Simulink Model.
Thnak you,
Joan Taveras

Sign in to comment.

Answers (0)

Asked:

on 12 Feb 2021

Commented:

on 25 Feb 2021

Community Treasure Hunt

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

Start Hunting!