示例#1
0
        /// <summary>
        /// Function that sets the waveform configuration and calls <see cref="SendConfig"/>.
        /// </summary>
        /// <param name="AP1">Enum for analog probe 1.</param>
        /// <param name="AP2">Enum for analog probe 2.</param>
        /// <param name="DP1">Enum for digital probe 1.</param>
        /// <param name="DP2">Enum for digital probe 2.</param>
        /// <param name="AutoTrigger">Sets AutoTrigger to on (true) of off (false).</param>
        public static void SetWaveformConfig(CAENDPP_PHA_AnalogProbe1_t AP1, CAENDPP_PHA_AnalogProbe2_t AP2, CAENDPP_PHA_DigitalProbe1_t DP1, CAENDPP_PHA_DigitalProbe2_t DP2, bool AutoTrigger)
        {
            dgtzParams.WFParams.ap1 = AP1;
            dgtzParams.WFParams.ap2 = AP2;
            dgtzParams.WFParams.dp1 = DP1;
            dgtzParams.WFParams.dp2 = DP2;
            waveformAutoTrigger = Convert.ToInt32(AutoTrigger);

            SendConfig();
        }
示例#2
0
 /// <summary>
 /// Function that passes the list of selected waveform types to <see cref="CAEN_x730.SetWaveformConfig(CAENDPP_PHA_AnalogProbe1_t, CAENDPP_PHA_AnalogProbe2_t, CAENDPP_PHA_DigitalProbe1_t, CAENDPP_PHA_DigitalProbe2_t, bool)"/>
 /// </summary>
 /// <param name="AP1">Waveform type for anologe probe 1</param>
 /// <param name="AP2">Waveform type for anologe probe 2</param>
 /// <param name="DP1">Waveform type for digital probe 1</param>
 /// <param name="DP2">Waveform type for digital probe 2</param>
 /// <param name="AUTO">Software trigger if no trigger signal can be found.</param>
 public static void SetWaveformConfig(CAENDPP_PHA_AnalogProbe1_t AP1, CAENDPP_PHA_AnalogProbe2_t AP2, CAENDPP_PHA_DigitalProbe1_t DP1, CAENDPP_PHA_DigitalProbe2_t DP2, bool AUTO)
 {
     CAEN_x730.SetWaveformConfig(AP1, AP2, DP1, DP2, AUTO);
     trace.Value.TraceEvent(TraceEventType.Information, 0, "Waveform config was send to the device");
 }