public void UseSettingOn(DT5780 mca) { mca.SetChannelEnableMask(0x3); if (Mode == ProbeMode.Histogram) { mca.SetDPPAcquisitionMode(DT5780.DPPAcqMode.List, DT5780.DPPSaveParam.EnergyAndTime); } else if (Mode == ProbeMode.Oscilloscope) { mca.SetDPPAcquisitionMode(DT5780.DPPAcqMode.Mixed, DT5780.DPPSaveParam.EnergyAndTime); } mca.SetVirtualProbe(VirtualProbeMode, VirtualProbe1Mode, VirtualProbe2Mode, DigitalProbeMode); mca.RecordLength = RecordLength; mca.set_PreTrg(0, PreTrigger); mca.set_PreTrg(1, PreTrigger); mca.SetSWTriggerMode(SWTrigger); mca.SetExtTriggerInputMode(ExtTriggerInput); mca.AcquisitionMode = DT5780.AcquisitionModeType.SoftwareControl; }