;WARNING this file is generated automatically. don't edit manually.
-[chain1]
+[newchain1]
FPGAtrbnetAddr=0xf308
RAMtrbnetAddr=0xa000
CMDreg_trbnetAddr=0xa120
guiBM_NP_defaults2=""
-;BEGIN GENERATE_CHAINORDER chain1
-JNR0_sensor4=sensor4.ini
-JNR1_sensor3=sensor3.ini
-JNR2_sensor2=sensor2.ini
-JNR3_sensor1=sensor1.ini
-;END GENERATE_CHAINORDER chain1
+;BEGIN GENERATE_CHAINORDER newchain1
+JNR0_sensor8=sensor8.ini
+JNR1_sensor7=sensor7.ini
+JNR2_sensor6=sensor6.ini
+JNR3_sensor5=sensor5.ini
+;END GENERATE_CHAINORDER newchain1
open(CHAINSFILE,">", "./chains.ini") || die("Cannot open file chains.ini!");
print CHAINSFILE ";WARNING this file is generated automatically. don't edit manually.\n";
-for (my $i=0;$i<3;$i++) {
+for (my $i=0;$i<scalar @chain_names;$i++) {
my $chainname = $chain_names[$i];
my %sensors = %{$chains{$chainname}};
print CHAINSFILE "\n[$chainname]\n";