Public Member Functions | |
AnalogPhidget () throws PhidgetException | |
native boolean | getEnabled (int index) throws PhidgetException |
native int | getOutputCount () throws PhidgetException |
native double | getVoltage (int index) throws PhidgetException |
native double | getVoltageMax (int index) throws PhidgetException |
native double | getVoltageMin (int index) throws PhidgetException |
native void | setEnabled (int index, boolean state) throws PhidgetException |
native void | setVoltage (int index, double current) throws PhidgetException |
Private Member Functions | |
final void | enableDeviceSpecificEvents (boolean b) |
Static Private Member Functions | |
static native long | create () throws PhidgetException |
This class represents a Phidget Analog. All methods to manipulate the Phidget Analog are implemented in this class. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.
Definition at line 19 of file AnalogPhidget.java.
com.phidgets.AnalogPhidget.AnalogPhidget | ( | ) | throws PhidgetException [inline] |
Definition at line 21 of file AnalogPhidget.java.
static native long com.phidgets.AnalogPhidget.create | ( | ) | throws PhidgetException [static, private] |
final void com.phidgets.AnalogPhidget.enableDeviceSpecificEvents | ( | boolean | b | ) | [inline, private] |
Reimplemented from com.phidgets.Phidget.
Definition at line 78 of file AnalogPhidget.java.
native boolean com.phidgets.AnalogPhidget.getEnabled | ( | int | index | ) | throws PhidgetException |
Returns the enabled state for an analog output. When enabled, the output drives at the set Voltage, up to 20mA. When disabled, the output is tied to ground via a 4K pull-down.
index | index of the analog output |
PhidgetException | If this Phidget is not opened and attached, or if the index is invalid. See open for information on determining if a device is attached. |
native int com.phidgets.AnalogPhidget.getOutputCount | ( | ) | throws PhidgetException |
Returns the number of analog outputs.
native double com.phidgets.AnalogPhidget.getVoltage | ( | int | index | ) | throws PhidgetException |
Returns the current voltage output setting for an analog output, in Volts. The range is between getVoltageMin and getVoltageMax.
index | index of the analog output |
PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. See open for information on determining if a device is attached. |
native double com.phidgets.AnalogPhidget.getVoltageMax | ( | int | index | ) | throws PhidgetException |
Gets the maximum supported voltage for an output, in Volts.
index | index of the analog output |
PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. See open for information on determining if a device is attached. |
native double com.phidgets.AnalogPhidget.getVoltageMin | ( | int | index | ) | throws PhidgetException |
Gets the minimum supported voltage for an output, in Volts.
index | index of the analog output |
PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. See open for information on determining if a device is attached. |
native void com.phidgets.AnalogPhidget.setEnabled | ( | int | index, |
boolean | state | ||
) | throws PhidgetException |
Sets the enabled state for a an analog output. When enabled, the output drives at the set Voltage, up to 20mA. When disabled, the output is tied to ground via a 4K pull-down.
index | index of the analog output |
state | new state of the analog output |
PhidgetException | If this Phidget is not opened and attached, or if the index is invalid. See open for information on determining if a device is attached. |
native void com.phidgets.AnalogPhidget.setVoltage | ( | int | index, |
double | current | ||
) | throws PhidgetException |
Sets the current voltage setting for an analog output, in Volts. The range is between getVoltageMin and getVoltageMax.
index | index of the analog output |
current | new voltage for an analog output, in Volts |
PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. See open for information on determining if a device is attached. |