I keep getting the messages "S-Function 'sdspvfdly2' does not exist" and "S-Function 'sdspsine2' does not exist" whenever I try to run my version of a simulink block diagram for a Windows Sound System Based Flanger which contains a variable fractional Delay and a DSP Sine Wave block (The two respective blocks which use the s-functions). None of the leads I'm following seem to help me nail the problem. I'll appreciate any tips for resolving this problem.
Many thanks
Kola
Did you create the model yourself or did someone else create the model for
you? My guess is that those blocks are either part of a blockset that you do
not have or that they are S-functions, but when you were provided the model,
you weren't given the mex files associated with those S-functions. To check
the file and toolbox/blockset dependencies of your model, use the Simulink
manifest tools (in R2007a or later):
http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/ug/bq2ifjj-1.html
The solution is:
* if the blocks are part of a blockset you do not have, you will need to buy
this blockset
* if the blocks are S-functions, you will need to ask for the mex files
associated with those S-functions to whoever created the model in the first
place.
HTH,
Arnaud
I built the model myself from my Simulink library browser. So I suspect it would be due to missing MEX files associated with the S-functions. I am currently perusing the link you directed me to (on Model Dependencies). In the meantime however, could you please confirm if the Model dependency documentation would lead help me locate the MEX files I need to run the model successfully. Please pardon my ignorance on this subject.
Kind regards
Kola
It should tell all the files and toolbox/blocksets that your model needs to
run. If some are missing, then, it'll tell you that as well. But it won't
tell you where they are, unless they're part of a toolbox/blocksets. Only
you can answer that question. The real question is where do these blocks
come from in your model? Did you get them from a library? Which one?
Arnaud
Thanks again, Arnaud. I'm using a Simulink 6.5 R2006b which unfortunately does not have full Manifest functionality (it only has a model dependency viewer which does not tell me what files are missing or where they are). As I indicated earlier on (albeit not clearly enough), the Variable Fractional Delay block and the DSP Sine Wave block (which are producing the 's-function does not exist' error messages) come from the Signal Processing blockset library (under signal operations and DSP sources respectively). Incidentally, a demo model, dspafxf (for my Simulink version) or dspaudioeffects (for the current Simulink version), which makes use of both of these blocks is giving me the same error messages. I would have expected that the s-function files for these blocks (sdspvfdly2 and sdspsine2 respectively) will come with the Simulink/MATLAB package since the respective blocks are both
parts of the Signal processing blockset. Apparently, I'm missing something (something very important) could you help me please?
Kind Regards
Kola
Are you sure you have the signal processing blockset installed and
license? What's the ouput of ver at the MATLAB command line? Short of
reinstalling MATLAB, I'm not quite sure what else to suggest.
Arnaud
Thanks for getting back to me on this, Arnaud. I have the following output on typing 'ver' at the MATLAB command line:
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.3.0.267 (R2006b)
MATLAB License Number: 323771
Operating System: Microsoft Windows XP Version 5.2 (Build 3790: Service Pack 2)
Java VM Version: Java 1.5.0_05 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.3 (R2006b)
Simulink Version 6.5 (R2006b)
Control System Toolbox Version 7.1 (R2006b)
Partial Differential Equation Toolbox Version 1.0.9 (R2006b)
Signal Processing Blockset Version 6.0 (R14)
Signal Processing Toolbox Version 6.6 (R2006b)
SimMechanics Version 2.5 (R2006b)
Trademarks
------------------
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, and xPC
TargetBox are registered trademarks of The MathWorks, Inc. Other product or
brand names are trademarks or registered trademarks of their respective holders.
>>
This seems to leave only the option of reinstalling MATLAB (unless of course you get another idea). I'll look into reinstalling MATLAB.
Many thanks.
Kola
Here is your problem: the version of the Signal processing Blockset you are
using is not correct. It looks like you have mis-matched the Signal
Processign Blockset from R14 on top of a R2006b installation. How exactly
did you install the software? Looking at license 323771, it does not include
the signal processing blockset, so you need to contact your MathWorks
account manager to purchase the signal processing blockset. Note also that
this is a classroom license, and therefore is for use only on
university-owned computers in instruction-only labs.
HTH,
Arnaud
Kind Regards
Kola