The dac values will be adjusted in the rage of 100 and 500. These values can be adjusted to different amounts by using the min and max options; check the current values by setting the verbose flag. If the dac cannot be adjusted to get the desired count rate, an error message will be issued and the program will terminate with a non-zero exit code.
The program will stop adjusting the dac value when the dac change is less than the tolerance specified on the command line.
Many of the options of the readphot command are also available.
#!/bin/csh # script to adjust all the DACs set DESIRED=1000 adjust chan=0 min=2062 max=2200 tolerance=1 desired=$DESIRED if ($status) exit adjust chan=1 min=2063 max=2200 tolerance=1 desired=$DESIRED if ($status) exit adjust chan=2 min=2064 max=2200 tolerance=1 desired=$DESIRED if ($status) exit