Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Redirect Output in CIW when launching OCEAN skript

45 views
Skip to first unread message

Fritz Lange

unread,
May 18, 2004, 4:36:29 AM5/18/04
to
Hi,

Does somebody know how to pipe the output of a skript launched with the
load("skriptname.ocn") command to a log file?

I did not find any option to that topic in the documentation

Thanks for any suggestion

Norman


Andrew Beckett

unread,
May 19, 2004, 6:09:32 PM5/19/04
to
Hi Norman,

There's a function, hiStartLog(), and another (you've guessed it), hiEndLog()
which allow you to send all log data to an additional second file.

Alternatively you make your OCEAN script write to a port, which could default
to poport, but could be changed to be the result of an outfile.

For example:

procedure(myOCEAN(@optional (OCNport poport)
...
fprintf(OCNport "Blah blah\n")
ocnPrint(?output OCNport ...)
)

then:

load("myOCEAN.ocn")
output=outfile("./output.txt")
myOCEAN(output)
close(output)

Regards,

Andrew.

--
Andrew Beckett
Senior Technical Leader
Custom IC Solutions
Cadence Design Systems Ltd

0 new messages