Hi,
I am running an ocean script to do a parametric analyis. The parameters are VDD and temperature and analysis is transient. The script goes something like the following,
paramAnalysis("VDD" ?values (3 5)
paramAnalysis("temp" ?values(-40 125)
)
)
paramRun()
openResults(dir)
selectResults('tran)
outputs()
avg=average(VT("/net1"))
out=outfile("filename" "a")
;fprintf( out "VDD=%d Temp=%d Average=%g" VDD temp avg)
fprintf( out "Average=%g" avg)
close(out)
What I want to do is print the results in a flie for each value specified by the parametric analysis. There are two problems,
(1) If I run the commented "fprintf" line in the code above, VDD and temp are not variables anymore. So I get the error as "unbound variables" as expected. Is there a way to print these values ???
(2) For the second fprintf line, asI am running a parametric analysis, all the transient runs are done alreayd. Thus, the variable average is now a graph.Therefore the printed value is now "drwave:123456". Is there a way to print each of this value corresponding to each VDD and temp??
I have tried using "foreach ", instead of running a parametric analysis and that works when I want to print into file. However, I found that parametric analysis was faster.
Thanks,
Mandar