P
Paul
Guest
If am measuring something, as follows:
..MEASURE energy INTEGRAL PAR='P(a) + P(b)' FROM=1ns TO=2ns
The stuff I'm integrating is a function of various instantaneous
powers from my test circuit. I am trying to write a script that will
allow me to re-use a series of .MEASURE statements similar to the one
above, but I can't quite get the syntax right. I'm not that
experienced so maybe what I'm trying to do is not even possible...
Basically what I want to do is replace the stuff in the PAR field
above with a parameter that I can define elsewhere. Like this:
..MEASURE energy INTEGRAL powers FROM....
with powers defined:
..PARAM powers='P(a) + P(b)', but that doesn't work, so I tried
..MEASURE powers PARAM='P(a) + P(b)
The latter ran successfully but it only gives me a value and what I
need is the whole waveform as an output variable. I've tried every
variety of syntax I could think of (or find in the manual) but still
no luck. Can anyone help?
Thanks
..MEASURE energy INTEGRAL PAR='P(a) + P(b)' FROM=1ns TO=2ns
The stuff I'm integrating is a function of various instantaneous
powers from my test circuit. I am trying to write a script that will
allow me to re-use a series of .MEASURE statements similar to the one
above, but I can't quite get the syntax right. I'm not that
experienced so maybe what I'm trying to do is not even possible...
Basically what I want to do is replace the stuff in the PAR field
above with a parameter that I can define elsewhere. Like this:
..MEASURE energy INTEGRAL powers FROM....
with powers defined:
..PARAM powers='P(a) + P(b)', but that doesn't work, so I tried
..MEASURE powers PARAM='P(a) + P(b)
The latter ran successfully but it only gives me a value and what I
need is the whole waveform as an output variable. I've tried every
variety of syntax I could think of (or find in the manual) but still
no luck. Can anyone help?
Thanks