|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The methods of this interface are usually called by
ChGpibClient
or
ChGpibUnit
.
Field Summary | |
static java.lang.String |
NAME
name is "GPIB" |
Method Summary | |
void |
checkSrq(java.lang.String taskID,
int dvcAddr,
ChClientGpib clientGpib)
This method asks the server to notify the specified client, when an SRQ on the specified device occured. |
byte[] |
enter(java.lang.String taskID,
int dvcAddr)
receives from a given device on the gpib-bus. |
byte[] |
enter(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix)
receives from a given device on the gpib-bus. |
void |
initialize(java.lang.String taskID,
int addr,
int level)
usually does not need to be called. |
int |
isGpibBoardPresent()
tests if gpibboard is present. |
int |
isListenerPresent(java.lang.String taskID,
int dvcAddr)
tests if listener with specified address is present. |
int |
isListenerPresent(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix)
tests if listener with specified address is present. |
int |
ppoll(java.lang.String taskID)
This function will be replaced by an event-listener-model. |
byte[] |
rarray(java.lang.String taskID)
receives binary and non-binary data from the gpib-bus. |
byte[] |
rarray(java.lang.String taskID,
int dvcAddr)
receives binary and non-binary data from a device of the gpib-bus. |
byte[] |
rarray(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix)
receives binary and non-binary data from a device of the gpib-bus. |
byte[] |
receive(java.lang.String taskID)
receives non-binary data from the gpib-bus. |
byte[] |
receive(java.lang.String taskID,
int dvcAddr)
receives non-binary data from a device of the gpib-bus. |
byte[] |
receive(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix)
receives non-binary data from a device of the gpib-bus. |
void |
send(java.lang.String taskID,
int dvcAddr,
byte[] data,
int length)
sends a specified string to a given device on the gpib-bus. |
void |
send(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix,
byte[] data,
int length)
sends a specified string to a given device on the gpib-bus. |
byte[] |
sendAndEnter(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix,
byte[] data,
int length)
sends a specified string to a device on the gpib-bus and enters the result from this device. |
void |
setTimeOut(java.lang.String taskID,
int msec)
sets timeout-time of the GPIB-Bus in msec. |
int |
spoll(java.lang.String taskID,
int dvcAddr)
This function will be replaced by an event-listener-model. |
int |
srq(java.lang.String taskID)
This function will be replaced by an event-listener-model. |
void |
tarray(java.lang.String taskID,
byte[] data,
int length,
byte eoi)
sends data to the gpib-bus. |
void |
tarray(java.lang.String taskID,
int dvcAddr,
byte[] data,
int length,
byte eoi)
sends data to a given device of the gpib-bus. |
void |
tarray(java.lang.String taskID,
int dvcAddr,
java.lang.String suffix,
byte[] data,
int length,
byte eoi)
sends data to a given device of the gpib-bus. |
void |
transmit(java.lang.String taskID,
byte[] data,
int length)
sends data to the gpib-bus. |
void |
uncheckSrq(java.lang.String taskID,
int dvcAddr,
ChClientGpib clientGpib)
This method tells the server to stop notifying the specified client, when an SRQ on the specified device occured. |
Methods inherited from interface charly.server.devices.ChDevice |
getName, setRsrcMgr |
Field Detail |
public static final java.lang.String NAME
ChDevice.getName()
,
Constant Field ValuesMethod Detail |
public void initialize(java.lang.String taskID, int addr, int level) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
ChGpib
. The resource "GPIB" must be reserved to call this method.
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
addr
- the device-nr, the present GPIB-Board should have as GPIB-address
(0-32)level
- 0 means the GPIB-board is controller of the GPIB-bus
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public void send(java.lang.String taskID, int dvcAddr, java.lang.String suffix, byte[] data, int length) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)suffix
- - e.g. "CHANNEL2"; can be null
data
- the bytes to be sentlength
- amount of bytes to be sent
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void send(java.lang.String taskID, int dvcAddr, byte[] data, int length) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)data
- the bytes to be sentlength
- amount of bytes to be sent
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] sendAndEnter(java.lang.String taskID, int dvcAddr, java.lang.String suffix, byte[] data, int length) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
send(String, int, String, byte[], int)
and
enter(String, int, String)
.
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the
gpib-bus (0-32)suffix
- - e.g. "CHANNEL2"; can be null
data
- the bytes to be sentlength
- amount of bytes to be sent
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] enter(java.lang.String taskID, int dvcAddr, java.lang.String suffix) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the
gpib-bus (0-32)suffix
- - e.g. "CHANNEL2"; can be null
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] enter(java.lang.String taskID, int dvcAddr) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void checkSrq(java.lang.String taskID, int dvcAddr, ChClientGpib clientGpib) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public void uncheckSrq(java.lang.String taskID, int dvcAddr, ChClientGpib clientGpib) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public int spoll(java.lang.String taskID, int dvcAddr) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
srq(String)
public int ppoll(java.lang.String taskID) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
srq(String)
public byte[] receive(java.lang.String taskID) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] receive(java.lang.String taskID, int dvcAddr, java.lang.String suffix) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus
(0-32)suffix
- - e.g. "CHANNEL2"; can be null
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] receive(java.lang.String taskID, int dvcAddr) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus * * (0-32)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void transmit(java.lang.String taskID, byte[] data, int length) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
data
- the bytes to be sentlength
- amount of bytes to be sent
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void tarray(java.lang.String taskID, byte[] data, int length, byte eoi) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
data
- the bytes to be sentlength
- amount of bytes to be senteoi
- EOI-Byte
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void tarray(java.lang.String taskID, int dvcAddr, java.lang.String suffix, byte[] data, int length, byte eoi) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
ChGpibClient.getResourceName(int)
has to be reserved
before calling this method.
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus
(0-32)suffix
- - e.g. "CHANNEL2"; can be null
data
- the bytes to be sentlength
- amount of bytes to be senteoi
- EOI-Byte
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public void tarray(java.lang.String taskID, int dvcAddr, byte[] data, int length, byte eoi) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
ChGpibClient.getResourceName(int)
has to be reserved
before calling this method.
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)data
- the bytes to be sentlength
- amount of bytes to be senteoi
- EOI-Byte
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] rarray(java.lang.String taskID) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] rarray(java.lang.String taskID, int dvcAddr, java.lang.String suffix) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus
(0-32)suffix
- - e.g. "CHANNEL2"; can be null
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public byte[] rarray(java.lang.String taskID, int dvcAddr) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException, ChGpibTimeOutException, ChGpibStateException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the receiving device on the gpib-bus (0-32)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
ChGpibTimeOutException
ChGpibStateException
public int srq(java.lang.String taskID) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
spoll(String, int)
,
ppoll(String)
public void setTimeOut(java.lang.String taskID, int msec) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public int isListenerPresent(java.lang.String taskID, int dvcAddr, java.lang.String suffix) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the checked device on the gpib-bus
(0-32)suffix
- - e.g. "CHANNEL2"; can be null
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public int isListenerPresent(java.lang.String taskID, int dvcAddr) throws java.rmi.RemoteException, ChTaskNotStartedException, ChAccessDeniedException
taskID
- is the string returned by ChRsrcManager.startTask(
ChClientTask, String, java.util.Set)
dvcAddr
- the device-nr of the checked device on the gpib-bus (0-32)
java.rmi.RemoteException
ChTaskNotStartedException
ChAccessDeniedException
public int isGpibBoardPresent() throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |