Campbell Scientific AVW200 AVW200-series Vibrating Wire Interfaces - Page 58
AVW200 Controlling Two Multiplexers in Sequential Mode, TABLE 7-4.
View all Campbell Scientific AVW200 manuals
Add to My Manuals
Save this manual to your list of manuals |
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