printf(STDERR "Error, value %i with offset %i is higher or lower than reference %i\n",$val,$offset,$reference);
next;
}
-
+
$o = $cmd << 20;
$o |= $chan << 16;
$o |= (($val*1.+$offset)/$reference*65536.) & 0xFFFF;
$values[17] = 16;
trb_register_write($board,0xd417, $chain | ($chain << 16));
trb_register_write_mem($board,0xd400,0,\@values,18) or die "trb_register_write_mem: ", trb_strerror();
- usleep(5*$chainlen);
- }
+ usleep(50*$chainlen);
+ }
foreach my $i (0..15) {
# print Dumper @values;
# print "\n";
trb_register_write_mem($board,0xd400,0,\@values,18) or die "trb_register_write_mem: ", trb_strerror();
- usleep(5*$chainlen);
+ usleep(50*$chainlen);
if($dac == 16) {
trb_register_write($board,0xd417,0);