Public Member Functions | |
ControlPort (Socket socket) throws UnknownHostException, IOException | |
Constructor - get reader/writer from socket. | |
String[] | getChannels () throws IOException |
Routine to query and parse the list of DAQ channels. | |
void | subscribe (String channel) throws IOException |
Subscribe to a DAQ channel. | |
void | unsubscribe (String channel) throws IOException |
Unsubscribe from a previously subscribed DAQ channel. |
This class presents a DAQ control port with support to get the DAQ channel list. One uses this to connect to the controller, get the list of availabe channels, and subscribe or unsubscribe to a specific channel, by name. THe data for the subscribed channels is delivered on a seperate socket (see DaqToRbnb)
Definition at line 28 of file ControlPort.java.
|
Constructor - get reader/writer from socket.
Definition at line 38 of file ControlPort.java. |
|
Routine to query and parse the list of DAQ channels.
Definition at line 53 of file ControlPort.java. |
|
Subscribe to a DAQ channel. This method turns on the data flow from the specified DAQ channel. If the connection (to a socket) was not made, if the connection failes, if the attempt to write to the socket fails, or if the channel is not available, then an IOException will be thrown.
Definition at line 149 of file ControlPort.java. References org.nees.daq.ControlPort.subscribe(). Referenced by org.nees.daq.ControlPort.subscribe(). |
|
Unsubscribe from a previously subscribed DAQ channel. This method turns off data flow from the specified DAQ channel. If the connection (to a socket) was not made, if the connection failes, if the attempt to write to the socket fails, or if the channel is not available, then an IOException will be thrown.
Definition at line 166 of file ControlPort.java. References org.nees.daq.ControlPort.unsubscribe(). Referenced by org.nees.daq.ControlPort.unsubscribe(). |