Support Forums
Programming with different acquisition times

Hello

I'd like to know how can I put my DATATAKER doing readings of 5 in 5 seconds to 24h and after that he take readings of 5 in 5 minutes (for example).

Thank you very much,

Andreia Silva
Portugal

Hello I'd like to know how can I put my DATATAKER doing readings of 5 in 5 seconds to 24h and after that he take readings of 5 in 5 minutes (for example). Thank you very much, Andreia Silva Portugal

Good morning Andreia,

Yes you can by using alarms to change the schedule sample speed.

For example if you are sampling schedule A every 1 second and wish to change the sample rate to once per minute after 1 hour then you can:

Begin ' Start a new program
2ST(W)=0 'Set system timer 2 (Minutes) to 0
1CV=0 ' Flag for triggering alarm

RA1S ' Report schedule A every 1 second
Reft 'Sample a channel.
Alarm(2ST>60){1CV=1} 'If 1 hour is up then set flag
Alarm(1CV==1){RA1M} 'If flag is true change sample speed
End

Notes:
1/ 1ST holds seconds of the minute, 2ST holds minutes of the hour, 3ST holds hour of the day, 4ST holds day of the week.
2/ RA1S = report schedule A every 1 second, 1M = every 1 minute, 1H = every 1 hour, 1D = every 1 day.

Cheers,
Roger

Good morning Andreia, Yes you can by using alarms to change the schedule sample speed. For example if you are sampling schedule A every 1 second and wish to change the sample rate to once per minute after 1 hour then you can: Begin ' Start a new program 2ST(W)=0 'Set system timer 2 (Minutes) to 0 1CV=0 ' Flag for triggering alarm RA1S ' Report schedule A every 1 second Reft 'Sample a channel. Alarm(2ST>60){1CV=1} 'If 1 hour is up then set flag Alarm(1CV==1){RA1M} 'If flag is true change sample speed End Notes: 1/ 1ST holds seconds of the minute, 2ST holds minutes of the hour, 3ST holds hour of the day, 4ST holds day of the week. 2/ RA1S = report schedule A every 1 second, 1M = every 1 minute, 1H = every 1 hour, 1D = every 1 day. Cheers, Roger
15
1
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