OcnPrint Problem

P

p4ul$3n

Guest
Hello!

I got a great problem with ocnPrint(),
I am just a beginner with using skill and ocean
so what my problem is:

I try to write a procedure, that writes out the result of the last made
simulation into my home directory, i have tried a lot of sollutions
postet, but nothing worked really.
So maybe someone can help me
What my procedure does now is not very much, it reads out the results
from the .res file in the cadence file structure. But i need the X-Axis
scale too.
So i tried ocnPrint => my problem
or is there a file somewhere, where all the simulation points of the
X-Axis stands(like the .res file for the Y-Axes)?

So if someone knows a way ocnprint can work, or a file where i can read
out the X.Axis scale, please help me...

Best Regards,
Manuel
 
On Oct 4, 9:46 am, "p4ul$3n" <Manuel.Paulit...@infineon.com> wrote:
Hello!

I got a great problem with ocnPrint(),
I am just a beginner with using skill and ocean
so what my problem is:

I try to write a procedure, that writes out the result of the last made
simulation into my home directory, i have tried a lot of sollutions
postet, but nothing worked really.
If you wouldn't mind, then post the lines of code that you don't get
running.

So maybe someone can help me
What my procedure does now is not very much, it reads out the results
from the .res file in the cadence file structure. But i need the X-Axis
scale too.
Do you need to scale the x-axis also?
What is the .res file in Cadence structure?
Are you using spectre stand-alone or in Freeway (I see you are from
Infineon :))

So i tried ocnPrint => my problem
or is there a file somewhere, where all the simulation points of the
X-Axis stands(like the .res file for the Y-Axes)?

So if someone knows a way ocnprint can work, or a file where i can read
out the X.Axis scale, please help me...
use getData() to get a waveform
=> (setq tmp1 (getData "node" ?result "tran-tran" ?resultsDir
"./psf"))

scale the x-axis using a function
=> (setq tmp2 (sabScaleXVec tmp1 0.5))

plot the waveform
=> (plot tmp2)

or, use the ocnPrint to a file
=> (ocnPrint ?output "resultfile" tmp2)

--
Svenn


/* sabScaleXVec.il
Author Svenn Bjerkem
Lang SKILL
Date Sep 18, 2006

Example use:
(setq tmp1 (sabScaleXVec (getData "" ?result "" ?resultsDir "") 0.5))
Causes all x-values to be multiplied by 0.5
*/
(procedure (sabScaleXVec waveform factor)
(cond
((drIsWaveform waveform)
(let (oldXvec newXvec xlen xval newwave)
(setq oldXvec (drGetWaveformXVec waveform))
(setq xlen (drVectorLength oldXvec))
(setq newXvec (drCreateVec 'double xlen))
(for index 0 (sub1 xlen)
(setq xval (drGetElem oldXvec index))
(setq xval (times xval factor))
(drSetElem newXvec index xval))
(putpropq newXvec (list 'sabScaleXVec (getq oldXvec
expression) factor) xScale)
(setq newwave (drCreateWaveform newXvec (drGetWaveformYVec
waveform)))
(putpropq newwave (getq waveform plotStyle) plotStyle)
(putpropq newwave (getq waveform plotStyle) xScale)
newwave))
((famIsFamily waveform)
(famMap 'sabScaleXVec waveform factor))
((numberp waveform)
(times waveform factor))
(t
(error "sabScaleXVec - can't handle %L\n" waveform))
))
 

Welcome to EDABoard.com

Sponsor

Back
Top