| 
      
        | Description | Calculate the Bandwidth for waveforms (in
        magnitude) |  
        |  | Assumes the current plot is a plot of magnitude
        in db vs. frequency. The bandwidth is then measured with respect
        to the maximum, but down 3db on each side. |  
        | Hot Key | none |  
        | Script | HomeCursors Vsignal = current
 theMax = max(Vsignal)
 MoveCursorRight(0,Vsignal,theMax)
 Fmax = GetCursorX(0)
 SetCursor(1,Fmax)
 MoveCursorRight(1,Vsignal,theMax-3)
 MoveCursorLeft(0,Vsignal,theMax-3)
 test = GetCursorX(1) - GetCursorX(0)
 print test
 |  
        | Example | Open <ICAPSdir>\CIRCUITS\buttfil\butfil1.dwg.
        Run the simulation, open Scope5 and plot db of vout by selecting
        dB and vout from the Add Waveforms dialog, then select Bandwidth
        from the Calculator/Control Systems menu. |  |