topBaseLine
topBaseLine(o_waveform) =>l_values/nil
Description
Returns the topline and baseline values of the specified transient waveform.
Arguments
|
Waveform whose topline and baseline values are to be calculated. |
Value Returned
|
Topline and baseline values of the specified transient waveform. |
|
|
Topline and baseline values cannot be calculated because of an error. |
Examples
The following example opens simulation results stored in the specified directory.
openResults("/servers/user/design/ampsim.raw")
=> "/servers/user/design/ampsim.raw"
The tran-tran result of the results directory ampsim.raw contain a transient signal out.
waveform=v("out" ?result "tran-tran")
=> srrWave:0x34930020
The following example calculates the topline and baseline value of the transient signal out.
topBaseLine(waveform)
=> (2.926673 -0.03882059)
The first value in the list is the topline value and the second value is the baseline value.
Return to top