コード例 #1
0
        public void StartHardware(bool waitForTrigger)
        {
            var startInfo = new ITCMM.ITCStartInfo
            {
                ExternalTrigger = (uint)(waitForTrigger ? 1 : 0),
                OutputEnable    = 1,
                StopOnOverflow  = 1,
                StopOnUnderrun  = 1,
                ResetFIFOs      = 1,
            };
            //TODO test waitForTrigger set

            uint err = ItcmmCall(() => ITCMM.ITC_Start(DevicePtr, ref startInfo));

            if (err != ITCMM.ACQ_SUCCESS)
            {
                throw new HekaDAQException("Unable to start device", err);
            }
        }