2010/10 - Notes on how data is readout and transfer to a linux host. 1. sg's readtrig - note from looking at SG's readtrigger.sh script. boot: 'version' returns '813008 2' where the last item, is the stage ('2'). setup: 'udp rate=0' change the udp_hz value. Set a paramter to allow more time for udp packet processing. Low numbers are faster (0= should give 600 Mbps). 'detsize dev=all 64 2048 16 1' - detsize WIDTH HEIGHT NAMP CELLROWS 'intr hwint_enable' - Enable real hardware ints readout: # 1.0 usec/pixel, single sample R+G, minimal parallel time clvset dev=all \ ppg4=0000:0000:0000:0000:0000:3800:6622:3154 \ pg3=2008:0080:0802:d034:0340:0409:d993:0124 \ pg4=1010:8010:0303:f004:0040:0020:f732:02ab \ adc=0600:3 # readout on both devices: readout dev=$DEV cellrow=0 bpp=16 # transfer data. Note the -r for 'cell row ID' grasp_save -r 0 -d 0 sg /tmp/dev00.fits grasp_save -r 0 -d 1 sg /tmp/dev01.fits 2. SGIR - adc: adc=adc:mask adc is nsample | numchannels | gap. nsample is number of samples numchannels is 2 (h2) or 1 (al). (for CE engin that generates pulses ) gap is 0; mask should be 3 for h2rg (Red and Green) should be 1 for aladdin(red) this is for adc_select_chan() = programs the ADC chip. setup: adc_select_chan() program the ADC chip for adc=adc:mask. + plclocks need adc_mask: 1(R), 2(G), 3(RG)