I am looking for someone who has experience coding matlab S-functions. I need a block to use in simulink that can be compiled using RTW and used by a dSpace board. The block will effectually act as a "swept sine spectrum analyser". Given two inputs (One iput will be the signal going INTO a system and the other input to this S-function will be the OUTPUT of the system being analysed.) the S-function will return the complex frequency response as well as the magnitude and phase of the system for various frequencies. From what I have already gathered, you will need to implement a buffer and perform FFT calculations. I have already coded something that works with mlib but it is way too slow. (Especially as we are dealing with highly resonant syustems.) The way the swept sine works is that I use a "sine generator block". With mlib I am then able to specify a start and end frequency value as well as a step size. What I need is for the S-function block to calculate the complex frequency response for each of these frequencies and return the complex data, magnitude and phase of the system for all frequency points. If you need more info please ask.
1) Complete and fully-functional working program as well as complete source code of all work done. 3) Complete ownership and distribution copyrights to all work purchased.