ICP DAS
LinPAC-52xx Series XV-Board API User Manual
24
4. Demo for XV-Boards
4.1. AI/O, DI/O Expansion Boards
4.1.1. AIO
Â
Location
First, install the LinPAC AM335x SDK from the LinPAC CD or from the ICP DAS FTP site, and
follow the steps described below to implement the demonstration. Refer to the
setxvao.c
,
getxvao.c
, and
getxvai.c
files in the path
C:\cygwin\LinPAC_AM335x_SDK\examples\xvboard\
folder for details.
Â
Wiring Connections
Â
Run
Set and read back the Analog Output value for a single channel
Step1: Transfer the setxvao.exe and getxvao.exe files to the LP-22xx/52xx module.
Step2: Change the permissions for the files as shown below:
# chmod 755 setxvao.exe
# chmod 755 getxvao.exe
Step3: Execute the program.
# ./setxvao 33 65535
// Output 10 V
# ./getxvao 33
// Read back the value from the AO channel