Download Print this page

Advantech TREK-674 Manual page 22

Computer

Advertisement

4.1
Introduction
T o make the hardware easier to access for programmers, Advantech has
developed an demo program in order to let customer test the functions on
TREK-674. This document describes detailed information for each Advantech
demo program so that application developers can become more familiar with
using them.
For technical support, contact Advantech application engineers
worldwide. For news updates, visit our website:
www.advantech.com
4.1.1
Execute
DIO Sample Code
DIO Sample Code is demonstration of Digital input and output. It can read the
digital input status and control digital output by user self.
System Menu
TREK V3 DIO Sample Code as below figure
Library Version
1.
Digital Input Status
2.
Control Digital Output
3.
Start Monitor Button
4.
Digital Input Status
Digital Input HIGH/1 as below figure
Digital Input LOW/0 as below figure
Note: If your Digital Input is floating, it value should be HIGH since the port
is pull High by default
Digital Output Status
22
www.advantech.com

Advertisement

loading