public class NetFTSensorGroup
extends java.lang.Object
| Constructor and Description |
|---|
NetFTSensorGroup(java.net.InetAddress[] setAddress)
creates new Net F/T group representation.
|
| Modifier and Type | Method and Description |
|---|---|
NetFTRDTPacket |
getNetFTRDTPacketFromDatagramPacket(java.net.DatagramPacket NetFTRDTDataPacket)
Get the user-friendly NetFTRDTPacket structure from the data received
off the network.
|
static java.lang.String |
getVersion()
Get the version of the Net F/T interface.
|
java.net.DatagramPacket |
readHighSpeedData(java.net.DatagramSocket cNetFTSocket)
Read high speed data from the Net F/T sensor group.
|
java.net.DatagramSocket |
startHighSpeedDataCollection()
Start interrupt-driven (high-speed) data collection from Net F/T
sensor.
|
void |
stopDataCollection()
Stop the Net F/T group from outputting any more RDT samples.
|
void |
tare(int sensorNumber)
Tares the current load of a specific sensor.
|
public NetFTSensorGroup(java.net.InetAddress[] setAddress)
throws java.net.UnknownHostException
setAddress - the addresses of the Net F/T sensorsUnkownHostException - If setAddress contains an
unknown host.java.net.UnknownHostExceptionpublic java.net.DatagramSocket startHighSpeedDataCollection()
throws java.net.SocketException,
java.io.IOException
java.net.SocketException - A SocketException is thrown if there is
a problem setting up the socket that is returned.java.io.IOException - An IOException is thrown if there is a
problem sending the start command to any of the Net F/Ts.public void tare(int sensorNumber)
throws java.net.SocketException,
java.io.IOException
sensorNumer: - indicates the sensor to receive the Tare
operation. This is the index to the list of Net F/T IP addresses.java.net.SocketException - A SocketException is thrown if there is
trouble setting up the socket to send the tare command.java.io.IOException - An IOException is thrown if there is
trouble communicating with the sensor.public java.net.DatagramPacket readHighSpeedData(java.net.DatagramSocket cNetFTSocket)
throws java.io.IOException
cNetFTSocket - The socket returned from
startHighSpeedDataCollection.java.io.IOException - An IOException will be thrown if there is an
error reading data from a Net F/T.public void stopDataCollection()
throws java.io.IOException
java.io.IOException - An IOException will be thrown if there is an
error sending the stop command to the Net F/T.public NetFTRDTPacket getNetFTRDTPacketFromDatagramPacket(java.net.DatagramPacket NetFTRDTDataPacket)
NetFTRDTDataPacket - The DatagramPacket received from the Net
F/T sensor.public static java.lang.String getVersion()