Public Member Functions | Private Member Functions | Static Private Member Functions
com.phidgets.AnalogPhidget Class Reference
Inheritance diagram for com.phidgets.AnalogPhidget:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
Phidgets Inc.

Definition at line 19 of file AnalogPhidget.java.


Constructor & Destructor Documentation

Definition at line 21 of file AnalogPhidget.java.


Member Function Documentation

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.

Parameters:
indexindex of the analog output
Returns:
enabled state for an output
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached, or if the index is invalid. See open for information on determining if a device is attached.

Returns the number of analog outputs.

Returns:
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.

Parameters:
indexindex of the analog output
Returns:
current voltage for an analog output, in Volts
Exceptions:
PhidgetExceptionIf 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.

Parameters:
indexindex of the analog output
Exceptions:
PhidgetExceptionIf 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.

Parameters:
indexindex of the analog output
Exceptions:
PhidgetExceptionIf 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.

Parameters:
indexindex of the analog output
statenew state of the analog output
Exceptions:
PhidgetExceptionIf 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.

Parameters:
indexindex of the analog output
currentnew voltage for an analog output, in Volts
Exceptions:
PhidgetExceptionIf 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.

The documentation for this class was generated from the following file:


pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22