Hi, i am work trying to connect one WXT520 weather transmitter with the Datalogger CR200, but i can't.
I am using the command SDI12Recorder but I don't know what put in the parameter "outstring". I've tried with "0M1!", "0xM1!", "0xC1", etc and nothing happens. In the Monitor data window in PC400, all the values are 0.00 except two that are NAN. Anyone has the program that communicate this two devices? I studied the example that the manual incorpored but i cant translate it to cr2 instead of cr10x or cr1000.
Thank you for spend your time with me.
Oscar.
The address and command are all one parameter in the CR200 Series and separate parameters in the CR1000. Using the CR1000 example from the manual:
CR1000
SDI12Recorder(WXT520(1),7,"0","M1!",1,0)
equivalent CR200 Series would be
SDI12Recorder(WXT520(1),"0M1!",1,0)
Note also that no port is specified in the CR200 Series instruction unlike the CR1000 instruction because there's only one SDI-12 port on the CR200 Series.
Thank you. I did it but when i connect with my datalogger all the values of my table are 0.0 and NAN. In this code are there anymore wrong?
Public Batt_Volt
Public WXT510(15)
Alias WXT510(1)=Wdmin
Alias WXT510(2)=Wdavg
Alias WXT510(3)=Wdmax
Alias WXT510(4)=Wsmin
Alias WXT510(5)=Wsavg
Alias WXT510(6)=Wsmax
Alias WXT510(7)=airtemp
Alias WXT510(8)=relhumidity
Alias WXT510(9)=airpressure
Alias WXT510(10)=Ramount
Alias WXT510(11)=Rduration
Alias WXT510(12)=Rintensity
Alias WXT510(13)=Hamount
Alias WXT510(14)=Hduration
Alias WXT510(15)=Hintensity
DataTable (Table1,True,-1)
DataInterval(0,1,Min)
Minimum(1,Batt_Volt,False,False)
Sample(1,airpressure)
Sample(1,airtemp)
Sample(1,relhumidity)
Sample(1,Wdavg)
Sample(1,Wdmax)
Sample(1,Wdmin)
Sample(1,Wsavg)
Sample(1,Wsmax)
Sample(1,Wsmin)
EndTable
BeginProg
Scan(5,Sec)
Battery(Batt_Volt)
SDI12Recorder(WXT510(1),"0M1",1,0)
SDI12Recorder(WXT510(7),"0M2!",1,0)
SDI12Recorder(WXT510(10),"0M3!",1,0)
CallTable(Table1)
NextScan
EndProg
Thanks again
* Last updated by: Rali on 3/1/2010 @ 3:03 PM *
I've tried to connect my wxt520 with the terminal emulator, but when I execute the command 0M1! and then 0D0! the response is only 0 instead of 0+339+018 etc. I've revised all the wires and they are ok. I think that it would be the problem but i have no idea to solve it.
Do you think is a datalogger problem or is a WXT520 configuration problem?
Thank you.
Sorry for ask again, but i have another one station that was working perfectly and today i prove to disconnect WXT520 from the cr200 that was working and connect it to my new datalogger. Now any works and i dont know why. I need to do something to connect WXT520 to the datalogger? the old datalogger has the good .cr2 program but now fails. In cr200 i cant retrieve this program and the person who make it dont save a copy. The datalogger show me the last data that the wxt520 send but no refresh anything. Please help me. It's very important.
thanks and sorry.
It looks like the outstring in your first sdi-12 recorder command is missing the !
It should be "0M1!" instead of "0M1"
However it sounds like you may have more issues going on, I would double check wiring and power.
Thanks, Jeff
I've tried to connect my wxt520 with the terminal emulator, but when I execute the command 0M1! and then 0D0! the response is only 0 instead of 0+339+018 etc.
I would agree with Jeff; it sounds like there are other issues, but one common mistake when using terminal emulator is not waiting long enough before issuing the 0D0! command. Make sure you look at the response from the 0M1! to determine how long you must wait before issuing the 0D0! command.
thank you for answer. I solved the problem with the datalogger that worked checking the wires. But now the other station havent work yet. I revised the wires, change it for anothers, change the WXT520 for other and nothing. The program has "0M1!" and return 0.0 in all values except in the value WXT510(1) WXT510(7) and WXT510(10) that return NaN. I think that this means that the connection is wrong and cant do the petition.
The terminal emulator always return fail when i put any command (?!, 0!, 0I!, etc)
Do you know if the WXT520 requires a previous configuration to be detected by cr200?
Thanks and sorry again.
If the sensor was not preconfigured for SDI-12 before supply it may need to be configured. See the CS manual, Appendix A, for configuration details: http://www.campbellsci.com/documents/manuals/wxt520.pdf
I configured it but nothing happens. I don't know which can be the problem. I will check again all the code. the wires are ok. thanks for try to help me. I could connect with terminal emulator and sdi commands but when I execute 0M2! and then execute 0D0! it returns only 0.
I'll try more and tell you.
Thanks
Hi, I've seen that when I send a program that use SDI12Recorder, the commands in the terminal always return fail, but if I send another program without this instruction, I can use the terminal. Why happens this?
The WXT520 configuration is the same that ib the other WXT520.
if I put the command 0XXU! to see the configuration it returns the same with both weather transmitter. This is so frustrating. I think that maybe would be a code problem but I dont know where. Any idea?
Thanks, Oscar.
All works fine at the end. The problem was that the SW Battery connection in the datalogger doesnt work.
Thanks for your help.