|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charly.server.devices.ChRobby
This class needs the javax.comm- Java Extension.
Field Summary | |
(package private) static byte |
ETX
|
(package private) java.io.InputStream |
In
|
(package private) java.io.OutputStream |
Out
|
(package private) javax.comm.SerialPort |
Port
|
(package private) static int |
RcvTimeOutMSec
|
Constructor Summary | |
ChRobby()
installiert ChRobby an "COM1" |
|
ChRobby(javax.comm.CommPortIdentifier comPort)
|
|
ChRobby(javax.comm.SerialPort comPort)
|
|
ChRobby(java.lang.String comPort)
Diese Funktion erhält den Namen des Ports als Parameter, bspw. |
Method Summary | |
private void |
emptyInputStream()
|
byte[] |
getAxes()
|
int |
getAxisPos(int axisNr)
|
static void |
main(java.lang.String[] args)
|
void |
reset()
initializes ROB3. |
void |
setAxes(byte[] pos)
Setzt Position aller sechs Achsen |
void |
setAxes(int[] pos)
Setzt Position aller sechs Achsen |
void |
setAxisPos(int axisNr,
int pos)
Setzt Position der Achse axisNr |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
javax.comm.SerialPort Port
java.io.OutputStream Out
java.io.InputStream In
static final int RcvTimeOutMSec
static final byte ETX
Constructor Detail |
public ChRobby() throws javax.comm.PortInUseException, javax.comm.NoSuchPortException, java.io.IOException
public ChRobby(java.lang.String comPort) throws javax.comm.PortInUseException, javax.comm.NoSuchPortException, java.io.IOException
public ChRobby(javax.comm.CommPortIdentifier comPort) throws javax.comm.PortInUseException, java.io.IOException
public ChRobby(javax.comm.SerialPort comPort) throws java.io.IOException
Method Detail |
public static void main(java.lang.String[] args) throws java.io.IOException, javax.comm.NoSuchPortException, javax.comm.PortInUseException
java.io.IOException
javax.comm.NoSuchPortException
javax.comm.PortInUseException
public void reset() throws ChRobNotFoundException, java.io.IOException
ChRobNotFoundException
java.io.IOException
public void setAxisPos(int axisNr, int pos) throws java.io.IOException
axisNr
- Achsennummer (0-5)pos
- Neue Position (0-255)
java.io.IOException
public int getAxisPos(int axisNr) throws java.io.IOException
axisNr
- - Achsennummer (0-5)
java.io.IOException
public void setAxes(int[] pos) throws java.io.IOException
pos
- Neue Positionen: Array mit sechs Elementen mit Werten
zwischen 0 und 255
java.io.IOException
public void setAxes(byte[] pos) throws java.io.IOException
pos
- Neue Positionen: Array mit sechs Elementen mit Werten
zwischen 0 und 255
java.io.IOException
public byte[] getAxes() throws java.io.IOException
null
bei
Misserfolg bspw. bei Timeout
java.io.IOException
private void emptyInputStream() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |