Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.

Log in or register to post/reply in the forum.

Send data file each day on a ftp

fdeclercq Jan 11, 2019 01:36 AM

Dear All

i search a program to send the data on a ftp (without SSL) each day

i have found an exemple on the forum but i don't understand what the USR is?

Does anybody have this?

I will be very happy because i don't understand all on this part.


jtrauntvein Jan 11, 2019 07:03 AM

The USR: drive is a file system that can be allocated from a portion of data logger RAM (battery backed memory).  It is allocated using a setting that can be found in the "Advanced" subpanel of devconfig for your data logger.  The advantage of using the USR: drive is that it has no inherent limit regarding the number of times it can be written and in its relative speed.  The disadvantage is that it is limited in its size and it takes memory away from what would otherwise be available to the program.

fdeclercq Jan 11, 2019 08:34 AM

Dear Mister

thanks for your reply, According to your answer it's possible to have an exmple of program?  because it's not clear for me


johnmike69 Jan 22, 2019 07:51 AM

I am also facing the same problem! I search Hard on the internet can you please help me out to make this program. I still don't understand what is USR?

JamesMc Jan 31, 2019 12:06 PM

From the CRBasic helpfile:

USR Drive

The USR drive is a user-created drive in the CR1000, CR3000, CR800, and CR6 dataloggers. It can be set up by assigning a value to the datalogger's UsrDriveSize (either by entering a value into the Settings table directly, by using Device Configuration Utility, or by setting it with the SetStatus instruction). This drive must be sized at least 8192 bytes, in 512 byte increments (if the value entered is not a multiple of 512 bytes, the size will be rounded up). Maximum size that can be entered by the user is 2,990,000 bytes. If the value entered for the USRDriveSize is greater than the maximum, the drive will be set to 2,990,080 bytes (the maximum user-entered value, rounded up based on 512 byte increments).

Note: Setting the UsrDriveSize forces the datalogger to recompile its program and may results in the loss of data.

You can set the drive size before your main Scan loop with the following instruction:

SetStatus ("USRDriveSize",8192)  'Define smallest possible USR drive

 The CR1000 manual outlines the function of the USR drive here.

By defining a USR drive, you are allocating memory from the datalogger for a file space that you can read/write to.

Log in or register to post/reply in the forum.