Examples of USIResponse


Examples of de.elv.usi.internal.io.USIResponse

            logger.fine("Write motor 2 configuration."); //$NON-NLS-1$
            MessageHandler.writeMotorConfiguration(device, motor2Configuration);
        }

        logger.fine("Start motors."); //$NON-NLS-1$
        USIResponse message = MessageHandler.writeStartMotors(device);
           
        if (message instanceof MotorSwitchStatus)
            handleMotorSwitchPosition((MotorSwitchStatus) message);
        else
            throw new ProtocolException(
                    getLocalizedMessage(
                            "error.unexpectedMessage"//$NON-NLS-1$
                            ControlCharacter.SWITCH_POSITIONS,
                            message.getControlCharacter()));
    }
View Full Code Here

Examples of de.elv.usi.internal.io.USIResponse

            logger.fine("Write motor 2 configuration."); //$NON-NLS-1$
            MessageHandler.writeMotorConfiguration(device, motor2Configuration);
        }

        logger.fine("Start motors."); //$NON-NLS-1$
        USIResponse message = MessageHandler.writeStartMotors(device);

        if (message instanceof MotorSwitchStatus)
            handleMotorSwitchPosition((MotorSwitchStatus) message);
        else
            throw new ProtocolException(USBStepmotorInterface.class,
                    "error.unexpectedMessage", //$NON-NLS-1$
                    ControlCharacter.SWITCH_POSITIONS, message
                            .getControlCharacter());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.