padsley / k600analyser

Code for the K600 analyser including plugin codes for silicon, clover and HAGAR data
1 stars 4 forks source link

Set VDC configuration from config file #83

Closed padsley closed 8 years ago

padsley commented 8 years ago

Should ensure that this is working. It's currently a bodge.

padsley commented 8 years ago

Doh. This is also issue #94. Argh. I should really get onto this.

neveling commented 8 years ago

I can confirm that the choice in the config file makes its way to main.c, specificaly to the init routine main_init.

extern bool VDC1_new, VDC2_new;

if(VDC1_new) { if(VDC2_new) { setupchannel2wireXUXU(Channel2Wire); } else { setupchannel2wireXUXold(Channel2Wire); } } else { if(VDC2_new) { setupchannel2wireXoldXU(Channel2Wire); } else { setupchannel2wireXoldXold(Channel2Wire); } }

All four these setupchannel2wire routines are in Focalplane.c