|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.phidgets.Phidget
com.phidgets.PHSensorPhidget
This class represents a Phidget PH Sensor. All methods to read pH data from the PH Sensor are implemented in this class.
The Phidget PH Sensor provides one standard pH sensor input.
Field Summary |
Constructor Summary | |
PHSensorPhidget()
|
Method Summary | |
void |
addPHChangeListener(PHChangeListener l)
Adds a pH change listener. |
double |
getPH()
Returns the measured pH. |
double |
getPHChangeTrigger()
Returns the change trigger. |
double |
getPHMax()
Returns the maximum pH that will be returned by the pH sensor input. |
double |
getPHMin()
Returns the minimum pH that will be returned by the pH sensor input. |
double |
getPotential()
Returns the Potential, in millivolts. |
double |
getPotentialMax()
Returns the maximum potential that will be returned by the pH sensor input. |
double |
getPotentialMin()
Returns the minimum potential that will be returned by the pH sensor input. |
void |
removePHChangeListener(PHChangeListener l)
|
void |
setPHChangeTrigger(double newVal)
Sets the change trigger. |
void |
setTemperature(double newVal)
Sets the probe temperature in degrees celcius. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PHSensorPhidget() throws PhidgetException
Method Detail |
public double getPH() throws PhidgetException
getPHMin
and getPHMax
, but
some of this range is likely outside of the valid range of most pH sensors. For example, when there is no pH sensor
attached, the board will often report an (invalid) pH of 15, which while technically within a valid pH range, is unlikely to be seen.
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPHMax() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPHMin() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPotential() throws PhidgetException
getPotentialMin
and getPotentialMax
.
This is the value that is internally used to calculate pH in the library.
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPotentialMax() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPotentialMin() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public void setTemperature(double newVal) throws PhidgetException
Note: All that this does is set a value in the library that is used for calculating ph. This does not set anything in the hardware itself.
newVal
- temperature
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public void setPHChangeTrigger(double newVal) throws PhidgetException
newVal
- Trigger
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public double getPHChangeTrigger() throws PhidgetException
PhidgetException
- If this Phidget is not opened and attached.
See open
for information on determining if a device is attached.public final void addPHChangeListener(PHChangeListener l)
Trigger
that has been set.
There is no limit on the number of pH change handlers that can be registered for a particular Phidget.
l
- An implemetation of the PHChangeListener
interfacepublic final void removePHChangeListener(PHChangeListener l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |