Campbell-scientific CR800 and CR850 Measurement and Control Systems Instrukcja Użytkownika Strona 378

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 377
Section 8. Operation
378
Examples:
http://192.168.24.106/?command=ListFiles
Response:returnsthedrivestructureofthehostCR800(CPU:,
USR:,CRD:,andUSB:).
http://192.168.24.106/CPU/?command=ListFiles
Response:liststhefilesonthehostCR800CPU:drive.
ListFiles Response
The format of the response depend on the value of the format parameter in the
command request. The response provides information for each of the files or
directories that can be reached through the CR800 web server. The information
for each file includes the following:
Table 101. ListFiles API Command Response
path
Specifies the path to the file relative to the URL path.
is_dir
A boolean value that will identify that the object is a directory if
set to true.
size
An integer that gives the size of for a file in bytes (the value of
is_dir is false) or the bytes free for a directory.
last_write
A string associated only with files that specifies the date and
time that the file was last written.
run_now
A boolean attribute applied by the CR800 for program files that
are marked as currently executing.
run_on_power_up
A boolean attribute applied by the CR800 for program files that
are marked to run when the CR800 powers up or resets.
read_only
A boolean attribute applied by the CR800 for a file that is
marked as read-only.
paused
A boolean attribute applied by the CR800 that is marked to run
but the program is now paused.
HTML Response
When html is entered in the ListFiles format parameter, the response will be
HTML. Following are example responses.
HTML tabular response:
Przeglądanie stron 377
1 2 ... 373 374 375 376 377 378 379 380 381 382 383 ... 565 566

Komentarze do niniejszej Instrukcji

Brak uwag