Lanner Digital Input/Output Manuel d'utilisateur Page 17

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 28
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 16
Software User Manual Version 1.0
15
Chapter 3. Executing the Sample Program
3.1 Via the Command Line
Note:
The OS supported by Lanner DIO function include platforms based on Linux Kernel series 2.4.x and
Linux Kernel series 2.6.x, FreeBSD 8.0, and DOS.
This section contains sample executable programs that you could test on your platform.
It demonstrates some useful functionality that the DIO provides. Note that the installation
needs to be completed before proceeding with the execution.
On Linux
The executable program will be in the bin directory after compilation.
Just run “dio_tst” for Digital IO test. This program will drive output pin with specific value
(high or low) and then read status of input pin. If you have external loopback which
connects input to output pins directly, the input value should be identical with output
value.
To execute the DIO sample code, type:
# ./dio_tst
Vue de la page 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 27 28

Commentaires sur ces manuels

Pas de commentaire