Forum Discussion

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

DSP Builder Installation Problem

im using matlab 7.4.0 (im not sure which version was it but i think its pretty old) with quartus ii 7.2sp3 and dsp builder ii 7.2 sp3. when install the dsp builder i have the following message appeared on the matlab command window:

To get started, type one of these: helpwin, helpdesk, or demo.

For product information, visit www.mathworks.com (http://www.mathworks.com).

Install type is install

Adding path : c:\altera\72sp3\quartus\dsp_builder\bin\matlab

Adding path : c:\altera\72sp3\quartus\dsp_builder\bin

Adding path : c:\altera\72sp3\quartus\dsp_builder\bin\mdllibrary

DSP Builder path saved.

Creating board components

Error executing : createSBlock('ComponentFactory', 'Cyclone_III_EP3C25_alteradspbuilder2', 'Cyclone_III_EP3C25:config', 'Cyclone III EP3C25 Starter Board');

Previous command was : new_system('Cyclone_III_EP3C25_alteradspbuilder2', 'Library');

??? Too many inputs.

Error in ==> <a href="error:c:\altera\72sp3\quartus\dsp_builder\bin\matlab\setupDSPBuilderPath.m,94,1">setupDSPBuilderPath at 94</a>

alt_dspbuilder_createComponentLibrary;

» simulink

» QUARTUS_ROOTDIR\dsp_builder\bin does not contain BlockInfo.dll

Please ensure DSP Builder is installed correctly and that the environment variable QUARTUS_ROOTDIR points

to your quartus installation.

so i do believe something gone wrong when i install the dsp builder. any advice? or is my matlab version is not compatible with the other software?

19 Replies

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

    So was the 7.4.0 you said at the start of this thread a typo? I guess that would explain it.

    Did the installer actually recognise your old installation or did you have to manually type in the MATLAB path to make it find it?

    Anyway it's good news that you've solved your problem!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have got Microsoft Vista Sp1 SO

    I had installed and running fine DSP Builder 7 with Quartus 7.2 and Matlab R2007b.

    Last week I tried to upgrade to the Quartus 8 and I had problems with license.

    Then I decided desinstalling all programs and return to the Altera suite 7.2.

    Now Quartus and NIOS EDS are running fine, but after installing DSP Builder over Matlab this message of error appears,

    Install type is install
    Adding path : c:\altera\72\quartus\dsp_builder\bin\matlab
    Adding path : c:\altera\72\quartus\dsp_builder\bin
    Adding path : c:\altera\72\quartus\dsp_builder\bin\mdllibrary
    DSP Builder path saved.
    Creating board components
    ??? Undefined function or variable 'com.altera.dspbuilder.simulation.components.ComponentLibrary'.
    Error in ==> c:\altera\72\quartus\dsp_builder\bin\matlab\alt_dspbuilder_createComponentLibrary.p>alt_dspbuilder_createComponentLibrary
    at 24
    Error in ==> setupDSPBuilderPath at 94
    alt_dspbuilder_createComponentLibrary;
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    So was the 7.4.0 you said at the start of this thread a typo? I guess that would explain it.

    Did the installer actually recognise your old installation or did you have to manually type in the MATLAB path to make it find it?

    Anyway it's good news that you've solved your problem!

    --- Quote End ---

    yaya...sorry for the typo error!!! didn even realise it...sorry!! u mean the does the dsp builder installer recognise the old matlab? not really.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I have got Microsoft Vista Sp1 SO

    I had installed and running fine DSP Builder 7 with Quartus 7.2 and Matlab R2007b.

    Last week I tried to upgrade to the Quartus 8 and I had problems with license.

    Then I decided desinstalling all programs and return to the Altera suite 7.2.

    Now Quartus and NIOS EDS are running fine, but after installing DSP Builder over Matlab this message of error appears,

    Install type is install
    Adding path : c:\altera\72\quartus\dsp_builder\bin\matlab
    Adding path : c:\altera\72\quartus\dsp_builder\bin
    Adding path : c:\altera\72\quartus\dsp_builder\bin\mdllibrary
     
    DSP Builder path saved.
     
    Creating board components
    ??? Undefined function or variable 'com.altera.dspbuilder.simulation.components.ComponentLibrary'.
     
    Error in ==> c:\altera\72\quartus\dsp_builder\bin\matlab\alt_dspbuilder_createComponentLibrary.p>alt_dspbuilder_createComponentLibrary
    at 24
     
     
    Error in ==> setupDSPBuilderPath at 94
    alt_dspbuilder_createComponentLibrary;

    --- Quote End ---

    did it work well when you initially installed the quartus 7.2 Lite?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    bertronicom,

    It sounds like you don't have the class path set up properly. At the MATLAB prompt, type:

    type classpath.txt

    At the bottom, there should be a section like:

    # DSPBuilder START

    ....

    # DSPBuilder END

    Does it exist and does it point to a file in your current DSP Builder installation?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi cLare, dsp builder worked well with quartus 7.2.

    dabuk, typing : "type classpath.txt"

    there isn't any reference to DSP builder.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    With no reference to DSP Builder on the classpath, it's not surprising the installer failed. Could you try reinstalling DSP Builder and see if it changes the classpath.txt file? On my installation this is found at:

    C:\Program Files\MATLAB\R2007b\toolbox\local\classpath.txt

    Is this file read only for instance? You could for instance add the following to it:

    # DSPBuilder START

    c:\altera\72\quartus\dsp_builder\bin\dspb_sblocks.jar

    # DSPBuilder END

    (Obviously make sure the path above matches where you installed Quartus).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've removed remaining files from uninstallation and installing again Matlab r2007b and DSP builder 7.2 sp3. Then the installation was error free.

    classpath have the settings you specified

    Now, when matlab is started this error appears and dspbuilder blocks weren't loaded

    Warning: Directory access failure: C:\altera\72\quartus\DSPBuilder\AltLibC:\Program Files\MATLAB\R2007b\toolbox\matlab\general.
    Undefined function or variable 'ispc'.
    Warning: MATLAB did not appear to successfully set the search path. To avoid this
    warning the next time you start MATLAB, use
    http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pathdef.shtml
    to help troubleshoot the "pathdef.m" file. To recover for this session
    of MATLAB, type "restoredefaultpath;matlabrc".
    Warning: Duplicate directory name: C:\Program Files\MATLAB\R2007b\toolbox\local.
    Warning: Initializing Handle Graphics failed in matlabrc.
    This indicates a potentially serious problem in your MATLAB setup,
    which should be resolved as soon as possible.  Error detected was:
    MATLAB:UndefinedFunction
    Undefined function or method 'usejava' for input arguments of type 'char'.
    > In matlabrc at 104
    Warning: Initializing Java preferences failed in matlabrc.
    This indicates a potentially serious problem in your MATLAB setup,
    which should be resolved as soon as possible.  Error detected was:
    MATLAB:UndefinedFunction
    Undefined function or method 'usejava' for input arguments of type 'char'.
    > In matlabrc at 129
    ??? Undefined function or variable 'ispc'.
    Error in ==> reporterrorlogs>isComputeServer at 337
    if ispc
    Error in ==> reporterrorlogs at 14
    if isdeployed || ~isInteractive || isComputeServer  || ~isJavaAvailable || ~getCheckForLogFiles
    Error in ==> matlabrc at 265
    reporterrorlogs
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sounds pretty bad. Looks like you matlab pathdef.m is corrupt.

    I would follow the advice in the error message and try:

    restoredefaultpath;matlabrc

    That should repair the MATLAB path at least.