MATLAB Error: Parameters must be of type double or char

I have done a quick search on Google about this, but I don't have the expertise to solve a problem such as this so I am hoping someone out there can help me. It would appreciate all the help you can give.
Error Message:
Parameters must be of type double or char for Real-Time Workshop if the S-function does not have TLC.
How do I solve this?
