Support Forums
Logging at specific time

Hi,

I wish to automatically log data on a DT85 for a 12 hour period each day. i have tried the following using Delogger 5 Pro:
'JOB=JOB1
'COMPILED=2012/01/16 22:56:18
'TYPE=dt80
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
'Thermistor declarations
'Switches declarations
'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA
ALARM1(3ST><7.0000,17.0000)"LOGON"{[RA5S]}
ALARM2(3ST><17.0000,7.0000)"LOGOFF"{[HA]}
END
'end of program file

The required period is from 7 am to 7 pm, can you advise that attached program will work?

Hi, I wish to automatically log data on a DT85 for a 12 hour period each day. i have tried the following using Delogger 5 Pro: &#039;JOB=JOB1 &#039;COMPILED=2012/01/16 22:56:18 &#039;TYPE=dt80 DT=\d BEGIN&quot;JOB1&quot; CATTN &#039;Spans and polynomial declarations &#039;Thermistor declarations &#039;Switches declarations &#039;Parameter declarations &#039;Global declarations RS1S &#039;schedule definition RA(&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA ALARM1(3ST&gt;&lt;7.0000,17.0000)&quot;LOGON&quot;{[RA5S]} ALARM2(3ST&gt;&lt;17.0000,7.0000)&quot;LOGOFF&quot;{[HA]} END &#039;end of program file The required period is from 7 am to 7 pm, can you advise that attached program will work?

Good morning sralph,

Your code as written will not quite do what you expect. You have two approaches:

  1. If you persist using DeLogger then have schedule A running and use it to control schedule B, e.g.:

    RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA
    ALARM1(3ST><7.0000,17.0000)"LOGON"{[GB]}
    ALARM2(3ST><17.0000,7.0000)"LOGOFF"{[HB]}
    
    RB("B:",ALARMS:OV:100KB,DATA:OV:1MB)5S LOGONA GA
    ' Put your channels in here.
    
  2. A far better solution is to ditch DeLogger, load the new firmware V9.08 and cut dataTaker code in DeTransfer.

    The reason is we have just added CRON schedule triggering which is exactly designed for this type of work. The above code is reduced to a single schedule trigger.

    Begin
    RA"B:",ALARMS:OV:100KB,DATA:OV:1MB)[0:*:7-19]
    Reft 'List of channels
    End
    

    Or if you want to run between 7 am and 7pm Monday to Friday then

    Begin
    RA"B:",ALARMS:OV:100KB,DATA:OV:1MB)[0:*:7-19:*:*:1-5]
    Reft 'List of channels
    End
    

Cheers,
Roger

Good morning sralph, Your code as written will not quite do what you expect. You have two approaches: 1. If you persist using DeLogger then have schedule A running and use it to control schedule B, e.g.: ```` RA(&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONA GA ALARM1(3ST&gt;&lt;7.0000,17.0000)&quot;LOGON&quot;{[GB]} ALARM2(3ST&gt;&lt;17.0000,7.0000)&quot;LOGOFF&quot;{[HB]} RB(&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)5S LOGONA GA &#039; Put your channels in here. ```` 2. A far better solution is to ditch DeLogger, load the new firmware V9.08 and cut dataTaker code in DeTransfer. The reason is we have just added CRON schedule triggering which is exactly designed for this type of work. The above code is reduced to a single schedule trigger. ```` Begin RA&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)[0:*:7-19] Reft &#039;List of channels End ```` Or if you want to run between 7 am and 7pm Monday to Friday then ```` Begin RA&quot;B:&quot;,ALARMS:OV:100KB,DATA:OV:1MB)[0:*:7-19:*:*:1-5] Reft &#039;List of channels End ```` Cheers, Roger

Thank you Roger,

Unfortunately my customer continues to use Delogger as he has DT85 and DT800 therefore he wishes to use one application for all loggers. I will try out the program as you have detailed for the customer.

Thank you Roger, Unfortunately my customer continues to use Delogger as he has DT85 and DT800 therefore he wishes to use one application for all loggers. I will try out the program as you have detailed for the customer.

Hi sralph,

Pity about that the CRON solution is so elegant. One thing, change schedule A rate to 1 per hour. It doesn't need to run every second

Cheers,
Roger

Hi sralph, Pity about that the CRON solution is so elegant. One thing, change schedule A rate to 1 per hour. It doesn&#039;t need to run every second Cheers, Roger
63
3
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft