
ADwin-Gold II
, Manual February 2013
85
Analog Inputs and Outputs
Seq_Start
ADwin
Seq_Start
Seq_Start
enables od disables the sequential controls of both ADC.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Seq_Start
(
pattern
)
Parameters
Notes
The instruction is useful only, if the sequential control is enabled with
Seq_Mode
.
If both sequential controls are to be used, they should be run with the
same delay settings (
Seq_Set_Delay
) and started at the same time.
Thus, you ensure measurements of both sequential controls to be done
synchronously.
See also
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic / TiCoBasic
#Include
ADwinGoldII.inc
'for ADbasic
Rem #Include GoldIITiCo.inc 'for TiCoBasic
Dim
Data_1
[
1600
]
As
Long
At
DM_Local
Dim
i
As
Long
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
(
1
,
125
)
Seq_Set_Gain
(
1
,
0
))
:
Seq_Set_Gain
(
1
,
0
)
'gain factor 1
Rem select channels 1..7, i.e. channels 1,3,5,7 for sequential
Rem control 1 and channels 2,4,6 for seq. control 2
Seq_Select
(
07Fh
)
Rem start both sequential controls
Seq_Start
(
11b
)
i
=
1
Event:
Rem read current values of channels 1..8
Seq_Read8
(
Data_1
,
i
)
:
i
=
i
+
8
If
(
i
>
1600
)
Then
i
=
1
Finish:
Seq_Mode
(
1
,
0
)
'reset to standard mode
Seq_Mode
(
2
,
0
)
'reset to standard mode
T11 TiCo
pattern
Bit pattern to select the ADC:
Bit = 0: disable sequential control of this ADC.
Bit = 1: enable sequential control of this ADC.
LONG
Bit
31:02
01
00
ADC no.
–
2
1