}
private void executeQuery() throws ParentException {
InfoMessage info = new InfoMessage();
info.setWaveShape(
sendQueryStringMessage("SOURCE:FUNCTION:SHAPE")
);
info.setFrequency((int)Math.round(
sendQueryValueMessage("SOURCE:FREQUENCY")
));
info.setAmplitude(
sendQueryValueMessage("SOURCE:VOLTAGE")
);
info.setOffset(
sendQueryValueMessage("SOURCE:VOLTAGE:OFFSET")
);
SerialServer.getInstance().setReturnMessage(info);
}