Use a S-function with the same libraries? - Simulink

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?

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.

You don't have an Arduino question, or you would have posted some Arduino code. So, it appears that you know you are in the wrong place.

PaulS:
You don't have an Arduino question, or you would have posted some Arduino code. So, it appears that you know you are in the wrong place.

Thanks for the reply.

I think this is a Arduino question due to the Simulink support for the Arduino controllers.

I think this is a Arduino question

If you rellay thought is was an Arduino question, you would have posted some Arduino code.