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; }
public void UseSettingOn(DT5780 mca, int channel) { mca.set_TriggerThreshold(channel, TriggerLevel); mca.set_TriggerFilterSmoothing(channel, SmoothingFactor); mca.set_PreTrg(channel, 0); mca.set_TriggerHoldoff(channel, TriggerHoldoff); mca.SetChannelSelfTriggerMode(channel, SelfTrigger); mca.SetInputRange(channel, InputRange); }