public class NetFTRDTCommand
extends java.lang.Object
| Constructor and Description |
|---|
NetFTRDTCommand()
Create a new NetFTRDTPacket with default field values.
|
NetFTRDTCommand(int command,
long count)
Create a new NetFTRDTCommand with specific field values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCommand()
get the mode of the RDT command
|
long |
getCount()
Get the number of RDT samples to output
|
int |
getHeader()
Gets the header of the RDT command packet
|
void |
setCommand(int newCommand)
sets the command mode of the rdt command
|
void |
setCount(long newCount)
Set the number of RDT packets to output
|
public NetFTRDTCommand()
public NetFTRDTCommand(int command,
long count)
command - The mode to set. 0 = stop, 1 = loop-driven output
(good for requesting single packets), 2 = interrupt-driven output
(good for requesting a lot of data at high speed)count - The number of samples to output. A value of 0 will
cause the Net F/T to output samples until it is sent another command
with the mode field set to 0 (stop mode). This value is sent to the
Net F/T as an unsigned four-byte integer, so the largest possible
value is 4294967296 ( 2 ^ 32 ).public int getHeader()
public void setCommand(int newCommand)
newCommand - the int command to set (1 = main-loop-driven,
2 = interrupt-driven, 0 = stop)public int getCommand()
public void setCount(long newCount)
newCount - the long number of RDT packets to output (0 =
infinite). Cannot be greater then largest unsigned four-byte
integer.public long getCount()