Please install the example package provided by Advantech first.
About Advantech DAQ Device Linux Driver Example:
The example source code is located in the installation path\adsapi\examples directory.
The example folder names adopted Prefix and Postfix to indicate the different function groups.
|
Prefix |
Description |
|---|---|
| AD | Analog input function. (Analog/Digital ) |
| DA | Analog output function. (Digital /Analog ) |
| DI | Digital input function |
| DO | Digital output function |
| SOFT | Software trigger |
|
Postfix |
Description |
|---|---|
| INT | Interrupt function |
| DMA | Direct Memory Access |
| DMA_BM | Bus master DMA |
| WD | Watch dog function |
| EXP | expansion board |
Following is the list of example programs we offer, which can be used for the reference of software development.
Here "Console" (Standard C) is supported language in Linux.
| Example Name | Description | Console | GUI | AD_DMA | Demonstrates AD DMA function. |
|---|---|---|---|
| AD_DMA_BM | Demonstrates AD bus master DMA function. | ||
| AD_INT | Demonstrates single channel data acquisition use interrupt function. (allow user to enable FIFO) | ||
| AD_SOFT | Demonstrates single channel data acquisition use software trigger function. | ||
| MAD_INT | Demonstrates multi-channel data acquisition use interrupt function. (allow user to enable FIFO) | ||
| MAD_SOFT | Demonstrates multi-channel data acquisition use software trigger function. | ||
| DA_DMA_BM | Demonstrates analog output (voltage) use bus master DMA function. | ||
| DA_SOFT | Demonstrates analog output (voltage) use software trigger function. | ||
| DA_SYNC | Demonstrates sync/async analog output (current/voltage). | ||
| DI_SOFT | Demonstrates digital input function. | ||
| DI_INT | Demonstrates digital input with interrupt event function. | ||
| DI_PATTN | Demonstrates digital input with pattern match, status change, counter match, counter overflow function. | ||
| DO_SOFT | Demonstrates digital output function. | ||
| DO_SOFT_WD | Demonstrates digital output with watchdog function. | ||
| PORT_RW | Demonstrates port I/O read/write function. | ||
| COUNTER | Demonstrates counter function. | ||
| FREQ_IN | Demonstrates frequency measurement function. | ||
| FREQ_OUT | Demonstrates frequency out function. | ||
| PULSE | Demonstrates pulse output function. | ||
| PWM_IN | Demonstrates pulse output function. | ||
| PWM_OUT | Demonstrates pulse output function. | ||
| THERMO | Demonstrates thermocouple measurement function. | ||
| TMR_CNT_SET | Demonstrates runtime change timer divisor. |