Example #1
0
        public void logVoltageData(ThcCuttingData value)
        {
            // Output time.
            outputStream.Write(value.elapsedTime.ToString() + ", ");

            // Output if volts or counts
            if (value.isVoltage)
            {
                outputStream.Write("V, ");
            }
            else
            {
                outputStream.Write("C, ");
            }

            // Torch On Status
            if (value.torchOn)
            {
                outputStream.Write("1, ");
            }
            else
            {
                outputStream.Write("0, ");
            }

            // Arc Good Status
            if (value.arcGood)
            {
                outputStream.Write("1, ");
            }
            else
            {
                outputStream.Write("0, ");
            }

            // THC Voltage Control
            if (value.voltControlOn)
            {
                outputStream.Write("1, ");
            }
            else
            {
                outputStream.Write("0, ");
            }

            // THC Up control signal
            if (value.thcUp)
            {
                outputStream.Write("1, ");
            }
            else
            {
                outputStream.Write("0, ");
            }

            // THC Down control signal
            if (value.thcDown)
            {
                outputStream.Write("1, ");
            }
            else
            {
                outputStream.Write("0, ");
            }

            // Current set point
            outputStream.Write(value.setPoint.ToString() + ", ");

            // Current voltage
            outputStream.WriteLine(value.value.ToString());
        }
        public void logVoltageData(ThcCuttingData value)
        {

            // Output time.
            outputStream.Write(value.elapsedTime.ToString() + ", ");

            // Output if volts or counts
            if (value.isVoltage)
                outputStream.Write("V, ");
            else
                outputStream.Write("C, ");

            // Torch On Status
            if (value.torchOn)
                outputStream.Write("1, ");
            else
                outputStream.Write("0, ");

            // Arc Good Status
            if (value.arcGood)
                outputStream.Write("1, ");
            else
                outputStream.Write("0, ");

            // THC Voltage Control
            if (value.voltControlOn)
                outputStream.Write("1, ");
            else
                outputStream.Write("0, ");

            // THC Up control signal
            if (value.thcUp)
                outputStream.Write("1, ");
            else
                outputStream.Write("0, ");

            // THC Down control signal
            if (value.thcDown)
                outputStream.Write("1, ");
            else
                outputStream.Write("0, ");

            // Current set point
            outputStream.Write(value.setPoint.ToString() + ", ");

            // Current voltage
            outputStream.WriteLine(value.value.ToString());
        }
Example #3
0
        public void loadVoltageData(ThcCuttingData value)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new MethodInvoker(() => { loadVoltageData(value); }));
                return;
            }
            
            if (value.torchOn)
                pbTorchOnStatus.BackColor = Color.Green;
            else
                pbTorchOnStatus.BackColor = Color.Beige;

            if (value.arcGood)
                pbArcGoodStatus.BackColor = Color.Green;
            else
                pbArcGoodStatus.BackColor = Color.Beige;

            if (value.voltControlOn)
                pbVoltageControlStatus.BackColor = Color.Green;
            else
                pbVoltageControlStatus.BackColor = Color.Beige;

            if (value.thcUp)
                pbThcUpStatus.BackColor = Color.Green;
            else
                pbThcUpStatus.BackColor = Color.Beige;

            if (value.thcDown)
                pbThcDownStatus.BackColor = Color.Green;
            else
                pbThcDownStatus.BackColor = Color.Beige;

            if (value.isVoltage)
                lblVoltage.Text = value.value.ToString();
            else
                lblVoltage.Text = value.value.ToString();

            lblSetPoint.Text = value.setPoint.ToString();

            lblVoltage.Text = value.value.ToString();
        }
Example #4
0
        public void loadVoltageData(ThcCuttingData value)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new MethodInvoker(() => { loadVoltageData(value); }));
                return;
            }

            if (value.torchOn)
            {
                pbTorchOnStatus.BackColor = Color.Green;
            }
            else
            {
                pbTorchOnStatus.BackColor = Color.Beige;
            }

            if (value.arcGood)
            {
                pbArcGoodStatus.BackColor = Color.Green;
            }
            else
            {
                pbArcGoodStatus.BackColor = Color.Beige;
            }

            if (value.voltControlOn)
            {
                pbVoltageControlStatus.BackColor = Color.Green;
            }
            else
            {
                pbVoltageControlStatus.BackColor = Color.Beige;
            }

            if (value.thcUp)
            {
                pbThcUpStatus.BackColor = Color.Green;
            }
            else
            {
                pbThcUpStatus.BackColor = Color.Beige;
            }

            if (value.thcDown)
            {
                pbThcDownStatus.BackColor = Color.Green;
            }
            else
            {
                pbThcDownStatus.BackColor = Color.Beige;
            }

            if (value.isVoltage)
            {
                lblVoltage.Text = value.value.ToString();
            }
            else
            {
                lblVoltage.Text = value.value.ToString();
            }

            lblSetPoint.Text = value.setPoint.ToString();

            lblVoltage.Text = value.value.ToString();
        }