@Override
        public void connect()
        {
                if ("".equals(getPort()))
                {
                        error("No port was specified for Labview to connect to!", "Labview", "connect", true);
                        System.exit(1);
                }
                if (isConnected())
                {
                        error("Labview is already connected!", "Labview", "connect");
                        return;
                }
                try
                {
                        sSocket = new ServerSocket(1337);
                        this.getOutStream().println("Waiting for labview to connect... Make sure Labview is connecting to the correct IP address on port 1337");
                        socket = sSocket.accept();
                        write = new PrintWriter(socket.getOutputStream(), true);
                        read = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                        this.getOutStream().println("Labview connected!  Starting to run program...");
                }
                catch (Exception e)
                {
                        error("An error occurred waiting for labview: " + e.getMessage(), "Labview", "connect");
                        if (this.getVerbose())
                                e.printStackTrace(this.getErrStream());
                        System.exit(1);
                }
                try
                {
                        CommPortIdentifier pIdent = CommPortIdentifier.getPortIdentifier(getPort());
                        if (pIdent.isCurrentlyOwned())
                        {
                                error("Labview port (" + getPort() + ") is currently owned by " + pIdent.getCurrentOwner(), "Labview", "connect", true);
                                System.exit(1);
                        }
                        cPort = pIdent.open("LabView", 2000);
                        if (cPort instanceof SerialPort)
                        {
                                sPort = (SerialPort) cPort;
                                sPort.setSerialPortParams(getBaudRate(), SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
                        }
                        this.getOutStream().println("Labview is now ready!");
                }
                catch (Exception e)
                {
                        error("There was an error connecting to Labview", "Labview", "connect");
                }
        }