|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phidgets.Phidget
com.phidgets.AnalogPhidget
This class represents a Phidget Analog. All methods to manipulate the Phidget Analog are implemented in this class.
Field Summary |
Constructor Summary | |
AnalogPhidget()
|
Method Summary | |
boolean |
getEnabled(int index)
Returns the enabled state for an analog output. |
int |
getOutputCount()
Returns the number of analog outputs. |
double |
getVoltage(int index)
Returns the current voltage output setting for an analog output, in Volts. |
double |
getVoltageMax(int index)
Gets the maximum supported voltage for an output, in Volts. |
double |
getVoltageMin(int index)
Gets the minimum supported voltage for an output, in Volts. |
void |
setEnabled(int index,
boolean state)
Sets the enabled state for a an analog output. |
void |
setVoltage(int index,
double current)
Sets the current voltage setting for an analog output, in Volts. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AnalogPhidget() throws PhidgetException
Method Detail |
public int getOutputCount() throws PhidgetException
PhidgetException
public double getVoltage(int index) throws PhidgetException
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.public void setVoltage(int index, double current) throws PhidgetException
getVoltageMin
and getVoltageMax
.
index
- index of the analog outputcurrent
- 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.public double getVoltageMin(int index) throws PhidgetException
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.public double getVoltageMax(int index) throws PhidgetException
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.public boolean getEnabled(int index) throws PhidgetException
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.public void setEnabled(int index, boolean state) throws PhidgetException
index
- index of the analog outputstate
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |