F
Frank Nitsche
Guest
Hi everybody,
I wrote an ocean-script to perform some parametric calculations. Within
this script I use the following expressions:
if(( cornerType == "ws" ) outp = outfile("./results.log"))
if(( cornerType == "ws" ) ocnPrint( ?output outp ?width 11 ?numSpaces 1
"corner" "r_length" "cf" "ccomp" "rvalue" "BW" "Noise" "Overshot"
"Target" ))
ocnPrint( ?output outp ?width 11 ?numSpaces 1 cornerType evalstring(
desVar("r_length")) evalstring( desVar("cf")) evalstring(
desVar("ccomp")) r b n ue zf )
close(outp)
The variable cornerType is set to "ws" at the beginning within a
foreach-loop. Tha expressions above are all within this loop. The
close(outp) is out of the loop.
When I start this script with ocean it works fine. The file results.log
is opened, the results from each run of the loop are wirtten to the file
and the file is closed.
When I call ocean from within a C program using the following
expressions ( an .oceanrc with the file name of the script is existing):
sprintf(h_txt, "ocean -nograph\n");
system(h_txt);
it returns the following error messages
The call from within the C program works if I don't use the output
expressions above.
--
Best regards
Frank.
F. Nitsche
Technical Manager Chipdesign
MAZeT GmbH
I wrote an ocean-script to perform some parametric calculations. Within
this script I use the following expressions:
if(( cornerType == "ws" ) outp = outfile("./results.log"))
if(( cornerType == "ws" ) ocnPrint( ?output outp ?width 11 ?numSpaces 1
"corner" "r_length" "cf" "ccomp" "rvalue" "BW" "Noise" "Overshot"
"Target" ))
ocnPrint( ?output outp ?width 11 ?numSpaces 1 cornerType evalstring(
desVar("r_length")) evalstring( desVar("cf")) evalstring(
desVar("ccomp")) r b n ue zf )
close(outp)
The variable cornerType is set to "ws" at the beginning within a
foreach-loop. Tha expressions above are all within this loop. The
close(outp) is out of the loop.
When I start this script with ocean it works fine. The file results.log
is opened, the results from each run of the loop are wirtten to the file
and the file is closed.
When I call ocean from within a C program using the following
expressions ( an .oceanrc with the file name of the script is existing):
sprintf(h_txt, "ocean -nograph\n");
system(h_txt);
it returns the following error messages
What's wrong?*Error* eval: unbound variable - outp
*Error* (Default-reader-method) generic:famGetUserPath class:list
The call from within the C program works if I don't use the output
expressions above.
--
Best regards
Frank.
F. Nitsche
Technical Manager Chipdesign
MAZeT GmbH