triggeredDelay
triggeredDelay(o_signal1 o_signal2 n_threshold1 s_edgeType1 n_threshold2 s_edgeType2[?multipleg_multiple] [?nthx_nth] [?periodicityx_periodicity] [?tol1n_tolerance1] [?tol2n_tolerance2] [?xNames_xName] ) =>o_waveform/n_value/nil
Description
Calculates the delay from the trigger point on the edge (either rising or falling) of a triggering signal to the next edge (either rising or falling) of the target signal.
Arguments
Value Returned
Examples
The following example opens simulation results stored in the specified directory.
openResults("/servers/user/triggeredDelay.psf")
=> "/servers/user/triggeredDelay.psf"
The following example lists the results stored in the directory.
results()
=> ("tran")
The following example selects the tran results stored in the specified results directory triggeredDelay.psf.
selectResults('tran)
=> stdobj@0x2d4000c8
The tran results of the results directory triggeredDelay.psf contain two signals, samphold and v2net.
The following examples plot signals samphold and v2net in separate subwindows.
awvPlotSignals('(("/servers/user/triggeredDelay.psf" (("tran" ("samphold"))))) ?plotStyle "New Subwindow")
=> t
awvPlotSignals('(("/servers/user/triggeredDelay.psf" (("tran" ("v2net"))))) ?plotStyle "New Subwindow")
=> t

The following example calculates delay from the trigger point on the first rising edge of the triggering signal, samphold, to the next edge (either rising or falling) of the target signal, v2net.
delay=triggeredDelay(v("samphold" ?result "tran") v("v2net" ?result "tran") 1.7 "rising" 1.7 "either" ?multiple t ?xName "target")
=> srrWave:0x2fbe4070
The following example creates a new Waveform window.
awvCreatePlotWindow()
=> window:5
The following example plots the waveform represented by delay in the newly created Waveform window.
awvAppendWaveform(awvGetCurrentWindow() list(delay) ?expr list("triggeredDelay") ?color list("y6") ?index list(2) ?lineType list("line") ?showSymbols list(t) ?dataSymbol list("x"))
=> t

Return to top