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.

Vaisala ws425 code SDI-12


BertSP Mar 9, 2021 03:48 PM

I am trying to set up a WS425 on a CR1000 with 5 sec scans. I like the submode B data info and I can get it to work fine.

SDI12Recorder(WSData(),1,0,"XQ1;0.1;1;0005!",1,0)

SDI12Recorder(WSData(),1,0,"R0!",1,0)

However, it resets every hour to mode A. Is there a way to trigger the submode B either with wind threshold or on fixed time to prevent switching back.

Embarrassingly, I cannot figure out how to get scan data in submode A. The manual mentions two commands, M! followed by D0!. I am used to single SDI commands, so I am at a loss.


Nico May 2, 2021 01:25 AM

Looks like the switchback is hardcoded.

Your code will have to renew the submodeB every hour (manual says 2 hours) to stay there.
You should be able to do that with a TimeIntoInterval() command in your loggercode that is triggering the aXQ1..! command.

As for the aD0! and aM! commands. You have to get their order and TIMING right.
What should work (data then is 5 seconds old):

BeginProg
SDI12Recorder(WSData(),1,0,"M!",1,0) 'initiate measurement, should be ready in 1 second
Delay(1,5,2) 'delay by 5 seconds
Scan (5,Sec,0,0)
SDI12Recorder(WSData(),1,0,"D0!",1,0) 'get measurement from 5 seconds ago
SDI12Recorder(WSData(),1,0,"M!",1,0) 'initiate another mesurement, should be ready in 1 second
NextScan
EndProg

If you want to know how long it takes for your device to have the data ready after you sent the aM! command use the Logger Terminal emulator and there the SDI-12 mode (DeviceConfigUtility > Terminal .. disable 'all caps') click on [Enter] while in the terminal until you see the logger prompt response (should be 'CR1000>', then type into the Terminal 'SDI12' and hit enter.. then select the SDI12 port you have the WS425 connected to and you can test the SDI12 commands with feedback..



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