Including libraries in S-function which are installed on Raspberry pi
5 views (last 30 days)
Show older comments
I am creating an S function which will write on I2C on raspberry pi. I need to include library WiringPi which have everything prepared for communication over I2C. Later I will do same for SPI communication.
I get the error
fatal error C1083: Cannot open include file: 'wiringPi.h': No such file or directory
which is obvious because it's installed only on raspberry pi.
thanks
2 Comments
Kaustubha Govind
on 6 Aug 2013
Does the error occur when you're compiling the S-function MEX-file, or when you're generating code from the model?
Answers (1)
Denis
on 7 Aug 2013
Edited: Denis
on 7 Aug 2013
3 Comments
Kaustubha Govind
on 12 Aug 2013
Denis: Are you changing it during simulation or before simulation starts? For the former, it needs to be declared as a tunable parameter, and for the latter it can be either tunable or non-tunable.
See Also
Categories
Find more on Raspberry Pi Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!