We provide the basic usage and the skill as the sample program with
the source code.
Because the sample programs are made as simply as possible, you need to
make good use of these for programming.
File structure
The following figure shows the structure of the directory in which API-AIO(LNX) sample programs are installed.
User Directory/contec/caio
|
|________samples
|
|_______en
|_______inc
include
files
|_______gcc
Gcc
version
| |_______console
console samples
|_______python
Python
version
|_______console
console samples
In the console folder, sample programs are stored with the following configuration.
Function Category |
Project Name |
Sample Name |
Analog Input |
ai_simple |
|
ai_sampling_once_dev |
||
ai_sampling_infinite_dev |
||
ai_sampling_once_user |
||
ai_sampling_infinite_user |
||
ai_sampling_attached_data |
||
Analog Output |
ao_simple |
|
ao_generating_once_dev |
||
ao_generating_infinite_dev |
||
ao_generating_ring_memory |
||
ao_generating_once_user |
||
ao_generating_infinite_user |
||
Digital I/O |
digital_io |
|
Counter Input |
counter |
|
Timer |
timer |
|
Event Controller |
internal_sync_generating_sampling |
|
ecu_sync_sampling |
Sampling Synchronization Between 2 Devices Using Synchronization Bus |
|
internal_sync_counter_sampling |
Device Internal Synchronization (Count Comparison Match/Sampling) |
|
Demo Device |
aiodemoctrl |