Go Down

Topic: ADS1015 matlab simulink library issue (Read 295 times) previous topic - next topic

sawtech

I'm following this tutorial


https://www.youtube.com/watch?v=bGSiz4AiSvU

to create a simulink custom s-model

I have this error message



sfADS1015_wrapper.o: In function `Adafruit_ADS1015::begin()':
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:116: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:116: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:116: undefined reference to `TwoWire::begin()'
sfADS1015_wrapper.o: In function `writeRegister':
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:64: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:64: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:64: undefined reference to `TwoWire::beginTransmission(unsigned char)'
sfADS1015_wrapper.o: In function `i2cwrite':
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `TwoWire::write(unsigned char)'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `TwoWire::write(unsigned char)'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `Wire'
C:\Ads1015Arduino\ADS1015_ert_rtw/../Adafruit_ADS1015.cpp:52: undefined reference to `TwoWire::write(unsigned char)'


i attache complete error message

i don't know how to solve this issue. Can anyone help me?

i copied wire.cpp and wire.h to the directory in C:ADS1015 folder that i created for my s-model.

i think wire can't read some libraries but i don't know how to corret it.

(i try to copy the entire folder and modify ads1015.cpp from adafruit to link it.....but that doesn't work)

spycatcher2k

Quote
Can anyone help me?
Possibly, but I don't know if many matlab support users come here, you should really post on their forum.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

hempat45

Hello,

I was wondering if you were ever able to figure this issue out? Please let me know! Thank you!

Best.

Go Up