private void timerDebug_Tick(object sender, EventArgs e) { //if out of array index reset it if (iArrayIndex >= sTemp.Length) { iArrayIndex = 0; } #if DEBUG System.Diagnostics.Debug.Write("SimInput " + sTemp[iArrayIndex] + "\r\n"); #endif controlPort.SimDataReady(sTemp[iArrayIndex]); iArrayIndex++; }