Exemplo n.º 1
0
        private void cmdConvData_Click(object eventSender, System.EventArgs eventArgs)         /* Handles cmdConvData.Click */
        {
            int i;

            MccDaq.ErrorInfo ULStat;

            //  Use MccDaq.MccBoard.AConvertData() to convert the 16-bit values
            //  in ADData() to 12-bit values
            //   Parameters:
            //     NumPoints     :the number of data values to convert
            //     ADData        :the array holding the 16-bit data values to be converted
            //     ChanTags      : the arrey that will hold the channel tags
            ULStat = DaqBoard.AConvertData(NumPoints, ref ADData[0], out ChanTags[0]);



            for (i = 0; i <= HighChan; ++i)
            {
                lblADData[i].Text  = ADData[i].ToString("D");
                lblShowTag[i].Text = ChanTags[i].ToString("D");
            }
            cmdConvData.Enabled = false;
        }