ADwin-Gold II
, Manual February 2013
79
Analog Inputs and Outputs
Seq_Read16
ADwin
Seq_Read16
Seq_Read16
returns the measurement values (16 bit) of the input channels
1…16 of the sequential control.
Syntax
#Include
ADwinGoldII.inc
Seq_Read16
(
array
[],
array_idx
)
Parameters
Notes
The selection of input channels is useful only, if the sequential control
has been enabled with
Seq_Mode
and
Seq_Start
, and only for input
channels which have been selected with
Seq_Select
.
See also
,
,
,
,
,
Valid for
Gold II
Example
#Include
ADwinGoldII.inc
Dim
Data_1
[
16
]
As
Long
At
DM_Local
Init:
Rem settings for sequential controls
Seq_Mode
(
1
,
2
)
:
Seq_Mode
(
2
,
2
)
'continuous mode
Rem waiting time 4.5 µs (125*20ns + 2µs)
Seq_Set_Delay
(
1
,
125
)
:
Seq_Set_Delay
(
2
,
125
)
Seq_Set_Gain
(
1
,
0
)
:
Seq_Set_Gain
(
2
,
0
)
'gain factor 1
Seq_Select
(
0FFFFh
)
'select channels 1…16
Rem start sequential control of ADC1 and ADC2
Seq_Start
(
11b
)
Event:
Rem read values of channels 1…16
Seq_Read16
(
Data_1
,
1
)
Finish:
Seq_Mode
(
1
,
0
)
'reset to standard mode
Seq_Mode
(
2
,
0
)
'reset to standard mode
T11
array
[]
Array to hold the measurement values of the input
channels 1…16.
ARRAY
LONG
array_idx
Array element which holds the first measurement
value.
LONG