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

Mux Settling Time, Delay1

Page 61 highlights

AVW200-series 2-Channel Vibrating Wire Spectrum Analyzer Modules ' Example Program running SDI12 commands with the Datalogger controlling ' 2 mux's. For this program, the AVW SDI-12 port is connected to DL C1. ' The reset line of both muxes is connected to datalogger C3. Mux1 clock line ' is connected to DL C4 and Mux2clock line is connected to DL C5. The SDI-12 ' address of the AVW200 is set to 1. SequentialMode Public PTemp, batt_volt Public Chan1_Val(16,6),Chan2_Val(16,6) Dim I BeginProg Scan (150,Sec,0,0) PanelTemp(PTemp,250) Battery(Batt_volt) PortSet(3, 1) Delay(1, 100, mSec) ' Reset High, Mux On, both mux's share this reset port ' delay before clocking Measure 16 vibrating wire sensor on AVW200 channel 1 For I=1 To 16 ' Advance Mux #1 (clock line connected to C4; clock high for 2mSec) PulsePort(4, 2000) Delay(1, 10, mSec) ' Mux Settling Time 'measures sensor on channel 1 SDI12Recorder (Chan1_Val(I,1),1,1,"M1!",1.0,0) Next I Measure 16 vibrating wire sensor on AVW200 channel 2 For I=1 To 16 ' Advance Mux #2 (clock line connected to C5; clock high for 2mSec) PulsePort(5, 2000) Delay(1, 10, mSec) ' Mux Settling Time 'measures sensor on channel 2 SDI12Recorder (Chan2_Val(I,1),1,1,"M2!",1.0,0) Next I PortSet(3, 0) NextScan EndProg ' Reset Low; turn both Muxes off 53

  • 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
' Example Program running SDI12 commands with the Datalogger controlling
' 2 mux's.
For this program, the AVW SDI-12 port is connected to DL C1.
' The reset line of both muxes is connected to datalogger C3. Mux1 clock line
' is connected to DL C4 and Mux2clock line is connected to DL C5.
The SDI-12
' address of the AVW200 is set to 1.
SequentialMode
Public PTemp, batt_volt
Public Chan1_Val(16,6),Chan2_Val(16,6)
Dim I
BeginProg
Scan (150,Sec,0,0)
PanelTemp(PTemp,250)
Battery(Batt_volt)
PortSet(3, 1)
' Reset High, Mux On, both mux's share this reset port
Delay(1, 100, mSec)
' delay before clocking
' ************ Measure 16 vibrating wire sensor on AVW200 channel 1
For I=1 To 16
' Advance Mux #1 (clock line connected to C4; clock high for 2mSec)
PulsePort(4, 2000)
Delay(1, 10, mSec) ' Mux Settling Time
'measures sensor on channel 1
SDI12Recorder (Chan1_Val(I,1),1,1,"M1!",1.0,0)
Next I
' ************ Measure 16 vibrating wire sensor on AVW200 channel 2
For I=1 To 16
' Advance Mux #2 (clock line connected to C5; clock high for 2mSec)
PulsePort(5, 2000)
Delay(1, 10, mSec)
' Mux Settling Time
'measures sensor on channel 2
SDI12Recorder (Chan2_Val(I,1),1,1,"M2!",1.0,0)
Next I
PortSet(3, 0)
' Reset Low; turn both Muxes off
NextScan
EndProg
53