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

AVW200 Controlling Two Multiplexers in Sequential Mode, TABLE 7-4.

Page 58 highlights

AVW200-series 2-Channel Vibrating Wire Spectrum Analyzer Modules TABLE 7-4 shows the wiring used for both Sequential Mode examples. TABLE 7-4. Wiring for Sequential Mode Examples 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) 7.4.1 AVW200 Controlling Two Multiplexers in Sequential Mode ' Example Program running in the Sequential mode with AVW200 controlling ' 2 muxes. The clock and reset lines of both muxes are connected to the clk ' and rst lines of the AVW200. SequentialMode Public PTemp, batt_volt Public Result1, Result2, AVWDst(32,6) Const Chan1 = 1 Const Chan2 = 2 Const MuxChan = 1 Const Reps = 16 Const BFreq = 450 Const EFreq = 6000 Const Xvolt = 2 ' AVW200 channel 1 ' AVW200 channel 2 ' Starting Mux Channel ' Number of Reps ' Begin Frequency ' End Frequency ' 12p-p Volt Excite BeginProg SerialOpen (Com1,38400,0,0,10000) Scan (64,Sec,0,0) ' (2 * 32 measurement) = 64 seconds PanelTemp(PTemp,250) Battery (Batt_volt) AVW200(Result1,Com1,200,200,AVWDst(1,1),Chan1,MuxChan,Reps,Bfreq,Efreq,Xvolt,_60Hz,1,0) AVW200(Result2, Com1,200,200,AVWDst(17,1),Chan2,MuxChan,Reps,Bfreq,Efreq,Xvolt,_60Hz,1,0) NextScan EndProg 7.4.2 Datalogger Controlling Two Multiplexers in Sequential Mode This example program has the datalogger controlling the multiplexers. Note that the AVW200( ) parameter for reps is one, and x is a index variable in AVWDst(x,1). ' Example Program running in the Sequential mode with the Datalogger ' controlling the muxes. For this program, the reset line of both muxes is ' connected to datalogger C3. Mux1 clock line is connected to DL C4 and Mux2 ' clock line is connected to DL C5. SequentialMode Public PTemp, batt_volt, x Public Result1, Result2, AVWDst(32,6) 50

  • 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
TABLE 7-4 shows the wiring used for both Sequential Mode examples.
TABLE 7-4.
Wiring for Sequential Mode Examples
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
7.4.1
AVW200 Controlling Two Multiplexers in Sequential Mode
' Example Program running in the Sequential mode with AVW200 controlling
' 2 muxes. The clock and reset lines of both muxes are connected to the clk
' and rst lines of the AVW200.
SequentialMode
Public PTemp, batt_volt
Public Result1, Result2, AVWDst(32,6)
Const Chan1 = 1
' AVW200 channel 1
Const Chan2 = 2
' AVW200 channel 2
Const MuxChan = 1
' Starting Mux Channel
Const Reps = 16
' Number of Reps
Const BFreq = 450
' Begin Frequency
Const EFreq = 6000
' End Frequency
Const Xvolt = 2
' 12p-p Volt Excite
BeginProg
SerialOpen (Com1,38400,0,0,10000)
Scan (64,Sec,0,0)
' (2 * 32 measurement) = 64 seconds
PanelTemp(PTemp,250)
Battery (Batt_volt)
AVW200(Result1,Com1,200,200,AVWDst(1,1),Chan1,MuxChan,Reps,Bfreq,Efreq,Xvolt,_60Hz,1,0)
AVW200(Result2, Com1,200,200,AVWDst(17,1),Chan2,MuxChan,Reps,Bfreq,Efreq,Xvolt,_60Hz,1,0)
NextScan
EndProg
7.4.2
Datalogger Controlling Two Multiplexers in Sequential Mode
This example program has the datalogger controlling the multiplexers. Note
that the AVW200( ) parameter for reps is one, and x is a index variable in
AVWDst(x,1).
' Example Program running in the Sequential mode with the Datalogger
' controlling the muxes.
For this program, the reset line of both muxes is
' connected to datalogger C3. Mux1 clock line is connected to DL C4 and Mux2
' clock line is connected to DL C5.
SequentialMode
Public PTemp, batt_volt, x
Public Result1, Result2, AVWDst(32,6)
50