private void cmdStartInt_Click(object eventSender, System.EventArgs eventArgs) { cmdStartInt.Enabled = false; cmdStartInt.Visible = false; cmdStopRead.Enabled = true; cmdStopRead.Visible = true; // Set the counters to store their values upon an interrupt // Parameters: // IntCount :maximum number of interrupts // CntrControl() :array which indicates the channels to be read // DataBuffer() :array that receives the count values for enabled // channels each time an interrupt occur // Set all channels to MccDaq.CounterControl.Disabled and init DataBuffer for (int i = 0; i <= NumCntrs - 1; ++i) { CntrControl[i] = MccDaq.CounterControl.Disabled; DataBuffer[i] = 0; } // Enable the channels to be monitored CntrControl[0] = MccDaq.CounterControl.Enabled; CntrControl[1] = MccDaq.CounterControl.Enabled; // Start acquisition of counter values MccDaq.ErrorInfo ULStat = DaqBoard.CStoreOnInt(IntCount, ref CntrControl[0], MemHandle); tmrReadStatus.Enabled = true; FirstPoint = 0; }