-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.pl
47 lines (38 loc) · 925 Bytes
/
test.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/perl
$cam = 4;
$gam = 128;
$gain = 2048;
system("./send.pl $cam autoshutter 0 0 0");
system("./send.pl $cam changegain $gain" );
system("./send.pl $cam setcamera gamma $gam" );
sleep 1;
for( $gam=128; $gam<131; $gam++ ) {
system("./send.pl $cam setcamera gamma $gam" );
$gain = 2048;
system("./send.pl $cam changegain $gain" );
sleep 1;
for( $sh=2040; $sh<2051; $sh++ ) {
system("./send.pl $cam changeshutter $sh" );
sleep 1;
&take;
}
for( $sh=2051; $sh<2842; $sh+=10 ) {
system("./send.pl $cam changeshutter $sh" );
sleep 1;
&take;
}
for( $sh=2100; $sh<2900; $sh+=100 ) {
system("./send.pl $cam changeshutter $sh" );
sleep 1;
for( $gain=2048; $gain<2229; $gain+=10 ) {
system("./send.pl $cam changegain $gain" );
sleep 1;
&take;
}
}
}
sub take {
system("./doCam $cam 20 0 0 a.pix" );
(@f) = <1*.ras.Z>;
rename $f[0], "g$gain.s$sh.gam$gam.ras.Z";
}