예제 #1
0
        private void appButtonStartRobotListening_Click(object sender, EventArgs e)
        {
            System.Net.IPAddress localRobotIPAddress = null;

            if (comboBoxRobotIPAddress.SelectedItem.ToString().Length != 0)
            {
                try
                {
                    if (String.Equals(cmbProtocol.SelectedItem.ToString(), "UDP"))
                    {
                        localRobotIPAddress = System.Net.IPAddress.Parse(comboBoxRobotIPAddress.SelectedItem.ToString());
                        connector_          = new KukaMatlabConnector.ConnectorObject("commanddoc.xml", localRobotIPAddress.ToString(), Convert.ToUInt32(txtBoxPortNumber.Text));

                        connector_.initializeRobotListenThreadUDP();
                    }
                    else if (String.Equals(cmbProtocol.SelectedItem.ToString(), "TCP"))
                    {
                        localRobotIPAddress = System.Net.IPAddress.Parse(comboBoxRobotIPAddress.SelectedItem.ToString());

                        connector_ = new KukaMatlabConnector.ConnectorObject("commanddoc.xml", localRobotIPAddress.ToString(), Convert.ToUInt32(txtBoxPortNumber.Text));

                        connector_.initializeRobotListenThreadTCP();
                    }
                    else
                    {
                        loggingEntrys.Items.Add("KukaConnectorClient: illegal protocol selected");
                    }
                }
                catch
                {
                    loggingEntrys.Items.Add("KukaConnectorClient: could not parse selected IPAddress");
                }
            }
        }
예제 #2
0
        private void appButtonStartRobotListening_Click(object sender, EventArgs e)
        {
            System.Net.IPAddress localRobotIPAddress = null;

            if (comboBoxRobotIPAddress.SelectedItem.ToString().Length != 0)
            {
                try
                {
                    localRobotIPAddress = System.Net.IPAddress.Parse(comboBoxRobotIPAddress.SelectedItem.ToString());

                    connector_ = new KukaMatlabConnector.ConnectorObject("commanddoc.xml", localRobotIPAddress.ToString(), 6008);

                    connector_.initializeRobotListenThread();
                }
                catch
                {
                    loggingEntrys.Items.Add("KukaConnectorClient: could not parse selected IPAddress");
                }
            }
        }
예제 #3
0
        private void appButtonStartRobotListening_Click(object sender, EventArgs e)
        {
            System.Net.IPAddress localRobotIPAddress = null;

            if (comboBoxRobotIPAddress.SelectedItem.ToString().Length != 0)
            {
                try
                {
                    localRobotIPAddress = System.Net.IPAddress.Parse(comboBoxRobotIPAddress.SelectedItem.ToString());

                    connector_ = new KukaMatlabConnector.ConnectorObject("commanddoc.xml", localRobotIPAddress.ToString(), 6008);

                    connector_.initializeRobotListenThread();
                }
                catch
                {
                    loggingEntrys.Items.Add("KukaConnectorClient: could not parse selected IPAddress");
                }
            }
        }