0

I like to use IC MCP3008 to change analogue signal to digital signal for Raspberry Pi interface with Matlab Simulink. But I getting the error missing file wiringPi.h and wiringPi.c. May I know how can I add the wiringPi in the Matlab directory?

0

Is wiringPi installed by default in the distribution you are using?

I'm not sure if it is currently pre-installed with Raspbian.

If you are using Raspbian (or another Debian based distribution) try the following command.

sudo apt-get install wiringpi

  • I don't know how to install or add the wiringPi in Matlab. I open the Linux and install the wiringPi is success, but still getting this fatal error: /home/pi/wiringPi/wiringPi/wiringPi.h: No such file or directory – Tamama Chin Apr 14 '17 at 11:09
  • @TamamaChin I'm afraid I can't help if the problem is specific to Matlab (which I know nothing about). Perhaps Matlab has a configuration section to specify the location of libraries etc. – joan Apr 14 '17 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.