Hi, I'm writing a program for a Geo Precision SDI-12 converter. In these Covid-19 times, i don't have access to a datalogger (Home office).
I'm curious if this will work?
#If ( Sensor_GeoPrecision = TRUE ) Then
For i = 0 To GeoPrecision_Count-1 Step 6 ‘GeoPrecision_Count is 1 to 48
I’m concernd about the expression "M(i/6)!".
The idea is to run the SDI12Recorder with the command "M0!", "M1!", "M2!"...
If not, is there a better way to construct the syntax in a nice and general way?
We are all the same right now. I'm at home with a CR1000X, but no sensor to test it on. I can see the outgoing text from the SDI-12 port, so pretty sure this is Ok. But it will need to be tested with the sensor itself to be certain.
The parameter Command parameter in the SDIRecorder instructin has to be a constant or variable. So, my suggestion would be that you use a string variable for tjis parameter and vary the contents of that.
The following outputs "3M!" on the C1 port and with a bit of manipulation, I am sure you can get it to add in the index value in to it as well.
Public SDIcmd As String * 15
SDIcmd= "M!" & CHR(34)
Of course, if all else fails, just repeat the SDIRecorder instruction the number of times you need.