dasformat is an engineering utility for setting or querying the readout format of one channel of data-acquisition sub-system (DAsS). It does not set a corresponding format on the associated detector.
dasformat [-c ccd-size] [-b binning] [-w window-enable] \ [-1 window] [2 window] [-3 window] [-4 window] \ [-t transformation] [-p] [-d [-r] channel
where channel is a number in the range 0..7 inclusive and the command options are as follows.
Define the basic size of a newly mounted detector for channel 1:
dasformat -c1124:1124 1
Adjust the channel in the previous example: specify a 90° rotation and a reflection to get spectra with wavelength on the x-axis increasing to the right:
dasformat -p -t "+y" 1
Query the current format:
dasformat -p -r 1
Once a format is accepted by the DAsS it remains in the control-settings record until the next format-change and is restored each time the sub-system is reset or restarted.
dasformat sets a format only for the DAS channel to which it is applied. If a multi-channeled instrument is used, it is necessary to set each channel independently (the instrument may have its own version of dasformat that does this in one go). If you use dasformat to set a format and do not set the same format on the CCD controller, then all subsequent readouts will fail or will be corrupt.
This is a common error in settings windows:
dasformat -c1124:1124 -w1 -1 1124:100:1:1 1The intention here is to set a window running the full width of the CCD - 1124 pixels. The user has started positioned the window at (1,1) instead of (0,0) and so the system correctly objects that the window will not fit onto the CCD chip.