Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000-AVW200-Multiplexer combination using SDI12Recorder command


UrbanTech Feb 17, 2019 05:17 PM

Hello,

This is not really a question, but more sharing an experience.

I had to read several Vibrating Wire sensors, I have a CR1000, an AVW200 and a AM16/32 multiplexer. Normally I would have used AVW200 command but in this situation, the SDI12Recorder was preferred.

Below there is a copy of the code, it was tested and seemed to work; also, just below the code a couple of notes on the problems I encoutered while doing this setup.

##############################################################################################

SlowSequence

Scan (120,Sec,0,0)   

PanelTemp (PTemp,60)    Battery (Batt_volt)       

PortSet (2,1)   

Delay (0,150,mSec)

    For Counter = 1 To 16     'Reads 16 Vibrating Wire type sensors

PulsePort (1 ,10000)    'Set port 1 high

Delay (0,150,mSec)     

SDI12Recorder (SDI12String(),7,0,"XVW1400,3500,1!",1.0,0)     'Send excitation parameters to interface// NOTE: it's                                                                                                                      optional and depens on the type of sensor.

SDI12Recorder (SDI12Vars(),7,0,"M1!",1.0,0)     'reads sensors

VW_Dig(Counter) = SDI12Vars(1)^2/1000     'Converts Hz readings into Digits.

VW_Temp(Counter) = 1/((0.0014051 +0.0002369 * LN(SDI12Vars(6)) + 0.0000001019 * (LN(SDI12Vars(6))^3))) - 273.15   

'Convert resistance readings into  degrees Celsius.

Next   

PortSet (2,0)    Delay (0,150,mSec)

###############################################################################################

The following are a couple of  problems I had that the availlable manuals don't seem to address I had and how they were solved:

1) Wiring AW200 to MUX - Follow the instruction in the manual for the connections between the AVW200 and CR1000, but                                              also you have to connect the VW and 1T from the AVW200 unit to the common connectors in                                                 the MUX  (I guess  this is self-evident for most but I struggled with this for at least 3 hours.)

2) SlowSequence - If you are not getting data after all connections are done then try SlowSequence before the SCAN.                                         Before I used this command I was not able to get readings from my sensors; after I code it in my data                                     started flowing.

                          - I must add the I'm a self-made programmer I can't comment on the potential ramifications of using this                                  command but I battled for several hours getting no readings until I put that in my program.

All other information required to get a similar setup can be found in the AVW200 manual that features a program the use of SDI12 command in an AVW200 with 2 MUX's.


TimeTelemetry Feb 13, 2020 06:06 PM

Thankyou very much for sharing.

Log in or register to post/reply in the forum.