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.

SDI12Recorder and Variable Out of Bounds


thommark May 3, 2016 09:50 PM

I'm using a Lufft WS600 and polling the compass information using the C5! command.  This is only suppose to return 1 value and so I did not set up an array to receive the result.  I got a "variable out of bounds" error while the program was running.  I then thought, I'll make an array to see if that's the problem, so I dimensioned my variable to size 5 and I still get the error.  The correct value sits in array element 1.  I am using the command like this:

SDI12Recorder (WS600_Buffer_A5(),3,0,"C5!",1.0,0)

I sniffed the traffic and it is correctly only returning one value when the logger issues the D0!  See Below:

T 21:09:40.54  30 43 35 21   ASCII: C5!
T 21:09:40.63  30 43 35 21   ASCII: C5!
R 21:09:40.73  30 30 30 30 30 31 0D 0A  ONE VALUE TO RETURN
T 21:09:40.74  30 44 30 21  ASCII: 0D0!
R 21:09:40.84  30 2B 34 2E 30 0D 0A    Ascii: 0 + 4.0 cr lf

Can anyone point me in the right direction?


JDavis May 3, 2016 10:33 PM

Try the latest datalogger OS version.


thommark May 3, 2016 10:39 PM

Sorry... I'm on OS28.02 on a CR1000... I read the changelog for OS29 and nothing appears to address anything close to what I am seeing.  This logger is a remote deployment and I can't just chance updating the OS unless I know there's a documented fix.


JDavis May 3, 2016 10:49 PM

There was an issue of erroneously causing a variable out of bonds warning on OS27. I thought the problem was resolved in OS 28.

It is a warning, not an error, so the program should still run.

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