Hi Denny,
I understand that you have encountered an error while using an S-Function for the ‘ADS1115 I2C’ modules in Simulink.
The error message you have encountered suggests that there are unresolved references to functions and variables from the library you are utilizing. This typically occurs when the linker is unable to locate the necessary definitions for these functions and variables.
To resolve this issue, you can follow these steps:
- Verify that the library files (‘ADS1115_WE.h’ and ‘ADS1115_WE.cpp’) are correctly included in your project. Ensure that these files are present in the appropriate location and properly referenced in your code. Double-check the file paths to ensure they are accurate.
- Confirm the compatibility of the library with your Arduino and Simulink versions. It is important to check if the library supports the ‘ADS1115’ module and the required functions.
- Make sure that the library files (‘ADS1115_WE.h’ and ‘ADS1115_WE.cpp’) are included in the build process. The linker error suggests that it cannot find the definitions for the functions and variables used from the library. Ensure that these files are correctly referenced in the build settings of your Simulink project.
By following these steps, you should be on the right track to resolve the error.
Best regards,
Sankalp