10-90 pct rise or fall time
Description Rise or fall time of current waveform between cursors 10-90%
  set cursors to the initial and final values
Hot Key  none
Script range = getcursory(current,1) - getcursory(current,0)
left = getcursory(current,0) + .1 * range
right = getcursory(current,1) - .1 * range
moveCursorRight(0, current, left)
moveCursorLeft(1, current, right)
tRise = getcursorx(1) - getcursorx(0)
loadaccumulator tRise "Rise/Fall Time"
Example Open Sample3.dwg and run a simulation, plot vpd and set cursor 1 to 40n and select the calculator/Time Domain/10-90 pct rise or fall time menu item.

 20-80 pct rise or fall time
Description Rise or fall time of current waveform between cursors 20-80%
  set cursors to the initial and final values
Hot Key  none
Script range = getcursory(current,1) - getcursory(current,0)
left = getcursory(current,0) + .2 * range
right = getcursory(current,1) - .2 * range
moveCursorRight(0, current, left)
moveCursorLeft(1, current, right)
tRise = getcursorx(1) - getcursorx(0)
loadaccumulator tRise "Rise/Fall Time"
Example Open Sample3.dwg and run a simulation, plot vpd and set cursor 1 to 40n and select the calculator/Time Domain/20-80 pct rise or fall time menu item.

 Propagation Delay
Description Prints propagation delay of each waveform with respect to the current one.
  select the source waveform; that is, the waveform you want to be the reference for the propogation delay measurements.
Hot Key  none
Script homecursors
SET COLWIDTH=0
printtext -n "Prop Delay with respect to "
printname current
printtext
printtext
SET COLWIDTH=15
printtext -n "Vector"
printtext "Delay"
printtext
threshold = average(current)
setcursor(2,0)
moveCursorRight(2,current,threshold)
setcursor(0,getcursorx(2))
nv = nextvector(null)
n = 3
while nv <> null
if length(nv) <> 1
if current <> nv
threshold = average(nv)
setcursor(n,getcursorx(2))
moveCursorRight(n, nv, threshold )
propDelay = getcursorx(n) - getcursorx(2)
printname nv
printval propDelay
printtext
n = n + 1
end
end
nv = nextvector(nv)
end
setcursor(1,getcursorx(3))
Example Open Sample3.dwg and run a simulation, plot vin, vpd and several other vectors. Then make vin current by selecting its handle with the mouse and select the calculator/Time Domain/Propogation Delay menu.