my $channel = [7,7,7,6,6,7,7]; #SPI interface number - 777657 would be right
#1:4V, 2:2V, 3:1V
-my $resolution = [[2,1,2,1], [2,2,2,1], [2,2,2,4], [2,2,2,2], [3,3,2,2], [1,2,1,2], [1,2,1,2]];
-my $multiplier= [[1,1,0.5,2],[1,1,0.5,0],[1,1,0.5,3.125],[1,1,0.5,0.5], [2.5,1.25,1,0.5], [2,0.5,1,1], [1,0.5,2,1]];
+my $resolution = [[2,1,2,1], [2,2,2,1], [2,2,2,4], [2,2,2,2], [2,3,2,2], [1,2,1,2], [1,2,1,2]];
+my $multiplier= [[1,1,0.5,2],[1,1,0.5,0],[1,1,0.5,3.125],[1,1,0.5,0.5], [5,1.25,1,0.5], [2,0.5,1,1], [1,0.5,2,1]];
my $modedesc = [ 'Trb3sc', 'DiRich', 'Concentrator', 'Power-Voltages','Power-Currents', 'Trb5sc', 'MDC'];
print "\nRunning in mode ".$modedesc->[$mode]."\n\n";