Difference between OP and pv in scripts

M

markgr07

Guest
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
 
On Jul 20, 10:33 am, markgr07 <mark.grauml...@lsi.com> wrote:
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
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.
 
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

On Jul 23, 1:52 pm, markgr07 <mark.grauml...@lsi.com> wrote:
On Jul 20, 10:33 am, markgr07 <mark.grauml...@lsi.com> wrote:



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

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.
 

Welcome to EDABoard.com

Sponsor

Back
Top