beautypg.com

3 time syntax, 4 data management, 1 browsesymbols command – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 375

background image

Section 8. Operation

375

 

p2

DataQuery

Specifies ending date and/or
time when using

date-range

argument.

time expressed in defined
format (see Time Syntax

(p.

375)

section)

value

SetValueEx

Specifies the new value.

numeric or string

time

ClockSet

Specifies set time.

time in defined format

action

FileControl

Specifies FileControl action.

1 through 20

file

FileControl

Specifies first argument of
FileControl action.

file name with drive

file2

FileControl

Specifies second argument
parameter of FileControl
action.

file name with drive

expr

NewestFile

Specifies path and wildcard
expression for the desired set of
files to collect.

path and wildcard expression

 

8.6.3.3 Time Syntax

API commands may have a time stamp parameter. Consult the Clock Functions

section for more information. The format for the parameter is:

YYYY-MM-DDTHH:MM:SS.MS

where,

YYYY

= four-digit year

MM

= months into the year, one or two digits (1 to 12)

DD

= days into the month, one or two digits (1 to 31)

HH

= hours into the day, one or two digits (1 to 23)

MM

= minutes into the hour, one or two digits (1 to 59)

SS

= seconds into the minute, one or two digits (1 to 59)

MS

= sub-second, ,optional when specifying time, up to nine digits (1 to

<1E9)

The time parameters

2010-07-27T12:00:00.00

and

2010-07-27T14:00:00

are used in

the following URL example:

http://192.168.4.14/?command=dataquery&uri=dl:WSN30sec.CWS900_Ts
&format=html&mode=date-range&p1=2010-07-27T12:00:00&p2=2010-07-
27T14:00:00

8.6.3.4 Data Management

8.6.3.4.1 BrowseSymbols Command

BrowseSymbols allows a web client to poll the host CR1000 for its data memory
structure. Memory structure is made up of table name(s), field name(s), and array
sub-scripts. These together constitute "symbols." BrowseSymbols takes the
form:

http://ip_address/?command=BrowseSymbols&uri=source:tablename.fi
eldname&format=html

BrowseSymbols requires a minimum .csipasswd access level of

3

(read-only).