I've got a problem to which I couldn't find answer.
I've made a customized skill function to do calculation and evaluation after PSS analysis. It takes in time domain waves from PSS and returns a number. I create a new output parameter in the output window of my ADE-L which calls this function, it works fine and returns the number.
However, when I run Parametric Analysis in ADE-L, or run it in ADE-XL, evaluation fails and I get the following error.
ERROR (ADE-1057): Could not evaluate expression
Expression:'MyFunction((v("/OUTP" ?result "pss_td") - v("/VSS" ?result "pss_td")) (VOUT_H / 2) )'
because of the following error(s)
("ilGetNumber" 0 t nil ("*Error* ilGetNumber: arg must be a number" srrWave:0x2aacaa20))
Ensure that the definition of the expression is correct.
*Error* ("ilGetNumber" 0 t nil ("*Error* ilGetNumber: arg must be a number" srrWave:0x2aacb060))
The skill functions I call in my function are following:
There isn't any ilGetNumber() function in my code. Very weird.
I guess that in order to call a skill function in Parametric Analysis or in ADE-XL, I need to change something in my code. But I couldn't find any information. Could anybody help me on this? Many thanks!
The error is from a SKILL implementation for the tool. If you set the stack trace to a number greater than one, you will get more debugging information:
(sstatus stacktrace 5)
This should print out the name of the function generating the error.
That said, I suspect that you are passing a wave object (srrWave:0x2aacaa20) into the function rather than a number which it is expecting. Check the values of the arguments to the function to make sure they are correct.