Support Forums
Automatic backup data to USB on schedule

I have tried to set up a daily schedule to save newly acquired data to a USB memory stick.

I set this up in dEX configuration builder by adding a new schedule to run every day at midnight, then added a manual channel with the command

COPYD dest=A: format=csv archive=N src=BD start=new;

If I issue this command in the command window, it successfully saved data to the USB device.

When inserted in the schedule it seems to stop the job running at all. Subsequently on trying to send a configuration to the logger I get a "no current job" error.

Is this simply because I need to enclose the command in a DO{} command so it runs on the schedule and not immediately?

Sorry, I am away from the site and am trying to debug some problems before revisiting.


Andrew Mitchell MIOA MInstSCE
Research Fellow
Centre for Energy and the Environment
University of Exeter
Tel +44(0)1392 724143
E-Mail T.A.Mitchell@ex.ac.uk
Web http://www.centres.ex.ac.uk/cee/

Centre for Energy and the Environment
College of Engineering, Mathematics and Physical Sciences (EMPS)
Suite G.24
Hope Hall
Prince of Wales Road
Exeter
Devon
United Kingdom

I have tried to set up a daily schedule to save newly acquired data to a USB memory stick. I set this up in dEX configuration builder by adding a new schedule to run every day at midnight, then added a manual channel with the command COPYD dest=A: format=csv archive=N src=BD start=new; If I issue this command in the command window, it successfully saved data to the USB device. When inserted in the schedule it seems to stop the job running at all. Subsequently on trying to send a configuration to the logger I get a "no current job" error. Is this simply because I need to enclose the command in a DO{} command so it runs on the schedule and not immediately? Sorry, I am away from the site and am trying to debug some problems before revisiting. _______________________________________ Andrew Mitchell MIOA MInstSCE Research Fellow Centre for Energy and the Environment University of Exeter Tel +44(0)1392 724143 E-Mail T.A.Mitchell@ex.ac.uk Web http://www.centres.ex.ac.uk/cee/ Centre for Energy and the Environment College of Engineering, Mathematics and Physical Sciences (EMPS) Suite G.24 Hope Hall Prince of Wales Road Exeter Devon United Kingdom

Good evening tamitche

There are two different types of commands immediate commands and coding commands
The CopyD command is an immediate command that is it will be executed when entered. If you wish to add an immediate command to your code you need to put it inside a DO statement.

E.g Do {copyd}

Cheers
Roger

Good evening tamitche There are two different types of commands immediate commands and coding commands The CopyD command is an immediate command that is it will be executed when entered. If you wish to add an immediate command to your code you need to put it inside a DO statement. E.g Do {copyd} Cheers Roger

Thanks Roger.

Hi Andrew,

When you declare a COPYD syntax without any DO to enclose it, it will run instantaneous even when DT program has not been sent completely.
As a result it will give you an error, because that syntax tries to unload the data from a job that has not exist yet.

With this error, dataTaker will not be able to successfully compile the program.
No program means "No current job" message.

Best regards,
Rudy Gunawan

Thanks Roger. Hi Andrew, When you declare a COPYD syntax without any DO to enclose it, it will run instantaneous even when DT program has not been sent completely. As a result it will give you an error, because that syntax tries to unload the data from a job that has not exist yet. With this error, dataTaker will not be able to successfully compile the program. No program means "No current job" message. Best regards, Rudy Gunawan
14
2
3
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