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 DRIVER.H file.

For more information about the error code, please refer to ErrorCode list.

 

Functions supported by PCI-1721

Device functions

DRV_DeviceOpen

DRV_DeviceClose

DRV_DeviceGetProperty

DRV_DeviceSetProperty

Analog Output

DRV_AOConfig

DRV_AOScale

DRV_AOBinaryOut

DRV_AOVoltageOut

DRV_AOCurrentOut

DRV_EnableSyncAO

DRV_WriteSyncAO

High-speed Functions

DRV_FAODmaExStart

DRV_FAOTerminate

DRV_FAOCheck

DRV_FAOScale

DRV_FAOLoad

DRV_CheckEvent

DRV_EnableEvent

DRV_ClearFlag

Counter Functions

DRV_CounterEventStart

DRV_CounterEventRead

DRV_CounterPulseStart

DRV_CounterReset

Digital Input/Output

DRV_DioReadDIPorts

DRV_DioReadDOPorts

DRV_DioWriteDOPorts

Port I/O functions

DRV_ReadPortByte

DRV_WritePortByte

DRV_ReadPortWord

DRV_WritePortWord

Other Functions

DRV_GetErrorMessage