Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

OCEAN script issue

shlooky

Member level 2
Joined
Nov 15, 2011
Messages
45
Helped
3
Reputation
6
Reaction score
9
Trophy points
1,288
Location
Slovakia
Activity points
1,657
Hi there!

Probably a very basic question, but I could not google my answer... been trying for days...

I am (SKILL newbie) trying to write an OCEAN script that would read CSV file containing 12 columns of data and display those as waveforms. Everything works just fine, my problem is with the actual plotting using "for" loop... My code returns 12x the following message "*Warning* Wavenil is not a waveform object that can be displayed and will be DELETED automatically."

Obviously, "var1" is not a waveform object...
So, how can I convert string to a waveform object?
Manual plotting of my waveforms works just fine...
I am basically looking for a simple SKILL function name :)

Thanks!

Code:
for(i 1 12
    var1 = stringToSymbol(strcat("NMOS" pcExprToString(i)))
    awvPlotWaveform(
        win             list(var1)
        ?subwindow         1
        ?stripNumber     list(1)
        ?expr             list("Measured")
        ?color             list("y10")
        ?lineType         list("scatterPlot")
        ?dataSymbol     list(4)
    )
)
 
Probably need to develop a Calculator expression that yields
the desired result (your wave expression evidently missed a
step or several).

The only way I've ever gotten an Ocean script to work (and
trivial at that) has been to do the task in a foreground ADE
session, save the whole session as Ocean script and then
carve off the stuff that isn't necessary.

Which of course is its own set of debug-and-retry-until.
 
Hi there,

Did you post it as a bug to the Cadence forum?


This is not me.... just a coincidence.
I do not have access to Cadence Forums. That's why I have been using this awesome forum :)
--- Updated ---

Probably need to develop a Calculator expression that yields
the desired result (your wave expression evidently missed a
step or several).

The only way I've ever gotten an Ocean script to work (and
trivial at that) has been to do the task in a foreground ADE
session, save the whole session as Ocean script and then
carve off the stuff that isn't necessary.

Which of course is its own set of debug-and-retry-until.

My expressions are working fine. When I plot the waveforms manually using awvPlotWaveform() function, everything is working perfectly. As soon as I try to create a for loop to automate stuff, it stops working. The error in my code is in the "preparation" of "var1". I need to convert the concatenated string to a the actual waveform with identical name.
 
Last edited:

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top