Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | S-functions for DSP implementation

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

S-functions for DSP implementation - dnlc...@yahoo.com - Apr 9 8:35:30 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. 



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )