Analog Inputs and Outputs
Seq_Status
ADwin
86
ADwin-Gold II
, Manual February 2013
Seq_Status
Seq_Status
returns if the single conversion cycle of a sequential control of an
ADC is completed.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Seq_Status
(
adc_no
)
Parameters
Notes
The return value is useful only, if the sequential control has been initia-
lized for operation mode "single shot" with
Seq_Mode
.
See also
,
,
,
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic / TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Dim
Data_1
[
16
]
As
Long
At
DM_Local
Dim
i
As
Long
Init:
Rem settings for sequential control of ADC 1
Seq_Mode
(
1
,
1
)
'single shot mode
Seq_Set_Delay
(
1
,
125
)
'waiting time 4.5 µs (125*20ns + 2µs)
Seq_Set_Gain
(
1
,
1
)
'gain factor 2
Rem select all channels. selection is valid only for active
Rem sequential control 1 = odd numbered channels.
Seq_Select
(
0FFFFh
)
Rem start sequential control of ADC1
Seq_Start
(
01b
)
Event:
Do
Until
(
Seq_Status
(
1
)=
0
)
Rem read values of odd channels
For
i
=
1
To
15
Step
2
Data_1
[
i
]
=
Seq_Read
(
i
)
Next
i
Rem start sequential control of ADC1
Seq_Start
(
01b
)
Finish:
Seq_Mode
(
2
,
0
)
'reset to standard mode
T11 TiCo
adc_no
Number (1, 2) of the ADC.
LONG
ret_val
Status of the sequential control for mode "single
shot":
0: Single conversion cycle is completed.
1: Single conversion cycle is not yet completed.
LONG