124
Parameters
NumPorts
[out, retval] Number of A/D input ports supported by the hardware.
AD_SetVoltage ( Port, Val )
AD_SetVoltage ( Port, Val )
AD_SetVoltage ( Port, Val )
AD_SetVoltage ( Port, Val )
Sets the output voltage of the specified port.
Syntax
HRESULT AD_GetPortCount(
[in] long Port,
[in] double Val,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Port [in] Port number for the A/D converter. Valid values are 1, 2, 3, and 4.
Val [in] The voltage level
Success
[out, retval] Returns true if the change was successful.
AD_SetDigital
AD_SetDigital
AD_SetDigital
AD_SetDigital ( Port, Val )
( Port, Val )
( Port, Val )
( Port, Val )
Sets the digital value of the A/D Port.
Syntax
HRESULT AD_GetPortCount(
[in] long Port,
[in] long Val,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Port [in] Port number for the A/D converter. Valid values are 1, 2, 3, and 4.
Val [in] Set the digital value of output voltage. Default range is 0 – 1024
Range can be set using the AD_MinVoltage() and AD_MaxVoltage()
Success
[out, retval] Returns true if the change was successful.