paramAnalysis error when loading data from a form

Discussion in 'Cadence' started by prodromos, Oct 18, 2009.

  1. prodromos

    prodromos Guest

    hello.
    i try to run parametric analysis with data that i got from a form and
    i get this error " *Error* greaterp: can't handle ("3" > "0") "
    using deferent numbers just give the same error but with the different
    numbers

    the error comes from:
    paramAnalysis("my_vb" ?start input_Vb_start ?stop input_Vb_stop ?step
    input_Vb_step)

    but
    analysis('dc ?param "my_vg" ?start input_Vg_start ?stop
    input_Vg_stop ?lin input_Vg_lin )
    has no problem.

    both load data like:
    input_Vb_start=test1aa->vbsStart->value
    input_Vg_start=test1aa->vgsStart->value

    and if i dont load the data form the form (input_Vb_start=0)
    paramAnalysis runs fine.

    i guess that form data have to be converted to be used in
    paramAnalysis???
    i cant find any thing in the ocean manual about this problem.

    thank you for the help.
     
    prodromos, Oct 18, 2009
    #1
  2. prodromos wrote, on 10/18/09 00:15:
    Looking at the documentation for paramAnalysis(), it expects the start, stop etc
    to be numbers, whereas the analysis() function can cope with them being strings
    (containing numbers).

    You can use the cdfParseFloatString() to convert the values to numbers:

    input_Vb_start=cdfParseFloatString(test1aa->vbsStart->value)

    The reason why I used cdfParseFloatString rather than atof(...) is that
    cdfParseFloatString() handles suffix notation (e.g. "5n") whereas atof() does not.

    Regards,

    Andrew.
     
    Andrew Beckett, Oct 19, 2009
    #2
  3. prodromos

    prodromos Guest

    i will try it.
    thank you very much
     
    prodromos, Oct 19, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.