public void UseSettingOn(DT5780 mca, int channel)
 {
     mca.set_PulsePolarity(channel, Polarity);
     mca.set_DecayTime(channel, DecayTime);
     mca.set_InputRiseTime(channel, DecayTime);
     mca.set_TrapezoidRiseTime(channel, TrapezoidRiseTime);
     mca.set_TrapezoidFlatTop(channel, FlatTop);
     mca.set_BaselineAveragingWindow(channel, BaselineMean);
     mca.SetTrapezoidGain(channel, TrapezoidGain);
     mca.set_PeakingTime(channel, PeakingDelay);
     mca.set_PeakAveragingWindow(channel, PeakMean);
     mca.set_BaselineHoldOff(channel, BaselineHoldoff);
     mca.set_PeakHoldOffExtension(channel, PeakHoldoff);
 }