Appendix B. Example Programs
B-3
B.3 Controlling an AM16/32B Multiplexer
The following program makes 32 differential measurements through an
AM16/32B multiplexer controlled by a CDM-A108 connected to a CR6
datalogger. With slight modifications, this program can be used with the CDM-
A116 or CR800 series, CR1000, and CR3000 dataloggers.
CRBasic Example B-3. Controlling an AM16/32B Multiplexer
'Program to make 32 differential measurements through an AM16/32B multiplexer
'controlled by a CDM-A108
'Wiring
'==============
'**Set AM16/32B to 2x32 mode**
'Sensor
'Function Terminal
'-------- --------
'High H
'Low L
'Ground Ground Symbol
'AM16/32B CDM-A108
'Terminal Terminal
'-------- --------
'RES SW5-2
'CLK SW5-1
'G G
'12V 12V
'COM ODD H 1H
'COM ODD L 1L
'COM Ground Ground Symbol
'Declare Variables and Units
Dim
LCount
Public
MilliVolts(32)
DataTable
(Table1,True,-1)
DataInterval
(0,10,Min,10)
Average
(32,MilliVolts(),FP2,False)
EndTable
'Main Program
BeginProg
'Main Scan
Scan
(1,Min,3,0)
'Turn AM16/32B Multiplexer on, and advance to first channel
CDM_MuxSelect
(CDM_A108,1,1,2,20,1,1)
LCount=0
'reset loop counter
SubScan
(0,uSec,32)
=1
'increment loop counter
'Differential measurement on the AM16/32B Multiplexer
CDM_VoltDiff
(CDM_A108,1,MilliVolts(LCount),1,mV5000,1,True,5000,60,1.0,0)
'Switch to next AM16/32B Multiplexer channel
CDM_PulsePort
(CDM_A108,1,1,20000)
NextSubScan
'Turn AM16/32B Multiplexer Off
CDM_SW5
(CDM_A108,1,2,0,0)
Delay
(0,150,mSec)
'Call Data Tables and Store Data
CallTable
Table1
NextScan
EndProg
Содержание CDM-A100 Series
Страница 2: ......
Страница 3: ......
Страница 7: ......
Страница 11: ...Table of Contents iv ...
Страница 45: ...CDM A100 Series 34 ...
Страница 47: ......
Страница 53: ...Appendix B Example Programs B 6 ...
Страница 57: ...Appendix C Calculating Network Restrictions C 4 ...
Страница 60: ......