Example #1
0
 private void numericUpdown_ValueChanged(object sender, EventArgs e)
 {
     for (int x = 0; x < 40; x++)
     {
         machineData.delaySettings[x] = (int)nuds[x].Value;
     }
     machineData.generateTimingData();
     byte[] tbl = machineData.generatePattern();
     comHandler.sendData(tbl);
 }
Example #2
0
        void exposureTimer_Tick(object sender, EventArgs e)
        {
            if (currentLine >= bmp.Width)
            {
                exposureReset();
            }
            else
            {
                byte[] data = getLineFromBmp(currentLine);

                byte[] tdata = machineData.translateLine(data);

                comHandler.sendData(tdata);

                comHandler.sendStepper(-1);

                lineNumericUpDown.Value = currentLine;
                currentLine++;
                elapsed_time += exposureTimer.Interval;
                setTimerLabel(elapsed_time / 1000);
            }
        }