Hi,
Got a question on OCEAN scripts (same applies to artil as well)
I have an ADE L state, from which I save the OCEAN script, and then run it. It runs fine.
Suppose, there is a calculator function in this OCEAN script, which looks like this:
gain_1 = value(dB20(mag(v("/outp" ?result "ac-ac"))) 1)
plot( gain_1 ?expr '( "gain_1" ) )
Now, suppose I want to run the calculator function again (with possibly some modifications). Since the simulation is already run, I remove the entire top part of the OCEAN script, and replace it with a call to openResults, like below:
openResults( "results.psf" ) ; Replace "results.psf" with the actual path of the PSF directory
I run the OCEAN script, but it fails, with the following error:
> WARNING (OCN-6054): The output '/outp' you selected does not exist. Type outputs() to see the list
Now comes the funny part.
I change the calculator expression to the following:
gain_1 = value(dB20(mag(v("outp" ?result "ac-ac"))) 1)
That is, I removed the "/" character in the signal name.
The script now runs fine!
Could anyone tell me why this happens? I know the workaround for it, but would like to understand why that workaround is necessary at all.