SCUIFeature.save();
} catch (Exception ex) {
ex.printStackTrace();
}
ScaleConnector sc = new ScaleConnector(port, baud, dataBits, stopBits, parity);
sc.setByteCount(byteCount);
sc.setReadings(readings);
sc.setStartCharacter(startChar);
sc.setEndCharacter(endChar);
sc.setStartCutPosition(startCut);
sc.setEndCutPosition(endCut);
sc.setStabilityValuePosition(sIndicatorPos);
sc.setStabilityValue(sIndicator);
sc.setFloatingPoint(fPoint);
byte[] bytesPortValue = null;
String portValue = "";
bytesPortValue = sc.readBytes();
portValue = sc.readValue();
viewServerMode.getLblPortValue().setText(portValue);
if (sc.isStableValue()) {
viewServerMode.getLblStatusValue().setText(SCUILocale.get("ViewServerMode.STATUS_STABLE"));
viewServerMode.getLblStatusValue().setForeground(Color.GREEN);
} else {
viewServerMode.getLblStatusValue().setText(SCUILocale.get("ViewServerMode.STATUS_UNSTABLE"));
viewServerMode.getLblStatusValue().setForeground(Color.RED);