| 1 | ''''5 June 2007''' |
| 2 | |
| 3 | First "working" version which reads out waveforms. |
| 4 | To compile: |
| 5 | |
| 6 | {{{ |
| 7 | make clean; make |
| 8 | |
| 9 | }}} |
| 10 | To select a channel, initialize, and read out a waveforem with |
| 11 | automatic (random) trigger: |
| 12 | |
| 13 | {{{ |
| 14 | ./drift.exe |
| 15 | drift> w 2 4 set channel number 4 (equals "Channel 1" on box) |
| 16 | drift> i 15 initialize digitizer, threshold = bit 15 |
| 17 | drift> a automatic capture of 1 waveform |
| 18 | drift> t readout trace to file ''trace.dat' |
| 19 | |
| 20 | }}} |
| 21 | You can then view the waveform using [http://www.gnuplot.info/ Gnuplot] |
| 22 | Simply start gnuplot and enter the command ''''plot "trace.dat"'''. |
| 23 | |
| 24 | For triggered operation, enter the command ''''i <bit>''' where <bit> is |
| 25 | a bit number from 1-12. The trigger threshold will be 2**<bit>. |
| 26 | For example, if <bit> is 9, then the trigger threshold will be 512. |
| 27 | |
| 28 | The command sequence for triggered operation: |
| 29 | |
| 30 | {{{ |
| 31 | drift> i 9 for ezample |
| 32 | drift> n start acquisition, wait for trigger |
| 33 | drift> t read trace starting 150 samples before trigger point |
| 34 | |
| 35 | }}} |
| 36 | |
| 37 | |