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

List of all members.

Public Member Functions

final void addTemperatureChangeListener (TemperatureChangeListener l)
native double getAmbientTemperature () throws PhidgetException
native double getAmbientTemperatureMax () throws PhidgetException
native double getAmbientTemperatureMin () throws PhidgetException
native double getPotential (int index) throws PhidgetException
native double getPotentialMax (int index) throws PhidgetException
native double getPotentialMin (int index) throws PhidgetException
native int getSensorCount () throws PhidgetException
native double getTemperature (int index) throws PhidgetException
native double getTemperatureChangeTrigger (int index) throws PhidgetException
native int getTemperatureInputCount () throws PhidgetException
native double getTemperatureMax (int index) throws PhidgetException
native double getTemperatureMin (int index) throws PhidgetException
native int getThermocoupleType (int index) throws PhidgetException
final void removeTemperatureChangeListener (TemperatureChangeListener l)
native void setTemperatureChangeTrigger (int index, double newVal) throws PhidgetException
native void setThermocoupleType (int index, int type) throws PhidgetException
 TemperatureSensorPhidget () throws PhidgetException

Static Public Attributes

static final int PHIDGET_TEMPERATURE_SENSOR_E_TYPE = 3
static final int PHIDGET_TEMPERATURE_SENSOR_J_TYPE = 2
static final int PHIDGET_TEMPERATURE_SENSOR_K_TYPE = 1
static final int PHIDGET_TEMPERATURE_SENSOR_T_TYPE = 4

Private Member Functions

final void enableDeviceSpecificEvents (boolean b)
native void enableTemperatureChangeEvents (boolean b)
void fireTemperatureChange (TemperatureChangeEvent e)

Static Private Member Functions

static native long create () throws PhidgetException

Private Attributes

long nativeTemperatureChangeHandler = 0
LinkedList temperatureChangeListeners = new LinkedList ()

Detailed Description

This class represents a Phidget temperature Sensor. All methods to read temperaure data from the sensor are implemented in this class.

The Temperature Phidget consists of a thermocouple interface, and a temperature sensing IC, which is used to measure the temperature of the thermocouple cold junction and calibrate the thermocouple sensed temperature.

Both the thermocouple and temperature IC temperatures can be read. Value are returned in degrees celcius.

Author:
Phidgets Inc.

Definition at line 22 of file TemperatureSensorPhidget.java.


Constructor & Destructor Documentation

Definition at line 24 of file TemperatureSensorPhidget.java.


Member Function Documentation

final void com.phidgets.TemperatureSensorPhidget.addTemperatureChangeListener ( TemperatureChangeListener  l) [inline]

Adds a temperature change listener. The temperature change handler is a method that will be called when the temperature has changed by at least the Trigger that has been set.

There is no limit on the number of temperature change handlers that can be registered for a particular Phidget.

Parameters:
lAn implemetation of the TemperatureChangeListener interface

Definition at line 190 of file TemperatureSensorPhidget.java.

static native long com.phidgets.TemperatureSensorPhidget.create ( ) throws PhidgetException [static, private]

Reimplemented from com.phidgets.Phidget.

Definition at line 178 of file TemperatureSensorPhidget.java.

void com.phidgets.TemperatureSensorPhidget.fireTemperatureChange ( TemperatureChangeEvent  e) [inline, private]

Definition at line 204 of file TemperatureSensorPhidget.java.

Returns the temperature of the ambient sensor. This value is returned in degrees celcius but can easily be converted into other units. This value will always be between getAmbientTemperatureMin and getAmbientTemperatureMax. This is the temperature of the board at the thermocouple cold junction.

Returns:
Temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the maximum temperature that will be returned by the ambient sensor.

Returns:
Maximum ambient temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the minimum temperature that will be returned by the ambient sensor.

Returns:
Minimum ambient temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the potential of a thermocouple input. This value is returned in millivolts. This value will always be between getPotentialMin and getPotentialMax. This is very accurate, as it is a raw value from the A/D. This is the value that is internally used to calculate temperature in the library.

