|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ionetrics.lib.annotatorcomm.AnnotatorComm
com.ionetrics.lib.annotatorcomm.annotatori.AnnotatorI
public class AnnotatorI
AnnotatorI Communication, Command, and Control over RS232
Field Summary |
---|
Fields inherited from class com.ionetrics.lib.annotatorcomm.AnnotatorComm |
---|
ETX, MAX_NAME_LEN, STX |
Constructor Summary | |
---|---|
AnnotatorI(javax.comm.SerialPort serialPort)
Construct an AnnotatorI from an already open RS232 port. |
|
AnnotatorI(java.lang.String $ComPort)
Construct an AnnotatorI from a named RS232 port. |
Method Summary | |
---|---|
void |
close()
Close the RS232 port and associated I/O stream. |
FirmwareVersion |
getFpgaFirmwareVersion()
Get the FPGA firmware version. |
PreampGainLevel |
getPreampGainLevel(Channel channel)
Get the preamp gain level. |
PreampGainMode |
getPreampGainMode(Channel channel)
Get the preamp gain mode. |
TimestampTriggerMode |
getTimestampTriggerMode()
Get the timestamp trigger mode. |
static javax.comm.SerialPort |
openSerialPort(java.lang.String $ComPort)
Open a RS232 port appropriate for a libAnnotatorRS232Comm connection with the library name as the owner. |
static javax.comm.SerialPort |
openSerialPort(java.lang.String $ComPort,
java.lang.String $PortOwnerName)
Open a SerialPort appropriate for a libAnnotatorRS232Comm connection. |
void |
resetFpga()
Reset the FPGA. |
void |
resetFts()
Reset the FTS controller. |
void |
resetScanCount()
Reset the scan counter to zero. |
void |
setPreampGainLevel(Channel channel,
PreampGainLevel level)
Set the preamp gain level. |
void |
setPreampGainMode(Channel channel,
PreampGainMode mode)
Set the preamp gain mode. |
void |
setTimestampTriggerMode(TimestampTriggerMode mode)
Set the timestamp trigger mode. |
protected void |
signal(ResponseMessage rspmsg)
Signal that a response message has been read and needs tending. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotatorI(java.lang.String $ComPort) throws java.io.IOException
$ComPort
- RS232 port name
java.io.IOException
- failure to open portpublic AnnotatorI(javax.comm.SerialPort serialPort) throws java.io.IOException
serialPort
- RS232 port
java.io.IOException
- RS232 failureMethod Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class AnnotatorComm
java.io.IOException
- failure to closeprotected void signal(ResponseMessage rspmsg)
signal
in class AnnotatorComm
rspmsg
- new response messagepublic FirmwareVersion getFpgaFirmwareVersion() throws java.io.IOException
java.io.IOException
- failure to get the FPGA firmware versionpublic void resetFpga() throws java.io.IOException
java.io.IOException
- failure to reset the FPGApublic void resetFts() throws java.io.IOException
java.io.IOException
- failure to reset the FTS controllerpublic void resetScanCount() throws java.io.IOException
java.io.IOException
- failure to reset scan counterpublic PreampGainMode getPreampGainMode(Channel channel) throws java.io.IOException
channel
- detector channel
java.io.IOException
- failure to get the gain modePreampGainMode
,
getPreampGainLevel(Channel)
public void setPreampGainMode(Channel channel, PreampGainMode mode) throws java.io.IOException
channel
- detector channelmode
- gain mode
java.io.IOException
- failure to set the gain modePreampGainMode
,
setPreampGainLevel(Channel, PreampGainLevel)
public PreampGainLevel getPreampGainLevel(Channel channel) throws java.io.IOException
channel
- detector channel
java.io.IOException
- failure to get gain levelPreampGainLevel
,
getPreampGainMode(Channel)
public void setPreampGainLevel(Channel channel, PreampGainLevel level) throws java.io.IOException
channel
- detector channellevel
- gain level
java.io.IOException
- failure to set gain levelPreampGainLevel
,
setPreampGainMode(Channel, PreampGainMode)
public TimestampTriggerMode getTimestampTriggerMode() throws java.io.IOException
java.io.IOException
- failure to get the trigger modepublic void setTimestampTriggerMode(TimestampTriggerMode mode) throws java.io.IOException
mode
- trigger mode
java.io.IOException
- failure to set the trigger modepublic static javax.comm.SerialPort openSerialPort(java.lang.String $ComPort) throws java.io.IOException
$ComPort
- RS232 port name
java.io.IOException
- failure to openpublic static javax.comm.SerialPort openSerialPort(java.lang.String $ComPort, java.lang.String $PortOwnerName) throws java.io.IOException
$ComPort
- RS232 port name$PortOwnerName
- RS232 port owner's name
java.io.IOException
- failure to open
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |