Table 89. File-Control Functions
File-Control Functions Accessed Through
Deleting files from memory drives
File Control
2
, power-up with Campbell Scientific mass storage
device or memory card
5
, web API FileControl
Stopping program execution
File Control
2
, web API FileControl
Renaming a file
FileRename()
6
Time-stamping a file
FileTime()
6
List files
File Control
2
, FileList()
6
, web API ListFiles
Create a data file from a data table
TableFile()
6
JPEG files manager
CR1000KD Keyboard Display , LoggerNet | PakBusGraph, web
API NewestFile
Hiding files Web API FileControl
Encrypting files Web API FileControl
Abort program on power-up Hold DEL down on datalogger keypad
1
Datalogger support software (p. 95) Program Send (p. 524) command
2
Datalogger support software File Control (p. 515) utility
3
Device Configuration Utility (DevConfig) (p. 111) software
4
Manual with Campbell Scientific mass storage device or memory card. See Data Storage (p. 374)
5
Automatic with Campbell Scientific mass storage device or memory card and Powerup.ini. See Power-up (p. 386)
6
CRBasic instructions (commands). See Data-Table Declarations (p. 540) and File Management (p. 382) and CRBasic Editor Help
7
Datalogger support software Retrieve (p. 515) command
8.3.4.1 File Attributes
A feature of program files is the file attribute. Table CR1000 File Attributes (p. 383)
lists available file attributes, their functions, and when attributes are typically
used. For example, a program file sent with the support software Program Send
(p. 524)
command, runs a) immediately ("run now"), and b) when power is cycled
on the CR1000 ("run on power-up'). This functionality is invoked because
Program Send
(p. 524) sets two CR1000 file attributes on the program file, i.e.,
Run Now and Run on Power-up. When together, Run Now and Run on Power-
up are tagged as Run Always.
Note Activation of the run-on-power-up file can be prevented by holding down
the Del key on the CR1000KD Keyboard Display while the CR1000 is powering
up.
Table 90. CR1000 File Attributes
Attribute Function Attribute for Programs Sent to CR1000 with:
Run Always
(run on power-up +
run now)
Runs now and on
power-up.
a) Send
(p. 515)
1
b) File Control
2
with Run Now & Run on Power-up
selected.
c) Campbell Scientific mass storage device or
memory card power-up
3
using commands 1 & 13
383