Digital Inputs and Outputs
Digout
ADwin
100
ADwin-Gold II
, Manual February 2013
Digout
Digout
sets a single channel to the specified TTL level.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Digout
(
channel
,
value
)
Parameterss
Notes
For any digital channel configured as input
Digout
has no function.
Conf_DIO
configures digital channels as inputs or outputs in groups of
8.
See also
,
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic / TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Dim
value
As
Long
Init:
REM Configure inputs and outputs
Conf_DIO
(
1100b
)
Event:
value
=
ADC
(
1
)
'get measurement value
If
(
value
>
1600
)
Then
'limit exceeded?
Digout
(
19
,
1
)
'set output DIO19 to level high
Digout
(
23
,
0
)
'set output DIO23 to level low
EndIf
T11 TiCo
channel
Number (0…31) of digital output.
LONG
value
TTL level to which the output is set:
1: Set to TTL level high.
0: Set to TTL level low.
LONG