public Output(PortConnect connect,MainForm form) {
		 try {
			 	this.f=form;
				out = connect.serialPort.getOutputStream();
			    } catch (IOException e) {}
		 
		 try {
		    	connect.serialPort.notifyOnOutputEmpty(true);
		    } catch (Exception e) {
			System.out.println("Error setting event notification");
			System.out.println(e.toString());
		    }
		 
	}