Package de.elv.usi.internal.io

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


            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

Related Classes of de.elv.usi.internal.io.USIResponse

Copyright © 2018 www.massapicom. 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.