Class Psu722930

java.lang.Object
uk.ac.gda.devices.tenma.Psu722930
All Implemented Interfaces:
Findable, IPsu722930

public class Psu722930 extends Object implements IPsu722930, Findable
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Gets the current
    double
    Gets the step size used when gradually ramping the current
    Get the object name.
    double
    Gets the voltage
    boolean
    Indicates whether the output is currently on
    void
    Turns off the output
    void
    Turns on the output
    void
    rampCurrent(double startCurrent, double endCurrent, double rampTimeInSeconds)
    Gradually moves the current from one value to another
    void
    Gradually moves the current from its present value to zero over 60 seconds
    void
    rampToZero(double rampTimeInSeconds)
    Gradually moves the current from its present value to zero over the specified number of seconds
    void
    setCurrent(double current)
    Sets the current
    void
    setCurrentStepSize(double currentStepSize)
    Sets the step size used when gradually ramping the current
    void
    Set or change the name of the object (as defined in XML).
    void
    setVoltage(double voltage)
    Sets the voltage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getCurrentStepSize

      public double getCurrentStepSize()
      Description copied from interface: IPsu722930
      Gets the step size used when gradually ramping the current
      Specified by:
      getCurrentStepSize in interface IPsu722930
      Returns:
      The step size
    • setCurrentStepSize

      public void setCurrentStepSize(double currentStepSize)
      Description copied from interface: IPsu722930
      Sets the step size used when gradually ramping the current
      Specified by:
      setCurrentStepSize in interface IPsu722930
      Parameters:
      currentStepSize - The step size
    • getCurrent

      public double getCurrent() throws DeviceException
      Description copied from interface: IPsu722930
      Gets the current
      Specified by:
      getCurrent in interface IPsu722930
      Returns:
      The current
      Throws:
      DeviceException
    • setCurrent

      public void setCurrent(double current) throws DeviceException
      Description copied from interface: IPsu722930
      Sets the current
      Specified by:
      setCurrent in interface IPsu722930
      Parameters:
      current - The requested current
      Throws:
      DeviceException - If there is a problem communicating with the device
    • getVoltage

      public double getVoltage() throws DeviceException
      Description copied from interface: IPsu722930
      Gets the voltage
      Specified by:
      getVoltage in interface IPsu722930
      Returns:
      The voltage
      Throws:
      DeviceException - If there is a problem communicating with the device
    • setVoltage

      public void setVoltage(double voltage) throws DeviceException
      Description copied from interface: IPsu722930
      Sets the voltage
      Specified by:
      setVoltage in interface IPsu722930
      Parameters:
      voltage - The requested voltage
      Throws:
      DeviceException - If there is a problem communicating with the device
    • outputOn

      public void outputOn() throws DeviceException
      Description copied from interface: IPsu722930
      Turns on the output
      Specified by:
      outputOn in interface IPsu722930
      Throws:
      DeviceException - If there is a problem communicating with the device
    • outputOff

      public void outputOff() throws DeviceException
      Description copied from interface: IPsu722930
      Turns off the output
      Specified by:
      outputOff in interface IPsu722930
      Throws:
      DeviceException - If there is a problem communicating with the device
    • outputIsOn

      public boolean outputIsOn() throws DeviceException
      Description copied from interface: IPsu722930
      Indicates whether the output is currently on
      Specified by:
      outputIsOn in interface IPsu722930
      Returns:
      A boolean indicating if the output is on
      Throws:
      DeviceException
    • rampCurrent

      public void rampCurrent(double startCurrent, double endCurrent, double rampTimeInSeconds) throws DeviceException, InterruptedException
      Description copied from interface: IPsu722930
      Gradually moves the current from one value to another
      Specified by:
      rampCurrent in interface IPsu722930
      Parameters:
      startCurrent - The starting current
      endCurrent - The end current
      rampTimeInSeconds - The time it should take to get from startCurrent to endCurrent
      Throws:
      DeviceException - If there is a problem communicating with the device
      InterruptedException
    • rampToZero

      public void rampToZero(double rampTimeInSeconds) throws DeviceException, InterruptedException
      Description copied from interface: IPsu722930
      Gradually moves the current from its present value to zero over the specified number of seconds
      Specified by:
      rampToZero in interface IPsu722930
      Parameters:
      rampTimeInSeconds - The time in seconds it should take to reduce the current to zero
      Throws:
      DeviceException - If there is a problem communicating with the device
      InterruptedException
    • rampToZero

      public void rampToZero() throws DeviceException, InterruptedException
      Description copied from interface: IPsu722930
      Gradually moves the current from its present value to zero over 60 seconds
      Specified by:
      rampToZero in interface IPsu722930
      Throws:
      DeviceException - If there is a problem communicating with the device
      InterruptedException
    • setName

      public void setName(String name)
      Description copied from interface: Findable
      Set or change the name of the object (as defined in XML).
      Specified by:
      setName in interface Findable
      Parameters:
      name - the object name
    • getName

      public String getName()
      Description copied from interface: Findable
      Get the object name. Used by Castor to check if the object name has been set before calling the Findable.setName(String) method.
      Specified by:
      getName in interface Findable
      Returns:
      a String containing the object name.