Cr1000 Program Example; Using The Micromux With The Vw Comm Module - Canary MicroMux User Manual

Multiplexer
Table of Contents

Advertisement

Section 2 – MicroMux Operation and Installation

2.6 CR1000 Program Example

'Enable our multiplexer
PortSet (1,1)
'Wait 100mSec for multiplexer to power up
Delay(0,100,MSEC)
'Cycle through 4 channels
For Channel = 1 TO 4
'Set Clock port high to advance mux channel
PortSet(8,1)
'Wait 10mSec for 50% duty cycle
Delay(0,10,MSEC)
'Set Clock port low
PortSet(8,0)
'Wait 10mSec for channel to settle
Delay(0,10,MSEC)
'Read our vibrating wire gage
VibratingWire(MuxChannel(),1,mV7_5,2,VX1,600,3600,500,-1,20000,500,0,1,0)
'Read our YSI44005 type thermistor
BrHalf(ScratchLoc(1),1,mV2500,2,VX1,1,2500,0,1000,250,2.5,0.0)
ScratchLoc(2) = ScratchLoc(1) / 5000
ScratchLoc(3) = (2.5 - (ScratchLoc(2)*1000) - ScratchLoc(1))/ScratchLoc(2)
MuxChannelTemp() = 1/(.0014051 + (.0002369*Log(ScratchLoc(3))) +
(.0000001019*(Log(ScratchLoc(3))^3))) - 273.2
'End of measurement loop
Next
'Disable our multiplexer
PortSet (1,0)

2.7 Using the MicroMux with the VW Comm Module

The VW Comm has built in instructions to directly control the MicroMux, MultiMux, or MiniMux. There are
specific gage types in Multilogger Software to configure the VW Comm to be connected to 4 or 8 sensors
through the MIcroMux. The VW Comm can be used with a radio, and MicroMux as a remote node for 4 or
8 instruments.
'Read vibrating wire gage using a VW Comm at address 0 using Mux channel MicroMux'on a
Digi radio at address 0129. Radio network must match base station
ScratchLoc(1) = -99999
ScratchLoc(2) = -99999
ScratchLoc(3) = -99999
ScratchLoc(4) = -99999
ScratchLoc(5) = -99999
ScratchLoc(6) = -99999
ScratchLoc(7) = -99999
ScratchLoc(8) = -99999
ScratchLoc(9) = -99999
ScratchLoc(10) = -99999
ScratchLoc(11) = -99999
ScratchLoc(12) = -99999
'Open our port
SerialOpen (Com1,9600,0,100,255)
'open COM1 - C1&C2
Delay(0,1000,mSec)
'Transmit ===, Receive OK (wait up to 10 seconds)
SerialOut (Com1,"===","OK",2,5000)
Delay(0,1000,mSec)
'must wait 1 second before AT Command mode
'must wait 1 second after AT Command mode
7

Advertisement

Table of Contents
loading

Table of Contents