Package gda.epics
Class ChannalAccessCommands
java.lang.Object
gda.factory.ConfigurableBase
gda.epics.EpicsBase
gda.epics.ChannalAccessCommands
- All Implemented Interfaces:
Epics,Configurable,Findable,gov.aps.jca.event.ConnectionListener,gov.aps.jca.event.MonitorListener,EventListener
public class ChannalAccessCommands
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
Fields inherited from class gda.epics.EpicsBase
connectionCountRegister, epicsRecordName, epicsRecordNames, name, pvName, pvNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the specified PV.String[]cagetArray(String pv) gov.aps.jca.Monitorstart the default CA monitor Listener to this PV, the default behaviour is the monitor prints PV name and value to Jython Terminal.voidvoidvoidvoidvoidvoidvoidvoidvoidcaputStringAsWaveform(String pv, String value) caput a string value as waveform to the corresponding PVs in EPICS server.voidconnectionChanged(gov.aps.jca.event.ConnectionEvent arg0) gov.aps.jca.ChannelGets the channel of this clientgov.aps.jca.Channel[]Gets the channels of this clientGets the EpicsController of this clientvoidmonitorChanged(gov.aps.jca.event.MonitorEvent arg0) This is the default Monitor handler that simply print the PV name and value on the JythonTerminal.Methods inherited from class gda.epics.EpicsBase
getEpicsRecordName, getEpicsRecordNames, getName, getPvName, getPvNames, setEpicsRecordName, setEpicsRecordNames, setName, setPvName, setPvNamesMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigure
-
Constructor Details
-
ChannalAccessCommands
public ChannalAccessCommands()
-
-
Method Details
-
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.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
cagetArray
public String[] cagetArray(String pv) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Parameters:
pv-- Returns:
- String[]
- Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
camonitor
public gov.aps.jca.Monitor camonitor(String pv) throws gov.aps.jca.CAException, InterruptedException start the default CA monitor Listener to this PV, the default behaviour is the monitor prints PV name and value to Jython Terminal.- Returns:
- Monitor
- Throws:
gov.aps.jca.CAExceptionInterruptedException
-
caput
public void caput(String pv, int value, boolean wait) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
caput
public void caput(String pv, int value, boolean wait, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
caput
public void caput(String pv, double value, boolean wait) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
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.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
caput
public void caput(String pv, String value, boolean wait) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
caput
public void caput(String pv, String value, boolean wait, double timeoutinsecond) throws gov.aps.jca.CAException, gov.aps.jca.TimeoutException, InterruptedException - Throws:
gov.aps.jca.CAExceptiongov.aps.jca.TimeoutExceptionInterruptedException
-
caput
public void caput(String pv, String value, boolean wait, boolean charString) throws gov.aps.jca.CAException, InterruptedException, gov.aps.jca.TimeoutException - Throws:
gov.aps.jca.CAExceptionInterruptedExceptiongov.aps.jca.TimeoutException
-
caput
public void caput(String pv, int[] value, boolean wait) throws gov.aps.jca.CAException, InterruptedException, gov.aps.jca.TimeoutException - Throws:
gov.aps.jca.CAExceptionInterruptedExceptiongov.aps.jca.TimeoutException
-
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.CAExceptionInterruptedException
-
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:
monitorChangedin interfacegov.aps.jca.event.MonitorListener- See Also:
-
connectionChanged
public void connectionChanged(gov.aps.jca.event.ConnectionEvent arg0) - Specified by:
connectionChangedin interfacegov.aps.jca.event.ConnectionListener
-