04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 8. Operation<br />

Examples:<br />

http://192.168.24.106/command=ListFiles<br />

Response: returns the drive structure of the host <strong>CR1000</strong><br />

(CPU:, USR:, CRD:, and USB:).<br />

http://192.168.24.106/CPU/command=ListFiles<br />

Response: lists the files on the host <strong>CR1000</strong> CPU: drive.<br />

ListFiles Response<br />

The format of the response depend on the value of the format parameter in the<br />

command request. The response provides information for each of the files or<br />

directories that can be reached through the <strong>CR1000</strong> web server. The information<br />

for each file includes the following:<br />

Table 105. ListFiles API Command Response<br />

path<br />

is_dir<br />

size<br />

last_write<br />

run_now<br />

run_on_power_up<br />

read_only<br />

paused<br />

Specifies the path to the file relative to the URL path.<br />

A boolean value that will identify that the object is a directory if<br />

set to true.<br />

An integer that gives the size of for a file in bytes (the value of<br />

is_dir is false) or the bytes free for a directory.<br />

A string associated only with files that specifies the date and<br />

time that the file was last written.<br />

A boolean attribute applied by the <strong>CR1000</strong> for program files<br />

that are marked as currently executing.<br />

A boolean attribute applied by the <strong>CR1000</strong> for program files<br />

that are marked to run when the <strong>CR1000</strong> powers up or resets.<br />

A boolean attribute applied by the <strong>CR1000</strong> for a file that is<br />

marked as read-only.<br />

A boolean attribute applied by the <strong>CR1000</strong> that is marked to run<br />

but the program is now paused.<br />

HTML Response<br />

When html is entered in the ListFiles format parameter, the response will be<br />

HTML. Following are example responses.<br />

HTML tabular response:<br />

395

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

Saved successfully!

Ooh no, something went wrong!