Campbell-scientific CR1000 Measurement and Control System Instrukcja Użytkownika Strona 385

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 384
Section 8. Operation
385
"SECONDS","NANOSECONDS","RN","",""
"","","","Min","Smp"
"ULONG","ULONG","ULONG","FP2","FP2"
376
}Ÿp' E1HŒŸp' E1H›Ÿp' E1HªŸp' E1H¹Ÿp'
E1H
8.6.3.5 Control
CRBasic program language logic can be configured to allow remote access to
many control functions by means of changing the value of a variable.
8.6.3.5.1 SetValueEx Command
SetValueEx allows a web client to set a value in a host CR1000 CRBasic
variable.
http://ip_address/?command=SetValueEx&uri=dl:table.variable&valu
e=x.xx
SetValueEx requires a minimum .csipasswd access level of 2 (set variables
allowed).
Table 95. SetValueEx API Command Parameters
uri
Specifies the variable that should be set in the following format:
dl:tablename.fieldname
value
Specifies the value to set
format
The following table lists optional output formats for SetValueEx result codes. If not specified,
result codes output as HTML.
Result Code Output
Option
Result Code Output
Format
Content-Type Field of
HTTP Response Header
html
HTML
text/html
json
CSIJSON
application/json
xml
CSIXML
text/xml
Example: &format=html
Specifies the format of the response. The values html, json, and xml are valid. If this parameter is
omitted, or if the value is html, empty, or invalid, the response is HTML.
Examples:
http://192.168.24.106/?command=SetValueEx&uri=dl:public.NaOH_Set
pt_Bal2&value=3.14
Response:thepublicvariablesettable_floatissetto3.14.
http://192.168.24.106/?command=SetValueEx&uri=dl:public.flag&val
ue=-1&format=html
Response:thepublicBooleanvariableFlag(1)inissettoTrue(
1).
Przeglądanie stron 384
1 2 ... 380 381 382 383 384 385 386 387 388 389 390 ... 587 588

Komentarze do niniejszej Instrukcji

Brak uwag