Performs a complete configuration of the operation mode of a specified analog output. When this function is successfully executed the analog output will be enabled.
NovusExpertAOut.setMode(pin, type, range, poweronState, poweronValue, watchdogValue)
pin: the name of the analog output pin to read from. In NXprog the pins are O1
and O2
as displayed in NXprog front panel.
type: output type. Data type: nx_aout_type_t
as defined here.
range: set the operating range of the analog output (percent or range). Refer to Analog Configuration. Data type: nx_aout_range_t
. See Operating range definition.
poweronState: set a initial value for the analog output when turning on the device and receiving a command. Data type: nx_aout_poweron_state_t
. See the values defined for Power on state.
poweronValue: value to be adopted in the Initial Value parameter after the device initialization and until a valid command is received. Data type: uint16_t
.
watchdogValue: value for the analog output in case of loss of RS485/Ethernet communication. Data type: uint16_t
.
This function returns true
when executed successfully.
Data type: bool
.
Enables or disables a specified analog output.
NovusExpertAOut.setState(pin, enable)
pin: O1
or O2
pin.
enable: desired state for the pin. Data type: bool
.
This function returns true
when executed successfully.
Data type: bool
.
Sets the value to be adopted in the Initial Value parameter after the device initialization and until a valid command is received.
NovusExpertAOut.setPowerOnValue(pin, value)
pin: O1
or O2
pin.
value: power on value for the pin. Data type: uint16_t
.
This function returns true
when executed successfully.
Data type: bool
.
Sets a value for the analog output in case of loss of RS485/Ethernet communication.
NovusExpertAOut.setSafeValue(pin, value)
pin: O1
or O2
pin.
value: safe value for the pin. Data type: uint16_t
.
This function returns true
when executed successfully.
Data type: bool
.
Set an initial value for the analog output when turning on the device and receiving a command.
NovusExpertAOut.setPowerOnState(pin, value)
pin: O1
or O2
pin.
value: power on state the pin. Data type: nx_aout_poweron_state_t
. See the values defined for Power on state.
This function returns true
when executed successfully.
Data type: bool
.