I have a simulink model which incorporates a Level-2 C code S-function. I would like to use Simulink Coder to build the model for an embedded platform (dSpace in this case). Is this possible, and if so, can anyone point me to the relevant documentation? Can I use the existing S-Function for this, or do I need to create something new?
I have tried to do code generation on the model, but I receive an error like: "Unable to acquire handle to MATLAB function 'my_SFunc'". What I really want is for Coder to build my S-Function for the target platform. Is this workflow even possible?