DSPRelated.com
Forums

S-functions for DSP implementation

Started by dnlc...@yahoo.com April 9, 2008
Hello,

I need to program a DSP using Simulink. I need to create a custom bloc with S-functions that i will later on implement on the DSP with Real Time Workshop. I want to make a simple noninlined s-function.

First problem: I have created a S-function block with Simulink -> User Defined Functions -> S-Function Builder. Only one change I made: in the "Outputs " tab I have written y0 = u0 + 1. So the output = input +1. It does not work. The output is always 0 and I don't know why...

Second problem: this S-function whose output is always 0 cannot be built by RTW. I don't know why.

Please any information is usefull, even if you only tell me what documentation to read.