Class Pegasus

    • Method Detail

      • getDescription

        public static java.lang.String getDescription()
      • slowQuery

        protected java.lang.String slowQuery​(java.lang.String message,
                                             java.lang.Object... params)
                                      throws java.io.IOException,
                                             DeviceException
        Throws:
        java.io.IOException
        DeviceException
      • setXPosition

        public void setXPosition​(double xposition)
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: XYTranslationStage
        Sets the x-position to the desired value.
        Specified by:
        setXPosition in interface XYTranslationStage
        Parameters:
        xposition - x-Position, in m
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setYPosition

        public void setYPosition​(double yposition)
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: XYTranslationStage
        Sets the y-position to the desired value.
        Specified by:
        setYPosition in interface XYTranslationStage
        Parameters:
        yposition - y-Position, in m
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • parsePosition

        protected double parsePosition​(java.lang.String response)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • parsePosition

        protected double parsePosition​(java.lang.String response,
                                       double divisor)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getXPosition

        public double getXPosition()
                            throws java.io.IOException
        Description copied from interface: XYTranslationStage
        Returns the x component of Position, in m.
        Specified by:
        getXPosition in interface XYTranslationStage
        Returns:
        x-Position, in m
        Throws:
        java.io.IOException - Upon communications error
      • continMovement

        public void continMovement​(java.lang.String axis,
                                   double velocityPercentage)
                            throws java.io.IOException,
                                   DeviceException
        Description copied from interface: ProbeStation
        Write z-axis fine lift
        Specified by:
        continMovement in interface ProbeStation
        Parameters:
        axis - : Movement axis (X,Y)
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getYPosition

        public double getYPosition()
                            throws java.io.IOException
        Description copied from interface: XYTranslationStage
        Returns the y component of Position, in m.
        Specified by:
        getYPosition in interface XYTranslationStage
        Returns:
        y-Position, in m
        Throws:
        java.io.IOException - Upon communications error
      • setXYPosition

        public void setXYPosition​(double xposition,
                                  double yposition)
                           throws java.io.IOException,
                                  DeviceException
        Description copied from interface: XYTranslationStage
        Sets the x- and y-position to the desired value.
        Specified by:
        setXYPosition in interface XYTranslationStage
        Parameters:
        xposition - x-Position, in m
        yposition - y-Position, in m
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setZPosition

        public void setZPosition​(double position)
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: XYZTranslationStage
        Sets the x-position to the desired value.
        Specified by:
        setZPosition in interface XYZTranslationStage
        Parameters:
        position - z-Position, in m
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setGrossUpDistance

        public void setGrossUpDistance​(double position)
                                throws java.io.IOException,
                                       DeviceException
        Description copied from interface: ProbeStation
        Write z-axis gross lift
        Specified by:
        setGrossUpDistance in interface ProbeStation
        Parameters:
        position - in m
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • setGrossUp

        public void setGrossUp​(boolean locked)
                        throws java.io.IOException,
                               DeviceException
        Description copied from interface: ProbeStation
        Set Gross Up (1) or Gross Down (0)
        Specified by:
        setGrossUp in interface ProbeStation
        Parameters:
        locked - 1: up; 0: down
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • isGrossLocked

        public boolean isGrossLocked()
                              throws java.io.IOException
        Description copied from interface: ProbeStation
        Returns if Gross Up or not
        Specified by:
        isGrossLocked in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error
      • getZPosition

        public double getZPosition()
                            throws java.io.IOException
        Description copied from interface: XYZTranslationStage
        Returns the z component of Position, in m.
        Specified by:
        getZPosition in interface XYZTranslationStage
        Returns:
        z-Position, in m
        Throws:
        java.io.IOException - Upon communications error
      • setXYSpeed

        public void setXYSpeed​(double speed)
        Description copied from interface: XYTranslationStage
        Sets the speed to the desired value in TODO.
        Specified by:
        setXYSpeed in interface XYTranslationStage
        Parameters:
        speed - in TODO
      • setZSpeed

        public void setZSpeed​(double speed)
        Description copied from interface: XYZTranslationStage
        Sets the speed to the desired value in TODO.
        Specified by:
        setZSpeed in interface XYZTranslationStage
        Parameters:
        speed - in TODO
      • setRotation

        public void setRotation​(double theta)
                         throws java.io.IOException,
                                DeviceException
        Description copied from interface: XYTranslationStage
        Sets the rotation angle theta to the desired value.
        Specified by:
        setRotation in interface XYTranslationStage
        Parameters:
        theta - rotation angle, in degrees
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getRotation

        public double getRotation()
                           throws java.io.IOException,
                                  DeviceException
        Description copied from interface: XYTranslationStage
        Returns rotation angle theta in degrees
        Specified by:
        getRotation in interface XYTranslationStage
        Returns:
        rotation angle, in degrees
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getIDN

        public java.lang.String getIDN()
                                throws java.io.IOException
        Description copied from class: VISADevice
        Sends the standard identifications query to the device (*IDN?)
        Specified by:
        getIDN in interface Instrument
        Overrides:
        getIDN in class VISADevice
        Returns:
        The resposne of the device
        Throws:
        java.io.IOException - Upon communications error
      • setLockDistance

        public void setLockDistance​(double distance)
                             throws java.io.IOException,
                                    DeviceException
        Description copied from interface: ProbeStation
        Write z axis locking distance
        Specified by:
        setLockDistance in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getLockDistance

        public double getLockDistance()
                               throws java.io.IOException
        Description copied from interface: ProbeStation
        Returns the z axis locking distance
        Specified by:
        getLockDistance in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error
      • getStatus

        public Pegasus.Status getStatus()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setLocked

        public void setLocked​(boolean locked)
                       throws java.io.IOException,
                              DeviceException
        Description copied from interface: ProbeStation
        Write: 1 = locked position (up). 2 = not locked (down)
        Specified by:
        setLocked in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • isLocked

        public boolean isLocked()
                         throws java.io.IOException
        Description copied from interface: ProbeStation
        Returns if in locked position (1) or not (0)
        Specified by:
        isLocked in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error
      • setLightOn

        public void setLightOn​(boolean lightOn)
                        throws java.io.IOException,
                               DeviceException
        Description copied from interface: ProbeStation
        Switches Light on (1) or off (2)
        Specified by:
        setLightOn in interface ProbeStation
        Parameters:
        lightOn - 1: light on; 0: light off
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon incompatibility with device
      • getLightOn

        public boolean getLightOn()
                           throws java.io.IOException
        Description copied from interface: ProbeStation
        Returns if light is on or not
        Specified by:
        getLightOn in interface ProbeStation
        Throws:
        java.io.IOException - Upon communications error