示例#1
0
        private void tmrReadCounter_Tick(object eventSender, System.EventArgs eventArgs)
        {
            tmrReadCounter.Stop();

            // Read the counter value
            //  Parameters:
            //    CounterNum	:the counter to be read
            //    Count			:the count value in the counter
            ushort Count = 0;

            MccDaq.ErrorInfo ULStat = DaqBoard.CIn(CounterNum, out Count);

            lblReadValue.Text   = "Value read from counter " + CounterNum.ToString() + ":";
            lblShowReadVal.Text = Count.ToString("0");

            tmrReadCounter.Start();
        }