Function Description
Every Advantech DLL function is of the following form:
status = DRV_Xxx(parameter 1, parameter 2, ..., parameter n);
(at least one parameter is contained)
Each function returns a status (Success or Failure) as following:
| Status (Value) |
Result |
| UNSUCCESS ( > 0 ) |
Function failed due to error |
| SUCCESS ( = 0 ) |
Function completed successfully |
Status is a 4-byte integer and is defined in adverror.h file.
For more information about the error code, please refer to ErrorCode list.
Functions supported by PCM-3718H:
Device functions
DRV_DeviceOpen
DRV_DeviceClose
DRV_DeviceGetProperty
DRV_DeviceSetProperty
Analog Input
DRV_AIConfig
DRV_AIBinaryIn
DRV_AIScale
DRV_AIVoltageIn
DRV_MAIConfig
DRV_MAIBinaryIn
DRV_MAIVoltageIn
Port I/O functions
DRV_ReadPortByte
DRV_WritePortByte
DRV_ReadPortWord
DRV_WritePortWord
DRV_ReadPortDword
DRV_WritePortDword
Digital Input/Output
DRV_DioReadDIPorts
DRV_DioWriteDOPorts
DRV_DioReadDOPorts
High-speed Functions
DRV_CheckEvent
DRV_EnableEvent
DRV_FAIIntStart
DRV_FAIIntScanStart
DRV_FAITransfer
DRV_FAICheck
DRV_ClearFlag
DRV_FAITerminate
DRV_FAIDmaStart
DRV_FAIDmaScanStart
Other Functions
DRV_GetErrorMessage