Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Simulation error caused by S-function

Hello,

I am trying to simulate sample example of DSP builder. But when i start simulation, some errors occured depending on S-function parameters.

Here you can find the type of errors seen in Simulink:

-------------------------

S-function parameter count mismatch. S-function sInOut in singen/SinIn is expecting 0 parameters while 8 were provided in the dialog box.

--------------------------

End error seen in MATLAB:

--------------------------

Error in block : singen/SinIn

Java exception occurred:

com.altera.dspbuilder.simulation.templates.BlockTemplateException: Error creating block template : com.altera.dspbuilder.blockset.iobus.Input

at com.altera.dspbuilder.simulation.templates.BlockXMLParser.createBlock(Unknown Source)

at com.altera.dspbuilder.simulation.templates.BlockXMLParser.getBlockTemplate(Unknown Source)

..and goes down like that

---------------------------

I tried with MATLAB 2007b and 2008b with DSP Builder v8.1, but it doesn't simulate....

I don't get how to I solve this issue and I can't find any related/reported problems on the forum

please help

Thank you...

Enes

You can also send your solution directly to my e-mail:

enes.dilcan@gmail.com

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Can you give the rest of that stack trace? Annoyingly I think the relevant bit may be further down.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This is the result of getting started tutorial of DSPB which is named "singen"

    All blocks which are inserted from DSP Builder Library to model file are given following error type

    => S-function parameter count mismatch. S-function sInOut in singen/SinIn is expecting 0 parameters while 8 were provided in the dialog box

    Sorry, but I don't understand exactly what you wonder?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You said:

    --- Quote Start ---

    Java exception occurred:

    com.altera.dspbuilder.simulation.templates.BlockTe mplateException: Error creating block template : com.altera.dspbuilder.blockset.iobus.Input

    at com.altera.dspbuilder.simulation.templates.BlockXM LParser.createBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.templates.BlockXM LParser.getBlockTemplate(Unknown Source)

    ..and goes down like that

    ---------------------------

    --- Quote End ---

    I'd like to see the bit replaced by "... and goes down like that"
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Error in block : singen/BusBuild

    Java exception occurred:

    java.lang.IllegalArgumentException: No enum const class com.altera.dspbuilder.simulation.ExtendedDirection.İNPORT

    at java.lang.Enum.valueOf(Unknown Source)

    at com.altera.dspbuilder.simulation.ExtendedDirection.valueOf(Unknown Source)

    at com.altera.dspbuilder.simulation.templates.BlockXMLParser.addPortToBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.templates.BlockXMLParser.createBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.templates.BlockXMLParser.getBlockTemplate(Unknown Source)

    at com.altera.dspbuilder.simulation.BlockFactory.getBlockTemplate(Unknown Source)

    at com.altera.dspbuilder.simulation.BlockFactory.getBlockTemplate(Unknown Source)

    at com.altera.dspbuilder.simulation.Factory.createBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.Model.createBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.Cache.createBlock(Unknown Source)

    at com.altera.dspbuilder.simulation.Mask.updateGUI(Unknown Source)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In addition to this, errors are seen in MATLAB command window for each blocks that give S-function error in Simulink

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It seems to me that your DSPB installation is corrupt.

    The forum is mangling the text a little bit, so I'm not sure. Where it says "No enum const class com.altera.dspbuilder.simulation.ExtendedDirection.INPORT", on my screen the "I" is coming up as either İ or if I change the encoding to an I with a dot above it. Either way this is not good.

    Can you confirm exactly what the text looks like on your screen. Try manually adding spaces in between each of the words separated by full stops - this should stop the forum doing its own thing.