ph_getanalogstat PowerHome formula function
Description
Retrieves the current raw value of an Analog device in the Device Status Screen. This function DOES NOT cause the controller to retrieve the values and only returns what is currently stored within PowerHome.
Syntax
ph_getanalogstat ( )
ph_getanalogstat ( as_id )
Argument Description
as_id String (Optional). The ID of the analog device to retrieve the raw value for. If this parameter is omitted, the system variable ANALOG will be used for the ID
Return value
Long. Returns the currently stored raw value for the specified analog device.
Usage
This function does not cause the controller to query the value. Use ph_getotheranalog to have the controller query the current actual value.
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_getanalogstat("TEMPERATURE") - Returns the raw value for the TEMPERATURE Analog I/O device.