123
Remarks
When the voltage is applied to the port that meets or exceeds the minimum voltage value returned by this call,
then a read of the digital value of the port will yield the minimum digital value. Use
AD_MinDigital
to get
the A/D minimum digital value. The default minimum voltage value is 1.0.
AD_MaxDigital ( Port )
AD_MaxDigital ( Port )
AD_MaxDigital ( Port )
AD_MaxDigital ( Port )
Gets the maximum A/D digital value.
Syntax
HRESULT AD_MaxDigital(
[in] long Port,
[out, retval] long* MaxDigital
);
Parameters
Port
[in] Port number for the A/D converter. Valid values are 1, 2, 3, and 4.
MaxDigital
[out, retval] The value returned when the maximum voltage is applied to the port.
Remarks
The maximum digital value is returned when the port’s input voltage is at the maximum voltage level. Use
AD_MaxVoltage
to get the A/D maximum voltage level. By default the maximum digital value is 1023.
AD_MinDigital ( Port )
AD_MinDigital ( Port )
AD_MinDigital ( Port )
AD_MinDigital ( Port )
Gets the maximum A/D digital value.
Syntax
HRESULT AD_MaxDigital(
[in] long Port,
[out, retval] long* MaxDigital
);
Parameters
Port
[in] Port number for the A/D converter. Valid values are 1, 2, 3, and 4.
MaxDigital
[out, retval] The value returned when the maximum voltage is applied to the port.
Remarks
The minimum digital value is returned when the port’s input voltage is at the minimum voltage level. Use
AD_MinVoltage
to get the A/D maximum voltage level. By default the minimum digital value is 1.
AD_GetPortCount ( )
AD_GetPortCount ( )
AD_GetPortCount ( )
AD_GetPortCount ( )
Returns the number of Analog to Digital ports supported by the WACI hardware.
Syntax
HRESULT AD_GetPortCount(
[out, retval] long* NumPorts
);