04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 8. Operation<br />

"SECONDS","NANOSECONDS","RN","",""<br />

"","","","Min","Smp"<br />

"ULONG","ULONG","ULONG","FP2","FP2"<br />

376<br />

}Ÿp' E1HŒŸp' E1H›Ÿp' E1HªŸp' E1H¹Ÿp'<br />

E1H<br />

8.6.3.5 Control<br />

8.6.3.5.1 SetValueEx Command<br />

Table 95. SetValueEx API Command Parameters<br />

CRBasic program language logic can be configured to allow remote access to<br />

many control functions by means of changing the value of a variable.<br />

SetValueEx allows a web client to set a value in a host <strong>CR1000</strong> CRBasic<br />

variable.<br />

http://ip_address/command=SetValueEx&uri=dl:table.variable&valu<br />

e=x.xx<br />

SetValueEx requires a minimum .csipasswd access level of 2 (set variables<br />

allowed).<br />

uri<br />

value<br />

Specifies the variable that should be set in the following format:<br />

dl:tablename.fieldname<br />

Specifies the value to set<br />

The following table lists optional output formats for SetValueEx result codes. If not specified,<br />

result codes output as HTML.<br />

Result Code Output<br />

Option<br />

Result Code Output<br />

Format<br />

Content-Type Field of<br />

HTTP Response Header<br />

html HTML text/html<br />

format<br />

json CSIJSON application/json<br />

xml CSIXML text/xml<br />

Example: &format=html<br />

Specifies the format of the response. The values html, json, and xml are valid. If this parameter is<br />

omitted, or if the value is html, empty, or invalid, the response is HTML.<br />

Examples:<br />

http://192.168.24.106/command=SetValueEx&uri=dl:public.NaOH_Set<br />

pt_Bal2&value=3.14<br />

Response: the public variable settable_float is set to 3.14.<br />

http://192.168.24.106/command=SetValueEx&uri=dl:public.flag&val<br />

ue=-1&format=html<br />

Response: the public Boolean variable Flag(1) in is set to True (‐<br />

1).<br />

385

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

Saved successfully!

Ooh no, something went wrong!