beautypg.com

4 file management q & a, 5 file names, 6 file system errors – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 347: Table 82. file system error codes

background image

Section 8. Operation

347

 

8.3.4.4 File Management Q & A

Q: How do I hide a program file on the CR1000 without using the CRBasic
FileManage() instruction?

A: Use the CoraScript

File-Control command, or the Web API

FileControl

command.

8.3.5 File Names

The maximum size of the file name that can be stored, run as a program, or FTP
transferred in the CR1000 is 59 characters. If the name is longer than 59
characters, an Invalid Filename error is displayed. If several files are stored, each
with a long filename, memory allocated to the root directory can be exceeded
before the actual memory of storing files is exceeded. When this occurs, an
"insufficient resources or memory full" error is displayed.

8.3.6 File System Errors

Table File System Error Codes

(p. 347)

lists error codes associated with the

datalogger file system. Errors can occur when attempting to access files on any of
the available drives. All occurrences are rare, but they are most likely to occur
when using the CRD: drive.

Table 82. File System Error Codes

Error Code

Description

1

Invalid format

2

Device capabilities error

3

Unable to allocate memory for file operation

4

Max number of available files exceeded

5

No file entry exists in directory

6

Disk change occurred

7

Part of the path (subdirectory) was not found

8

File at EOF

9

Bad cluster encountered

10

No file buffer available

11

Filename too long or has bad chars

12

File in path is not a directory

13

Access permission, opening DIR or LABEL as file, or trying to open file as
DIR or mkdir existing file

14

Opening read-only file for write

15

Disk full (can't allocate new cluster)

16

Root directory is full

17

Bad file ptr (pointer) or device not initialized

18

Device does not support this operation