![Xytronix Research & Design ControlByWeb X317 User Manual Download Page 41](http://html1.mh-extra.com/html/xytronix-research-and-design/controlbyweb-x317/controlbyweb-x317_user-manual_3842945041.webp)
X-317™ Users Manual
Operation
5.2.2 XML Control
Commands can be sent to the X-317 to control the analog outputs. Each analog output can be controlled
individually. The following are a few examples:
Command
Description
state.xml?an1State=0
Set channel 1 to 0.0
state.xml?an1State=2.5
Set channel 1 to 2.5
state.xml?an2State=50
Set channel 2 to 50
state.xml?an2State=100
Set channel 2 to 100
5.2.3 XML Password
If the Control Password is enabled on the X-317 and the state.xml page is requested through a browser,
the user will be prompted for a password. If the XML request is sent from an XML application, the html
request will need to contain the password, encoded as Base64. The following is an html request header
without the password:
GET /state.xml?an1State=1&noReply=1 HTTP/1.1 (Terminated w/ two \r\n.)
The following example adds the password:
GET /state.xml?an1State=1&noReply=1 HTTP/1.1(Terminated with \r\n.)
Authorization: Basic bm9uZTp3ZWJyZWxheQ==(Terminated with two \r\n.)
bm9uZTp3ZWJyZWxheQ==
is the Base64 encoded version of the user “name:password,” where
name:password is “none:webrelay”.
A utility is provided at http://www.controlbyweb.com/encoder to encode the password. Simply type the
password into the website and press 'Encode'.
Xytronix Research & Design, Inc.
Page 41
Summary of Contents for ControlByWeb X317
Page 1: ......