Parameters:
indexIndex of the thermocouple
Returns:
Potential in millivolts
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the maximum potential that will be returned by a thermocouple input.

Parameters:
indexIndex of the thermocouple
Returns:
Maximum potential in millivolts
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the minimum potential that will be returned by a thermocouple input.

Parameters:
indexIndex of the thermocouple
Returns:
Minimum potential in millivolts
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the temperature of a thermocouple. This value is returned in degrees celcius but can easily be converted into other units. This value will always be between getTemperatureMin and getTemperatureMax. The accuracy depends on the thermocouple used. The board is calibrated during manufacture.

Parameters:
indexIndex of the thermocouple
Returns:
Temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached, or if a thermocouple sensor is not plugged into the board. See open for information on determining if a device is attached.

Returns the change trigger for an input. This is the ammount by which the sensed temperature must change between TemperatureChangeEvents. By default this is set to 0.5.

Parameters:
indexInput
Returns:
Trigger
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.

Returns the number of thermocouples.

Returns:
Number of inputs

Returns the maximum temperature that will be returned by a thermocouple input. This value depends on the thermocouple type.

Parameters:
indexIndex of the thermocouple
Returns:
Maximum temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the minimum temperature that will be returned by a thermocouple input. This value depends on the thermocouple type.

Parameters:
indexIndex of the thermocouple
Returns:
Minimum temperature in derees celcius
Exceptions:
PhidgetExceptionIf this Phidget is not opened and attached. See open for information on determining if a device is attached.

Returns the thermocouple type for an input. The possible values for type are PHIDGET_TEMPERATURE_SENSOR_K_TYPE, PHIDGET_TEMPERATURE_SENSOR_J_TYPE, PHIDGET_TEMPERATURE_SENSOR_E_TYPE and PHIDGET_TEMPERATURE_SENSOR_T_TYPE

Parameters:
indexInput
Returns:
Thermocouple Type
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.
final void com.phidgets.TemperatureSensorPhidget.removeTemperatureChangeListener ( TemperatureChangeListener  l) [inline]

Definition at line 198 of file TemperatureSensorPhidget.java.

Sets the change trigger for an input. This is the ammount by which the sensed temperature must change between TemperatureChangeEvents. By default this is set to 0.5.

Parameters:
indexInput
newValTrigger
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.

Sets the thermocouple type for an input. The Phidget Temperature Sensor board can be used with K, E, J and T-Type Thermocouples. Support for other thermocouple types, and voltage sources other then thermocouples in the valid range (between getPotentialMin and getPotentialMax) can be achieved using getPotential.

The possible values for type are PHIDGET_TEMPERATURE_SENSOR_K_TYPE, PHIDGET_TEMPERATURE_SENSOR_J_TYPE, PHIDGET_TEMPERATURE_SENSOR_E_TYPE and PHIDGET_TEMPERATURE_SENSOR_T_TYPE

By default, type is set to PHIDGET_TEMPERATURE_SENSOR_K_TYPE.

Parameters:
indexInput
typeThermocouple Type
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.

Member Data Documentation

Definition at line 197 of file TemperatureSensorPhidget.java.

E-Type Thermocouple. This is used with getThermocoupleType and setThermocoupleType

Definition at line 41 of file TemperatureSensorPhidget.java.

J-Type Thermocouple. This is used with getThermocoupleType and setThermocoupleType

Definition at line 37 of file TemperatureSensorPhidget.java.

K-Type Thermocouple. This is used with getThermocoupleType and setThermocoupleType

Definition at line 33 of file TemperatureSensorPhidget.java.

T-Type Thermocouple. This is used with getThermocoupleType and setThermocoupleType

Definition at line 45 of file TemperatureSensorPhidget.java.

LinkedList com.phidgets.TemperatureSensorPhidget.temperatureChangeListeners = new LinkedList () [private]

Definition at line 196 of file TemperatureSensorPhidget.java.


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:23