AVW200-series 2-Channel Vibrating Wire Spectrum Analyzer Modules
'Calculate displacement (inches) from Digits and calibration polynomial
PSI=2.49866e-10*Digits^2
+
8.716e-5*Digits
+
-.2
NextScan
EndProg
7.2 AVW200() Instruction Controlling Two Multiplexers
Table 7.2-1 shows wiring used for this example. This program measures 16
sensors on each multiplexer.
TABLE 7.2-1. Wiring for Example 7.2
Datalogger Port for
Cable Attachment
Cable Needed to
connect to AVW200
AVW200 Port or
Model
COM1 (control port pairs
C1/C2)
17855 Cable (pigtail to
DB9 male cable)
RS-232
'CR1000
'Declare Variables and Units
Public BattV
Public PTemp_C
'Public Temp_C
Public Data1, Data2
Public Mux1(16,6), Mux2(16,6)
Units BattV=Volts
Units PTemp_C=Deg C
'Define Data Tables
DataTable(VWTable1,True,-1)
DataInterval(0,90,Sec,10)
Sample
(96,Mux1(),IEEE4)
Sample
(96,Mux2(),IEEE4)
Minimum(1,BattV,FP2,False,False)
EndTable
'Main Program
BeginProg
SerialOpen
(Com1,38400,0,0,0)
Scan(90,Sec,1,0)
AVW200(Data1(),Com1,
200,
200,
mux1(1,1),1,1,16,450,3000,2,_60HZ,1,0)
AVW200(Data2(),Com1,
200,
200,
mux2(1,1),2,1,16,450,3000,2,_60HZ,1,0)
Battery(BattV)
PanelTemp(PTemp_C,_60Hz)
CallTable(VWTable1)
NextScan
EndProg
47
Summary of Contents for AVW200 series
Page 2: ......
Page 78: ...Appendix C Antennas Antenna Cables and Surge Protectors for the AVW206 AVW211 and AVW216 C 8...
Page 86: ...Appendix E Status Table E 4...
Page 104: ...Appendix H Additional Programming Examples H 12...
Page 110: ...Appendix I Using MD485 Multidrop Modems with AVW200 Interfaces I 6...
Page 111: ......