Write a device driver using the MATLAB function block approach for the Arduino Data Logging Shield. This project is an extension to the earlier submission "Data Logger on Arduino using S-Functions" available here:
For this particular project, this is the easier approach for creating a device driver compared to the S-Function Builder project for two reasons:
- Easier to add the include lines for the libraries.
- Eliminates the need to keep re-building whenever a change needs to be made to the code.
Esther Ling, Edu Engineer
Techsource Technical Team (2020). Driver for Arduino Data Logging Shield (https://www.mathworks.com/matlabcentral/fileexchange/52004-driver-for-arduino-data-logging-shield), MATLAB Central File Exchange. Retrieved .
to be more specific, the libraries were calling for more library files, such as twi.c looking for compat/twi.h and util/twi.h, of which are throwing errors. It's turning into a giant ring-around-the-rosie adding more and more files to the library and it seems never ending. There are all kinds of random errors popping up, suggesting that the files I'm including are not the correct version. Throughout both my Arduino and Matlab folder, many instances of these same files exist. I think at this point, I've tried all of them. Do you have any more information on the libraries you used here, such as not only the name, but dates, sizes, versions, or links which you downloaded them from?
Do you know where else I can get the explicit libraries used for this project? The ones in my Arduino folder are throwing errors
Really helpful tutorial. I learned alot.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!