Function groups can be analog input, analog output, digital input, digital output... etc. Every Advantech DLL function is of the following form:
status = FUNCTION_Name (parameter 1, parameter 2...parameter n)
where n>0. Each function returns a value in the status variable that indicates the success or failure of the function as follows:
| 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 Error Codes.