04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8. Operation<br />

8.3.4.4 File Management Q & A<br />

Q: How do I hide a program file on the <strong>CR1000</strong> without using the CRBasic<br />

FileManage() instruction<br />

A: Use the CoraScript File-Control command, or the Web API FileControl<br />

command.<br />

8.3.5 File Names<br />

The maximum size of the file name that can be stored, run as a program, or FTP<br />

transferred in the <strong>CR1000</strong> is 59 characters. If the name is longer than 59<br />

characters, an Invalid Filename error is displayed. If several files are stored, each<br />

with a long filename, memory allocated to the root directory can be exceeded<br />

before the actual memory of storing files is exceeded. When this occurs, an<br />

"insufficient resources or memory full" error is displayed.<br />

8.3.6 File System Errors<br />

Table File System Error Codes (p. 347) lists error codes associated with the<br />

datalogger file system. Errors can occur when attempting to access files on any of<br />

the available drives. All occurrences are rare, but they are most likely to occur<br />

when using the CRD: drive.<br />

Table 82. File System Error Codes<br />

Error Code<br />

Description<br />

1 Invalid format<br />

2 Device capabilities error<br />

3 Unable to allocate memory for file operation<br />

4 Max number of available files exceeded<br />

5 No file entry exists in directory<br />

6 Disk change occurred<br />

7 Part of the path (subdirectory) was not found<br />

8 File at EOF<br />

9 Bad cluster encountered<br />

10 No file buffer available<br />

11 Filename too long or has bad chars<br />

12 File in path is not a directory<br />

13<br />

Access permission, opening DIR or LABEL as file, or trying to open file as<br />

DIR or mkdir existing file<br />

14 Opening read-only file for write<br />

15 Disk full (can't allocate new cluster)<br />

16 Root directory is full<br />

17 Bad file ptr (pointer) or device not initialized<br />

18 Device does not support this operation<br />

347

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!