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

Difference between OP and pv in scripts

9 views
Skip to first unread message

markgr07

unread,
Jul 20, 2007, 12:33:20 PM7/20/07
to
other than the ability to select results from a different directory,
what is the difference between using OP() and pv() to get device
parameters in a script?

ex:

gds = OP("SATT.MPC0.xmx.mx","gds")

vs

gds = pv("SATT.MPC0.xmx.mx","gds")

I get the same results returned.

thanks
mark

markgr07

unread,
Jul 23, 2007, 3:52:47 PM7/23/07
to

I found out one really important difference.

if using a "for" loop, or some other control to go through and
process the results, OP will not update from the first value it gets
in the loop.

"pv" will update each time it goes through the loop and get the
correct result from the operating point information.


JD

unread,
Jul 30, 2007, 6:01:53 PM7/30/07
to
Based on my understanding, pv is a ocean function, OP is a calculator
function.

The difference between ocean function and calculator function is:

For ocean function, you need to selectResult() first, for example, to
use pv, you need:

selectResult('dcOp)
pv(...)

For calculator function, you do not need to selectResult(), you can
run

OP(...) after you openResults()


JD

0 new messages