beautypg.com

5 control, 1 setvalueex command, Table 88. browsesymbols api command parameters – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 368: Table 89. browsesymbols api command response

background image

Section 8. Operation

368 

 

 

"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 CR800 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 91. 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: the public variable settable_float is set to 3.14. 

http://192.168.24.106/?command=SetValueEx&uri=dl:public.flag&val
ue=-1&format=html

Response: the public Boolean variable Flag(1) in is set to True (‐
1).