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 USB-4751:

Device functions

DRV_DeviceOpen

DRV_DeviceClose

DRV_DeviceGetProperty

DRV_DeviceSetProperty

Digital Input/Output

DRV_DioReadDiPorts

DRV_DioWriteDoPorts

DRV_DioReadDoPorts

Counter Functions

DRV_CounterEventRead

DRV_CounterEventStart

DRV_CounterFreqStart

DRV_CounterFreqRead

DRV_CounterPWMSetting

DRV_CounterPWMEnable

DRV_CounterPulseStart

DRV_FreqOutStart

DRV_FreqOutReset

DRV_CounterReset

High-speed Functions

DRV_CheckEvent

DRV_EnableEvent

Other Functions

DRV_GetErrorMessage