Package gda.epics

Class CAClient

All Implemented Interfaces:
Epics, Configurable, Findable, gov.aps.jca.event.ConnectionListener, gov.aps.jca.event.MonitorListener, EventListener

public class CAClient extends EpicsBase implements gov.aps.jca.event.MonitorListener, gov.aps.jca.event.ConnectionListener
The scripting interface between Jython and EPICS. CAClient provides client-side implementation of caget(), caput(), and camonitor() for accessing EPICS PVs directly from Jython scripts or Jython Terminal.
  • Field Summary

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
    Constructor that initialises a PV name.
    CAClient(String... pvs)
    Constructor that initialises a list of PV names.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adding this object as the default monitor Listener to the specified PV.
    void
    addMonitorListener(String pv, gov.aps.jca.event.MonitorListener ml)
    adding a specified CA monitor listener to the PV specified, users need to specify a proper monitor handler that implement MonitorChanged(MonitorEvent ev) method.
    Gets the value from EPICS Server.
    gov.aps.jca.dbr.DBR
     
    Gets the value of the specified PV.
    caget(String... pvs)
    Gets values of a list of PVs from EPICS servers.
    Gets the values from EPICS servers.
     
     
    byte[]
     
    byte[]
    cagetArrayByte(int numberOfElements)
     
    double[]
     
    double[]
    cagetArrayDouble(int numberOfElements)
     
    float[]
    cagetArrayFloat(int numberOfElements)
     
    int[]
     
    int[]
    cagetArrayInt(int numberOfElements)
     
    int[]
     
    int[]
    cagetArrayUnsigned(int numberOfElements)
     
    Returns available positions from an Enum typed PV as String array
    double
     
    int
     
     
     
    gov.aps.jca.Monitor
    start the default CA monitor to this Channel, the default behaviour is the monitor prints PV name and value to Jython Terminal.
    gov.aps.jca.Monitor
    camonitor(gov.aps.jca.event.MonitorListener ml)
    adding a specified CA monitor to this Channel, users need to specify a proper monitor handler that implement MonitorChanged(MonitorEvent ev) method.
    gov.aps.jca.Monitor
    camonitor(gov.aps.jca.event.MonitorListener ml, int count)
     
    gov.aps.jca.Monitor
    Deprecated.
    This is not a realisable way to add a MonitorListener to a channel as it does not wait for channel connection callback before added monitor listener.
    gov.aps.jca.Monitor
    camonitor(String pv, gov.aps.jca.event.MonitorListener ml)
    Deprecated.
    This is not a realisable way to add a MonitorListener to a channel as it does not wait for channel connection callback before added monitor listener.
    void
    caput(byte value)
    Sets the value to the PV on EPICS server.
    void
    caput(byte[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(byte[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(byte value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(double value)
    Sets the value to the PV on EPICS server.
    void
    caput(double[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(double[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(double timeoutinsecond, byte value)
    Sets the value to the PV on EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, byte[] values)
    Sets the values to the corresponding PVs in EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, double value)
    Sets the value to the PV on EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, double[] values)
    Sets the values to the corresponding PVs in EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, float value)
    Sets the value to the PV on EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, float[] values)
    Sets the values to the corresponding PVs in EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, int value)
    Sets the value to the PV on EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, int[] values)
    Sets the values to the corresponding PVs in EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, short value)
    Sets the value to the PV on EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, short[] values)
    Sets the values to the corresponding PVs in EPICS server and wait for callback.
    void
    caput(double value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(double timeoutinsecond, String value)
    Sets the value to the PV in EPICS server and wait for callback.
    void
    caput(double timeoutinsecond, String[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(float value)
    Sets the value to the PV on EPICS server.
    void
    caput(float[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(float[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(float value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(int value)
    Sets the value to the PV on EPICS server.
    void
    caput(int[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(int[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(int value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(short value)
    Sets the value to the PV on EPICS server.
    void
    caput(short[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(short[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(short value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(String value)
    Sets the value to the PV in EPICS server.
    void
    caput(String[] values)
    Sets the values to the corresponding PVs in EPICS server.
    void
    caput(String[] pvs, byte[] values)
    Sets a list of values to the specified list of PVs, respectively.
    void
    caput(String[] pvs, double[] values)
    Sets a list of values to the specified list of PVs, respectively.
    void
    caput(String[] pvs, double[] values, double timeoutinsecond)
    Sets a list of values to the specified list of PVs, respectively and wait for callback.
    void
    caput(String[] pvs, double[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(String[] pvs, String[] values)
    Sets a list of values to the specified list of PVs, respectively.
    void
    caput(String[] pvs, String[] values, double timeoutinsecond)
    Sets a list of values to the specified list of PVs, respectively and wait for callback.
    void
    caput(String[] pvs, String[] values, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String pv, byte[] value)
    Sets the value of the PV.
    void
    caput(String pv, byte[] value, gov.aps.jca.event.PutListener lstnr)
    Sets the value of the PV.
    void
    caput(String pv, double value)
    Sets the value of the specified PV.
    void
    caput(String pv, double[] value)
    Sets the value of the PV.
    void
    caput(String pv, double[] value, gov.aps.jca.event.PutListener lstnr)
    Sets the value of the PV.
    void
    caput(String pv, double value, boolean wait)
     
    void
    caput(String pv, double value, boolean wait, double timeoutinsecond)
     
    void
    caput(String pv, double value, double timeoutinsecond)
    Sets the value of the specified PV.
    void
    caput(String pv, double value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String pv, float value)
    Sets the value of the specified PV.
    void
    caput(String pv, float[] value)
    Sets the value of the PV.
    void
    caput(String pv, float[] value, gov.aps.jca.event.PutListener lstnr)
    Sets the value of the PV.
    void
    caput(String pv, float value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String pv, int value)
    Sets the value of the specified PV.
    void
    caput(String pv, int[] value)
    Sets the value of the PV.
    void
    caput(String pv, int[] value, gov.aps.jca.event.PutListener lstnr)
    Sets the value of the PV.
    void
    caput(String pv, int value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String pv, short value)
    Sets the value of the specified PV.
    void
    caput(String pv, short[] value)
    Sets the value of the PV.
    void
    caput(String pv, short[] value, gov.aps.jca.event.PutListener lstnr)
    Sets the value of the PV.
    void
    caput(String pv, short value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput(String value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput(String pv, String value)
    Sets the value of the PV.
    void
    caput(String pv, String value, double timeoutinsecond)
    Sets the value of the PV and wait for callback.
    void
    caput(String pv, String value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
    void
    caput a string value as waveform to the corresponding PVs in EPICS server.
    void
    caputStringAsWaveform(String value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets a string as waveform to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caput a string value as waveform to the corresponding PVs in EPICS server.
    void
    caputStringAsWaveform(String pv, String value, gov.aps.jca.event.PutListener lstnr)
    Asynchronously sets a string as waveform to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
    void
    caputWait(byte[] values)
    Sets the values to the corresponding PVs in EPICS server, and wait for return or timeout.
    void
    caputWait(double value)
     
    void
    caputWait(int value)
     
    void
    Clear the CA channels and reclaim the resources.
    void
    configure the channel access for EPICS PV or PVs.
    void
    connectionChanged(gov.aps.jca.event.ConnectionEvent arg0)
     
    static String
    get(String pv)
     
    gov.aps.jca.Channel
    Gets the channel of this client
    gov.aps.jca.Channel[]
    Gets the channels of this client
    Gets the EpicsController of this client
    static gov.aps.jca.dbr.DBR
     
    int
     
    int
     
    void
    monitorChanged(gov.aps.jca.event.MonitorEvent arg0)
    This is the default Monitor handler that simply print the PV name and value on the JythonTerminal.
    static void
    put(String pv, Double value)
     
    static void
    put(String pv, Integer value)
     
    static void
    put(String pv, String value)
     
    static void
     
    void
    removeMonitor(gov.aps.jca.Monitor m)
    Remove a monitor from this channel
    static String
    value2String(gov.aps.jca.dbr.DBR dbr)
    Converts a DBR object from a MonitorEvent to a string

    Methods inherited from class gda.factory.ConfigurableBase

    isConfigureAtStartup, isConfigured, reconfigure, setConfigured

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface gda.factory.Configurable

    isConfigureAtStartup, isConfigured, reconfigure
  • Constructor Details

    • CAClient

      public CAClient()
      Constructor
    • CAClient

      public CAClient(String pv)
      Constructor that initialises a PV name.
      Parameters:
      pv -
    • CAClient

      public CAClient(String... pvs)
      Constructor that initialises a list of PV names.
      Parameters:
      pvs -
  • Method Details

    • value2String

      public static String value2String(gov.aps.jca.dbr.DBR dbr)
      Converts a DBR object from a MonitorEvent to a string
      Parameters:
      dbr -
      Returns:
      string
    • getController

      public EpicsController getController()
      Gets the EpicsController of this client
      Returns:
      the Epics controller
    • getChannel

      public gov.aps.jca.Channel getChannel()
      Gets the channel of this client
      Returns:
      the Epics channel
    • getChannels

      public gov.aps.jca.Channel[] getChannels()
      Gets the channels of this client
      Returns:
      the Epics channels
    • caget

      public String caget(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Gets the value of the specified PV.
      Parameters:
      pv - the EPICS PV name
      Returns:
      the value of the PV in String format
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getElementCount

      public int getElementCount(String pv) throws gov.aps.jca.CAException
      Parameters:
      pv - the EPICS PV name
      Returns:
      Element Count
      Throws:
      gov.aps.jca.CAException
    • cagetWithTimeStamp

      public String[] cagetWithTimeStamp(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      pv -
      Returns:
      String[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • get

      public static String get(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • getDBR

      public static gov.aps.jca.dbr.DBR getDBR(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • put

      public static void put(String pv, String value) throws gov.aps.jca.CAException, InterruptedException, FactoryException
      Throws:
      gov.aps.jca.CAException
      InterruptedException
      FactoryException
    • putStringAsWaveform

      public static void putStringAsWaveform(String pv, String value) throws gov.aps.jca.CAException, InterruptedException, FactoryException
      Throws:
      gov.aps.jca.CAException
      InterruptedException
      FactoryException
    • put

      public static void put(String pv, Double value) throws gov.aps.jca.CAException, InterruptedException, FactoryException
      Throws:
      gov.aps.jca.CAException
      InterruptedException
      FactoryException
    • put

      public static void put(String pv, Integer value) throws gov.aps.jca.CAException, InterruptedException, FactoryException
      Throws:
      gov.aps.jca.CAException
      InterruptedException
      FactoryException
    • caget

      public String[] caget(String... pvs) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Gets values of a list of PVs from EPICS servers.
      Parameters:
      pvs - the list of PVs
      Returns:
      the values of these PVs
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArray

      public String[] cagetArray(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      pv -
      Returns:
      String[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • camonitor

      @Deprecated(since="GDA 9.6") public gov.aps.jca.Monitor camonitor(String pv, gov.aps.jca.event.MonitorListener ml) throws gov.aps.jca.CAException, InterruptedException
      Deprecated.
      This is not a realisable way to add a MonitorListener to a channel as it does not wait for channel connection callback before added monitor listener. Use addMonitorListener(String, MonitorListener) instead. Note Monitor is not the same as MonitorListener. Monitor is just a client side object storing monitored info and give access to instances of MonitorListener attached to a channel.
      adding a specified CA monitor listener to the PV specified, users need to specify a proper monitor handler that implement MonitorChanged(MonitorEvent ev) method. This only works when a channel is already created in GDA, i.e. in channel cache.
      Parameters:
      ml -
      Returns:
      Monitor
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • camonitor

      @Deprecated(since="GDA 9.6") public gov.aps.jca.Monitor camonitor(String pv) throws gov.aps.jca.CAException, InterruptedException
      Deprecated.
      This is not a realisable way to add a MonitorListener to a channel as it does not wait for channel connection callback before added monitor listener. Use addMonitorListener(String) instead.
      start the default CA monitor Listener to this PV, the default behaviour is the monitor prints PV name and value to Jython Terminal. This only works when a channel is already created in GDA, i.e. in channel cache.
      Returns:
      Monitor
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • addMonitorListener

      public void addMonitorListener(String pv, gov.aps.jca.event.MonitorListener ml) throws gov.aps.jca.CAException
      adding a specified CA monitor listener to the PV specified, users need to specify a proper monitor handler that implement MonitorChanged(MonitorEvent ev) method. MonitorListener is added on channel connection callback.
      Parameters:
      ml -
      Throws:
      gov.aps.jca.CAException
    • addMonitorListener

      public void addMonitorListener(String pv) throws gov.aps.jca.CAException
      Adding this object as the default monitor Listener to the specified PV. The default behaviour is the monitor prints PV name and value to Jython Terminal. This MonitorListener is added on channel connection callback.
      Throws:
      gov.aps.jca.CAException
    • caput

      public void caput(String pv, int value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the specified PV.
      Parameters:
      pv - the PV name
      value - the value of this PV
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, short value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the specified PV.
      Parameters:
      pv - the PV name
      value - the value of this PV
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, float value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the specified PV.
      Parameters:
      pv - the PV name
      value - the value of this PV
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, double value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the specified PV.
      Parameters:
      pv - the PV name
      value - the value of this PV
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, String value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, byte[] value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, int[] value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, short[] value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, float[] value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, double[] value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, byte[] value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, int[] value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, short[] value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, float[] value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, double[] value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value of the PV.
      Parameters:
      pv - the PV name
      value - the value
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] pvs, double[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets a list of values to the specified list of PVs, respectively.
      Parameters:
      pvs - this list of PVs
      values - the list of values
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] pvs, byte[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets a list of values to the specified list of PVs, respectively.
      Parameters:
      pvs - this list of PVs
      values - the list of values
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] pvs, String[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets a list of values to the specified list of PVs, respectively.
      Parameters:
      pvs - this list of PVs
      values - the list of values
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, double value, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value of the specified PV.
      Parameters:
      pv - the PV name
      value - the value of this PV
      timeoutinsecond -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String pv, int value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pv - the PV name
      value - the value of this PV
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, float value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pv - the PV name
      value - the value of this PV
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, short value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pv - the PV name
      value - the value of this PV
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, double value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pv - the PV name
      value - the value of this PV
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String pv, String value, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value of the PV and wait for callback.
      Parameters:
      pv - the PV name
      value - the value
      timeoutinsecond -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String pv, double value, boolean wait) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String pv, double value, boolean wait, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String pv, String value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pv - the PV name
      value - the value of this PV
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] pvs, double[] values, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets a list of values to the specified list of PVs, respectively and wait for callback.
      Parameters:
      pvs - this list of PVs
      values - the list of values
      timeoutinsecond -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String[] pvs, double[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pvs - the PV name array
      values - the value array of these corresponding PVs
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] pvs, String[] values, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets a list of values to the specified list of PVs, respectively and wait for callback.
      Parameters:
      pvs - this list of PVs
      values - the list of values
      timeoutinsecond -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String[] pvs, String[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value of the specified PV with put call back listener, this listener must implemenets putCompleted(PutEvent pe) method to handle the call-back.
      Parameters:
      pvs - the PV name array
      values - the value array of these corresponding PVs
      lstnr - the put listener
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputStringAsWaveform

      public void caputStringAsWaveform(String pv, String value) throws gov.aps.jca.CAException, InterruptedException
      caput a string value as waveform to the corresponding PVs in EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputStringAsWaveform

      public void caputStringAsWaveform(String pv, String value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets a string as waveform to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value - the input string value
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • configure

      public void configure() throws FactoryException
      configure the channel access for EPICS PV or PVs. This method must be called before caget() or caput().
      Specified by:
      configure in interface Configurable
      Overrides:
      configure in class ConfigurableBase
      Throws:
      FactoryException
    • camonitor

      public gov.aps.jca.Monitor camonitor(gov.aps.jca.event.MonitorListener ml) throws gov.aps.jca.CAException, InterruptedException
      adding a specified CA monitor to this Channel, users need to specify a proper monitor handler that implement MonitorChanged(MonitorEvent ev) method.
      Parameters:
      ml -
      Returns:
      Monitor
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • camonitor

      public gov.aps.jca.Monitor camonitor(gov.aps.jca.event.MonitorListener ml, int count) throws gov.aps.jca.CAException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • camonitor

      public gov.aps.jca.Monitor camonitor() throws gov.aps.jca.CAException, InterruptedException
      start the default CA monitor to this Channel, the default behaviour is the monitor prints PV name and value to Jython Terminal.
      Returns:
      Monitor
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • removeMonitor

      public void removeMonitor(gov.aps.jca.Monitor m)
      Remove a monitor from this channel
      Parameters:
      m -
    • caget

      public String caget() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Gets the value from EPICS Server.
      Returns:
      the value
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caget

      public gov.aps.jca.dbr.DBR caget(EpicsController.MonitorType rtype) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      rtype -
      Returns:
      DBR
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetWithTimeStamp

      public String[] cagetWithTimeStamp() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      String[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArray

      public String[] cagetArray() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      String[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayDouble

      public double[] cagetArrayDouble() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      double[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayUnsigned

      public int[] cagetArrayUnsigned(int numberOfElements) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      numberOfElements -
      Returns:
      int[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayUnsigned

      public int[] cagetArrayUnsigned() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      int[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayByte

      public byte[] cagetArrayByte(int numberOfElements) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      numberOfElements -
      Returns:
      byte[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayByte

      public byte[] cagetArrayByte() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      byte[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayInt

      public int[] cagetArrayInt(int numberOfElements) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      numberOfElements -
      Returns:
      int[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayInt

      public int[] cagetArrayInt() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      int[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayDouble

      public double[] cagetArrayDouble(int numberOfElements) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      numberOfElements -
      Returns:
      double[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetArrayFloat

      public float[] cagetArrayFloat(int numberOfElements) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Parameters:
      numberOfElements -
      Returns:
      double[]
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetMax

      public double cagetMax() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      double
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetPeakPosition

      public int cagetPeakPosition() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Returns:
      int
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetAllChannels

      public String[] cagetAllChannels() throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Gets the values from EPICS servers.
      Returns:
      the value array
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • cagetLabels

      public String[] cagetLabels() throws gov.aps.jca.TimeoutException, gov.aps.jca.CAException, InterruptedException
      Returns available positions from an Enum typed PV as String array
      Returns:
      all available positions
      Throws:
      gov.aps.jca.TimeoutException
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV on EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(int value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV on EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputWait

      public void caputWait(int value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(short value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV on EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(float value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV on EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputWait

      public void caputWait(double value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(byte value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV on EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String value) throws gov.aps.jca.CAException, InterruptedException
      Sets the value to the PV in EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(int[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(short[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(float[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(byte[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputWait

      public void caputWait(byte[] values) throws gov.aps.jca.CAException, InterruptedException, gov.aps.jca.TimeoutException
      Sets the values to the corresponding PVs in EPICS server, and wait for return or timeout.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
      gov.aps.jca.TimeoutException
    • caput

      public void caput(double[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(String[] values) throws gov.aps.jca.CAException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      values -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, double value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV on EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(double value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, int value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV on EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(int value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, short value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV on EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(short value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, byte value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV on EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(byte value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, float value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV on EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(float value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, String value) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the value to the PV in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      value -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value -
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, double[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(double[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, int[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(int[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, short[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(short[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, float[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(float[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, byte[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server and wait for callback.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(byte[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caput

      public void caput(double timeoutinsecond, String[] values) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException
      Sets the values to the corresponding PVs in EPICS server.
      Parameters:
      timeoutinsecond -
      values -
      Throws:
      gov.aps.jca.CAException
      gov.aps.jca.TimeoutException
      InterruptedException
    • caput

      public void caput(String[] values, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets the value to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      values - array
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputStringAsWaveform

      public void caputStringAsWaveform(String value) throws gov.aps.jca.CAException, InterruptedException
      caput a string value as waveform to the corresponding PVs in EPICS server.
      Parameters:
      value -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • caputStringAsWaveform

      public void caputStringAsWaveform(String value, gov.aps.jca.event.PutListener lstnr) throws gov.aps.jca.CAException, InterruptedException
      Asynchronously sets a string as waveform to the PV on EPICS server with a put callback listener, which must implements the putCompleted(PutEvent pe) method to handle the callback.
      Parameters:
      value - the input string value
      lstnr -
      Throws:
      gov.aps.jca.CAException
      InterruptedException
    • clearup

      public void clearup()
      Clear the CA channels and reclaim the resources.
    • getElementCount

      public int getElementCount()
      Returns:
      Element Count
    • monitorChanged

      public void monitorChanged(gov.aps.jca.event.MonitorEvent arg0)
      This is the default Monitor handler that simply print the PV name and value on the JythonTerminal.
      Specified by:
      monitorChanged in interface gov.aps.jca.event.MonitorListener
      See Also:
      • MonitorListener.monitorChanged(gov.aps.jca.event.MonitorEvent)
    • connectionChanged

      public void connectionChanged(gov.aps.jca.event.ConnectionEvent arg0)
      Specified by:
      connectionChanged in interface gov.aps.jca.event.ConnectionListener