Ejemplo n.º 1
0
        private void btnAbortBuild_Click(object sender, EventArgs e)
        {
            CNCRMessage stopBuild = new CNCRMsgStartQueue(true);
            stopBuild.setPriority(CNCRMSG_PRIORITY.HIGH);

            commCmd.commPriorityQueueEnqueue(stopBuild);
            commCmd.launchProcessQueues();
        }
Ejemplo n.º 2
0
        private void btnAbortBuild_Click(object sender, EventArgs e)
        {
            CNCRMessage stopBuild = new CNCRMsgStartQueue(true);

            stopBuild.setPriority(CNCRMSG_PRIORITY.HIGH);

            commCmd.commPriorityQueueEnqueue(stopBuild);
            commCmd.launchProcessQueues();
        }
Ejemplo n.º 3
0
        /// <summary> Start the build processes.
        /// This function starts the build processes by doing the following:
        /// - Enqueue a "startBuild" comand
        /// </summary>
        private void startBuild()
        {
            commCmd.BaudRate = "9600";
            commCmd.PortName = cmbPorts.SelectedItem.ToString();

            rtbRCOutput.AppendText("Starting build...\n" +
                                   "Opening Port: " + commCmd.PortName + "....");
            rtbRCOutput.ScrollToCaret();

            if (commCmd.OpenPort())
            {
                rtbRCOutput.AppendText(" Opened.\nStarting Build...\n");
                tsPortStatus.Text = commCmd.PortName + " Open";

                CNCRMessage startBuild = new CNCRMsgStartQueue(false);
                startBuild.setPriority(CNCRMSG_PRIORITY.HIGH);

                commCmd.commPriorityQueueEnqueue(startBuild);
                commCmd.launchProcessQueues();
            }
        }
Ejemplo n.º 4
0
        /// <summary> Start the build processes.
        /// This function starts the build processes by doing the following:
        /// - Enqueue a "startBuild" comand 
        /// </summary>
        private void startBuild()
        {
            commCmd.BaudRate = "9600";
            commCmd.PortName = cmbPorts.SelectedItem.ToString();

            rtbRCOutput.AppendText("Starting build...\n" +
                "Opening Port: " + commCmd.PortName + "....");
            rtbRCOutput.ScrollToCaret();

            if (commCmd.OpenPort())
            {
                rtbRCOutput.AppendText(" Opened.\nStarting Build...\n");
                tsPortStatus.Text = commCmd.PortName + " Open";

                CNCRMessage startBuild = new CNCRMsgStartQueue(false);
                startBuild.setPriority(CNCRMSG_PRIORITY.HIGH);

                commCmd.commPriorityQueueEnqueue(startBuild);
                commCmd.launchProcessQueues();
            }
        }