Before anyone says "Why ask that question here? Take it to Mathworks.com's forum" i want to ask you how i can use a S-function with the same liberaies again.
I know how to add in libraries from Arduino to Simulink. It's really easy. Look at this tutorial.
The problem is that if i want to split up so i can use KeyPad libraries twise in diffrent s-function.
If i create a S-function named "Keypad1" and write in all libraries and declare the global object and functions etc. Then i want to create another S-function with the name "Keypad2". I do the same thing with adding the libraries but the output is a little bit different.
Then when i try to upload the Simulink model to my Arduino it says that i doing a double libraries and that won't work.
How should i do to use split up so i can use Keypad1 and Keypad2, but they have the same include-libraries?