ph_setotheranalogout PowerHome formula function (Deprecated)
Description
Sets the value of an Analog Output
Syntax
ph_setotheranalogout ( controller, type, unit, point, value )
Argument |
Description |
controller
|
The ID of the controller.
|
type
|
The type of the Analog Point. Use 0 for inputs, 1 for outputs, 2 for Multi-State, 3 for Temperature, 4 for Arm Status, and 5 for Alarm State.
|
unit
|
The address of the unit.
|
point
|
The analog output point you wish to set the value of.
|
value
|
The value you wish to write to the analog output.
|
Return value
Integer. Returns a 0 if successful. - 1 is returned if the controller is not available, - 2 is returned if the controller does not support analog outputs, - 3 is returned if the unit is out of range, - 4 is returned if the point is out of range.
Usage
Currently only supported by the Velleman K8000 controller. To use this function with the Velleman K8000, specify the controller ID whose type is K8000. To set the output of the 6 bit analog outputs, specify a "unit" value of 0. The valid "point" values for the 6 bit AO's will be from 1 to 32. To set the Velleman precision analog outputs (8 bit AO), use a "unit" value of 1. The valid "point" values for the precision AO's will be from 1 to 4.