Campbell Scientific AVW200 AVW200-series Vibrating Wire Interfaces - Page 55

AVW200() Instruction Controlling Two Multiplexers, TABLE 7-2., Wiring for Example 7.2

Page 55 highlights

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 shows wiring used for this example. This program measures 16 sensors on each multiplexer. TABLE 7-2. Wiring for Example 7.2 Datalogger Port for Cable Attachment COM1 (control port pairs C1/C2) Cable Needed to AVW200 Port or connect to AVW200 Model 17855 Cable (pigtail to RS-232 DB9 male cable) '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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112

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 shows wiring used for this example.
This program measures 16
sensors on each multiplexer.
TABLE 7-2.
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