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.

WXT520 with CR1000


Datalog Dec 29, 2010 07:44 PM

I am not very familiar with writing a program for the CR1000 to collect from a Vaisala WXT520. This is what I have started, but I can;t get it to work. Does anyone know more about this instrument that might be able to help me out?


'CR1000

'Declare Variables and Units

Public BattV
Public PTemp
Public WXT520(7)

Alias WXT520(1)=Wdavg
Alias WXT520(2)=Wsavg
Alias WXT520(3)=AirTemp
Alias WXT520(4)=RelHumid
Alias WXT520(5)=AirPress
Alias WXT520(6)=RainAmt
Alias WXT520(7)=HailAmt

Units Wdavg=Degrees
Units Wsavg=m/s
Units AirTemp=Celcius
Units RelHumid=%
Units AirPress=hPa
Units RainAmt=mm
Units HailAmt=hits/mm^2

'Define Data Tables
DataTable(VaisalaTest,True,-1)
DataInterval(0,30,Sec,10)
Sample(1,WXT520(3),FP2)
Sample(1,PTemp,FP2)
EndTable

'Main Program
BeginProg
Scan(5,Sec,0,0)
SW12(1)
PanelTemp(PTemp,250)
Battery(BattV)
'Vaisala connected to SDI12 port 1
SDI12Recorder(WXT520(1),1,0,"M!",1.0,0)
'Call Data Tables and Store Data
CallTable(VaisalaTest)
SW12(0)
NextScan
EndProg


Datalog Dec 29, 2010 07:47 PM

How do I know the SDI Address for the SDI12Recorder?


Dana Dec 29, 2010 08:05 PM

I don't know that much about the sensor, either, but I would check a couple of things:

Ensure the Blue/White wires are wired into C1 on the CR1000 wiring panel.

For now, wire the power lead (brown) to one the of the 12V terminals -- not the SW12. This will provide constant power to the sensor rather than turning it on/off with each scan.

Try using the R! command rather than M!.

I believe the factory default for SDI-12 addresses is 0 in most cases, unless you have changed that using the configuration software.

Dana W.


Datalog Dec 29, 2010 08:44 PM

I checked all of that and I am still unsuccessful, I will try reading the manual more. Thank you for your help


IslandMan Dec 30, 2010 10:49 AM

I have a little experience with the unit. Please post your wiring.


Datalog Dec 30, 2010 03:46 PM

Originally I had the blue wire connected to Tx/C1, the white wire connected to RX/C2, the green and the red to ground, and the brown to +12V.

After I changed the wiring to blue and white connected to Tx/C1 I could communicate through the transparent mode on the CR1000 Configuration utility, but the table on PC200W still gives results as either NAN or 0.00

* Last updated by: Datalog on 12/30/2010 @ 10:59 AM *


IslandMan Dec 31, 2010 11:33 AM

Try changing this:
SDI12Recorder(WXT520(1),1,0,"M!",1.0,0)
to this:
SDI12Recorder(WXT520(),1,0,"M!",1.0,0)


Datalog Jan 3, 2011 04:11 PM

When I try that I still get "NAN".


IslandMan Jan 4, 2011 11:06 AM

hopefully not. I don't have a WXT520 here to test your software with but you are specifying the 1st location in the array to store the data with WXT520(1), mine specifies the whole array WXT520(). I'm not sure CRBasic will automagically interpret your program to mean the whole array.


Datalog Jan 4, 2011 03:37 PM

Thank you all for your help. I have the program running and collecting data now.


Tegan Feb 2, 2018 05:17 PM

Hi datalog. How did you get your program to work and the wxt520 to communicate?


JDavis Feb 2, 2018 05:31 PM

The example programs and wiring from Campbell assume your WXT520 is configured the same way we did. There is an appendix in our manual for the WXT520 which shows all the settings. You will have to refer to the Vaisala manual for how to change settings.


Tegan Feb 2, 2018 06:47 PM

Unfortunately I do not have the software. I am new on this project and I am picking up where it was left off. the sensor was ordered a long time ago and I do not know where the software cd is or the gray cable. Do you know if I can download a version online?


JDavis Feb 2, 2018 07:02 PM

The configuration software and cable may be purchased from Vaisala.

It is possible to reconfigure the sensor with a regular data cable and terminal commands. You just have to read through the big Vaisala manual to find the commands you need.


Tegan Feb 2, 2018 07:15 PM

OK thanks! I will try and come back if I need to.

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