Class IPS120

    • Constructor Detail

      • IPS120

        public IPS120​(Address address)
               throws java.io.IOException,
                      DeviceException
        Opens the device at the specified address
        Parameters:
        address - Some form of InstrumentAddress (eg GPIBAddress, USBAddress etc)
        Throws:
        java.io.IOException - Upon communications error
        DeviceException
    • Method Detail

      • getDescription

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

        public double getField()
                        throws java.io.IOException
        Description copied from interface: EMController
        Returns the current field being produced by the electromagnet.
        Specified by:
        getField in interface EMController
        Returns:
        Field, in Tesla
        Throws:
        java.io.IOException - Upon communications error
      • setField

        public void setField​(double field)
                      throws java.io.IOException,
                             DeviceException,
                             java.lang.InterruptedException
        Description copied from interface: EMController
        Ramps the electromagnet to the specified field at automatically determined ramping rates. Does not return until ramping is complete.
        Specified by:
        setField in interface EMController
        Parameters:
        field - Field to ramp to, in Tesla
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
        java.lang.InterruptedException - Upon waiting for ramping to complete being interrupted
      • getActivity

        public IPS120.Activity getActivity()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • setActivity

        public void setActivity​(IPS120.Activity activity)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • turnOff

        public void turnOff()
                     throws java.io.IOException,
                            DeviceException,
                            java.lang.InterruptedException
        Description copied from interface: EMController
        Safely turns off the electromagnet. Does not return until magnet is safely off.
        Specified by:
        turnOff in interface EMController
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
        java.lang.InterruptedException - Upon waiting for ramping down to complete being interrupted
      • getRampRates

        public java.util.List<EMController.Ramp> getRampRates()
        Description copied from interface: EMController
        Returns the rates being used to determine the ramping legs of each change in current.
        Specified by:
        getRampRates in interface EMController
        Returns:
        List of ramp rates and ranges.
      • setRampRates

        public void setRampRates​(EMController.Ramp... rates)
        Description copied from interface: EMController
        Sets the rates at which the magnet should ramp for different current ranges.
        Specified by:
        setRampRates in interface EMController
        Parameters:
        rates - Ramp rates
      • getCurrent

        public double getCurrent()
                          throws java.io.IOException,
                                 DeviceException
        Description copied from interface: EMController
        Returns the current currently being sourced by the controller.
        Specified by:
        getCurrent in interface EMController
        Returns:
        Current, in Amperes
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
      • setCurrent

        public void setCurrent​(double current)
                        throws java.io.IOException,
                               DeviceException,
                               java.lang.InterruptedException
        Description copied from interface: EMController
        Ramps the electromagnet to the specified current at automatically determined ramping rates. Does not return until ramping is complete.
        Specified by:
        setCurrent in interface EMController
        Parameters:
        current - Current to ramp to, in Amperes
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon instrument error
        java.lang.InterruptedException - Upon waiting for ramping to complete being interrupted
      • setHeater

        public void setHeater​(boolean on)
                       throws java.io.IOException,
                              java.lang.InterruptedException,
                              DeviceException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
        DeviceException
      • getMagnetCurrent

        public double getMagnetCurrent()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getPersistentCurrent

        public double getPersistentCurrent()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • waitUntilStable

        public void waitUntilStable()
                             throws java.io.IOException,
                                    java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • isStable

        public boolean isStable()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • setMode

        public void setMode​(IPS120.Mode mode)
                     throws java.io.IOException
        Throws:
        java.io.IOException