Hello, I've got a client who requires their DT80 to upload one day's worth of data daily at 6am. I've come up with a solution, but wondered if there's a better way to do it. My solution (use time based alarm to trigger upload, retry half-hourly on failure) is as follows:
RA"Take readings"
.
.
.
RB"FTP"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)X
LOGOFFB
'User defined
DO{COPYD sched=A id=100 start=new dest=ftp://foo:bar@ftp.etc.etc/DATATAKER/LOGGERNAME/}
RC"FTP_Trigger"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)6H
LOGONC
'User defined
IF(T><05:50,6:10){XB}
RD"FTP_Retry"("b:",ALARMS:OV:100KB:W60,DATA:OV:200KB)30M
LOGOND
'User defined
IF(29SV(LM,"FTP status")<0){XB}
(As you might be able to tell, this was created through the new web interface, and seems to do what it's supposed to.) If there's a more elegant solution, I'd appreciate knowing about it.
However, I couldn't find any information on this in the manual or the FAQ, so thought that others might wish to know of this rather hacky workaround.
Also, I'm pretty sure it's not currently possible, but if someone knows a way to create timestamped files with a non standard name (i.e. something like LOGGERNAME_20110103_215400.CSV rather than 068_20110103T215400.CSV), I'd be grateful.
Thanks,
Bruce.
Hello, I've got a client who requires their DT80 to upload one day's worth of data daily at 6am. I've come up with a solution, but wondered if there's a better way to do it. My solution (use time based alarm to trigger upload, retry half-hourly on failure) is as follows:
````
RA"Take readings"
.
.
.
RB"FTP"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)X
LOGOFFB
'User defined
DO{COPYD sched=A id=100 start=new dest=ftp://foo:bar@ftp.etc.etc/DATATAKER/LOGGERNAME/}
RC"FTP_Trigger"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)6H
LOGONC
'User defined
IF(T><05:50,6:10){XB}
RD"FTP_Retry"("b:",ALARMS:OV:100KB:W60,DATA:OV:200KB)30M
LOGOND
'User defined
IF(29SV(LM,"FTP status")<0){XB}
````
(As you might be able to tell, this was created through the new web interface, and seems to do what it's supposed to.) If there's a more elegant solution, I'd appreciate knowing about it.
However, I couldn't find any information on this in the manual or the FAQ, so thought that others might wish to know of this rather hacky workaround.
Also, I'm pretty sure it's not currently possible, but if someone knows a way to create timestamped files with a non standard name (i.e. something like LOGGERNAME_20110103_215400.CSV rather than 068_20110103T215400.CSV), I'd be grateful.
Thanks,
Bruce.