• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. RF Design
  3. cds_srr error

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 63
  • Views 17918
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cds_srr error

peter450
peter450 over 14 years ago

 HI,

I'm implementing a circuit in cadence and I'm checking the harmonics of the circuit using MATLAB.I'mwriting the commands in MATLAB according to document/ <MMSIMHome>/tools/spectre/examples/SpectreRF_workshop/SpectreRF_AN/MatlabWorkshop.pdf. When I enter the command cds_srr ('results directory' ) It is giving error

 Undefined function or method 'cds_srr' for input arguments of type 'char'

How can I include this function?

  • Cancel
  • tkhan
    tkhan over 14 years ago

    Did you set all your environment variables correctly before launching Matlab?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • peter450
    peter450 over 14 years ago

     First I invoked cadence spectre and simulated the design.Then I invoked matlab and set the path of resultant directory by resdir.And I gave cds_srr('resdir').It is giving the error at that time.I did this as mentioned in the document.

    I'm not sure about the environmental variables I need to set (they are not mentioned in the document).

    Can you tell me what variables I need to set to run the matlab?.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tkhan
    tkhan over 14 years ago

    Refer to the matlab application note pdf in the same folder as the workshop pdf, it describes how to set up the environment -- namely LD_LIBRARY_PATH and MATLABPATH.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • peter450
    peter450 over 14 years ago

     Thankyou. I set the correct library ,matlab path and its working for one command 

    when I enter

    datasets = cds_srr(resdir) its working

    But when I enter next command   "signals = cds_srr(resdir, 'sp-sp');" I'm getting error

    ??? One or more output arguments not assigned during call to "cds_innersrr".

    Error in ==> cds_srr at 18
        sig = cds_innersrr(dirname, dataset);
     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Can you post the complete output of the first cds_srr() command and the second cds_srr() command (with two args)? I've only seen this if either the directory name or the result dataset (second arg) is invalid for the data that exists - and then it gives a message before the error. 

    Also I believe it may happen with non-spectre simulation results - but perhaps you can confirm you're using spectre.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • peter450
    peter450 over 14 years ago

    resdir = '/simulation/Design/spectre/schematic/psf/'

     datasets = cds_srr(resdir)
    PSFversion: 1.00
    tran-tran (tran).
    finalTimeOP-info (info).
    modelParameter-info (info).
    element-info (info).
    outputParameter-info (info).
    designParamVals-info (info).
    primitives-info.primitives (info.primitives).
    subckts-info.subckts (info.subckts).
    variables (design_variables).

    datasets =

        'tran-tran'
        'finalTimeOP-info'
        'modelParameter-info'
        'element-info'
        'outputParameter-info'
        'designParamVals-info'
        'primitives-info.primitives'
        'subckts-info.subckts'
        'variables'

    >> signals = cds_srr(resdir, 'sp-sp');
    Error: The special dataset is not exist.
    ??? One or more output arguments not assigned during call to "cds_innersrr".

    Error in ==> cds_srr at 18
        sig = cds_innersrr(dirname, dataset);

    These are the two commands I used.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Isn't the error message pretty clear?

    "The special dataset is not exist"

    You have asked for the dataset 'sp-sp' but this is not one of the datasets that are in the results - it did not appear in the list returned by cds_srr with a single argument. 'sp-sp' would be from an s-parameter analysis (ie spectre's sp analysis) - but that presumably hasn't been run in your case.

    If you did:

    signals = cds_srr(resdir, 'tran-tran')

    It should work, since tran-tran was one of the available datasets.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • peter450
    peter450 over 14 years ago

     Thankyou.It's working.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information