MAX_N_CALDACS
if (n_chans > MAX_N_CALDACS)
unsigned int caldac_maxdata_list[MAX_N_CALDACS];
unsigned short caldacs[MAX_N_CALDACS];