Demo For Xv-Boards; Ai/O, Di/O Expansion Boards; Aio - ICP DAS USA LinPAC-22 Series User Manual

Xv-board api functions
Table of Contents

Advertisement

ICP DAS

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
# ./getxvao 33
// Output 10 V
// Read back the value from the AO channel
LinPAC-52xx Series XV-Board API User Manual
24

Advertisement

Table of Contents
loading

Table of Contents