
header <napatool.hdr>

title "Frequency Domain Analysis"

fs    2.0e+6


debug      WINDOWING_INFO  JOIN
directive  WINDOW BLACKMAN_HARRIS_7

dvar  freq   coherent(2000.0, npts1)                       // coherence for npts1 only!
dvar  ampl   0.5


dvar  norm    512.0
dvar  bw      500000.0

ivar  npts1   POWEROF2(15)
ivar  npts2   15000

node aref   dc    1.0
node   i1   sine   0.0   ampl   freq   0.0
node   in   adc   1024  i1     aref

node  out   cell  modulator "ds2.net" in  512

tool  fft "fft11.out"  out  norm  bw  npts1
post join "allfft1.out"

tool  fft "fft12.out"  out  norm  bw  npts1  (no_window)
post join "allfft1.out"


tool  fft "fft21.out"  out  norm  bw  npts2
post join "allfft2.out"

tool  fft "fft22.out"  out  norm  bw  npts2 (no_window)
post join "allfft2.out"


terminate 1 <= TOOL_INDEX

ping
debug POST