public class AnalogOutput extends java.lang.Object implements HardwareDevice
| Constructor and Description |
|---|
AnalogOutput(AnalogOutputController controller,
int channel)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Device Name
|
int |
getVersion()
Version
|
void |
setAnalogOutputFrequency(int freq)
Sets the channel output frequency in the range 1-5,000 Hz in mode 1, 2 or 3.
|
void |
setAnalogOutputMode(byte mode)
Sets the channel operating mode.
|
void |
setAnalogOutputVoltage(int voltage)
Sets the channel output voltage.
|
public AnalogOutput(AnalogOutputController controller, int channel)
controller - AnalogOutput controller this channel is attached tochannel - channel on the analog output controllerpublic void setAnalogOutputVoltage(int voltage)
voltage - voltage value in the correct range.public void setAnalogOutputFrequency(int freq)
freq - output frequency in the range1-5,000Hzpublic void setAnalogOutputMode(byte mode)
mode - voltage, sine, square, or trianglepublic java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicepublic java.lang.String getConnectionInfo()
HardwareDevicegetConnectionInfo in interface HardwareDevicepublic int getVersion()
HardwareDevicegetVersion in interface HardwareDevicepublic void close()
HardwareDeviceclose in interface HardwareDevice