Instructions

Table Of Contents
User Scripting (R&S RTH-K38)
R&S
®
Scope Rider RTH
522User Manual 1326.1578.02 ─ 15
colon. For example: A query like might return
1;TRAC;0.050196078431;-0.050196078431;0,"No error".
For synchronization, use the callback. Prepare the next command or query when the
previous command has returned.
Debugging the app
1. Copy the app file to the instrument.
2. Connect the instrument to the LAN.
3. On the computer, open the browser.
4. Enter the address: http://<RTH-Url>/apps/<appname>.html. Do not start
the app on the instrument.
The app is now running in the browser window on the computer. The display can
differ because of different fonts and window size.
5. Start the integrated debugger of the browser, usually with [F12].
For additional support, please contact the Rohde & Schwarz customer support.
C.4 Demo App
The following code is a example app, which shows the file structure and usage of
remote commands. You can copy the code to an html file, copy the file to the internal
SD card, and run the app. You can also contact the Rohde & Schwarzcustomer sup-
port to get the file.
<!doctype html>
<html>
<!-- User App Demo page for Rohde & Schwarz RTH -->
<head>
<link rel="stylesheet" type="text/css" href="/css/appstyle.css">
<meta charset="utf-8">
<meta name="RS_PagePos" content="400,40,390,400"> <!-- xleft,ytop,width,height -->
<title>Demo</title>
<script src="/jquery.js"></script>
<script src="/scpi.js"></script>
</head>
<body>
<h1 id="MyHeader">Web-App Demo</h1>
Cursor state: <span id=CursorState>0</span><br>
<span id=CursorType>Type: VERT</span><br>
<span id=CursorX1>x1: 0</span><br>
Demo App