Skip to content

Live view

The live view shows what passes the data points while it happens: every value that is read or set, every request with its status, the marks a step sets and where each step begins. It opens in a window of its own, so it can lie on a second screen while a run goes on the first.

Choose Open live view ↗ on the Data points page or on Test execution. For a finished run, Values over time (live view) in the ⋯ of the run on Runs opens what it recorded, with no filter you had set before. The window can also be opened by its address, /live. A Try this step sends nothing here: see Trying a step out.

What it is — and what it is not

The live view is a display. It decides nothing and works nothing out:

  • It shows what the run records. Every value on the screen is the entry that goes into series.json of the run — the same value, the same time stamp, the same clock, the same served by. The live view has no values of its own.
  • It does not depend on a run. It shows whatever passes the data points of the workspace, whoever serves them: the operator at the dialog, the simulation of a dry run, or a bench. The entry looks the same in all three cases; only served by and the clock differ.
  • It writes nothing. The window does not open the workspace, does not ask who is working, and does not connect to the assistant's server. Closing it loses nothing: everything is in the run.

That includes what somebody does by hand on the Data points page — Read now, Set, Run —, without a run at all: see Operating without a test.

A value somebody read or set by hand says so: operated by and the name. One that Watch read says watched. As long as a watched value does not change, the buffer keeps only where it began and where it stands now — so the last ten minutes stay ten minutes, also with many points; the line in the chart is the same.

Without a run, switch on Watch beside the bench on the Data points page: that window then shows every read point the bench serves once a second — on a simulated bench it reads them, on a real one it subscribes at its server, which sends a value only when it changes —, and the live view shows the bench as it is. A watched point that stays the same says on its newest row unchanged since … · checked ….

It listens to the other windows of this browser that have the workspace open. If none is open, it says so and says what to do: open the workspace in another window and start a run there, or switch on Watch.

Subscribing at a real bench

At a real bench, the live view can show more than what XPressRT itself reads: choose Values from a real bench… in the ⋯ at the top, tick the values and streams of its server — the speed of a motor while a step waits, a stream of 100 values a second — and Show these values. Each is listed with the data point it is bound to, or not bound with the key of the server (types/wave).

  • For watching only. The server sends at most 20 updates a second; each shows the latest value of its bundle. In the log such a value reads from bench (display only). It stands with the bench's clock and is never a reading: it is not in series.json and not in a report.
  • What was left out is said. Technical details in that panel says how many values it shows of how many came, and how many bundles the server left out because the display fell behind. The recording on the bench has every one.
  • The connection goes: the line above the filters says so, and the display starts again by itself when the server is back. Stop ends it.

The window with the workspace holds the subscription — the live view knows neither the address of the bench nor this browser's key.

The chart and the log

Numbers and switches are drawn. Numbers share one axis per unit — volts on one, degrees on another. A switch (on/off) is drawn as a stepped line in a track of its own. A mark (MARK "Trigger") is a named vertical line, the beginning of a step a faint one.

A value that was set holds until the next one is set, and is drawn that way: level up to the moment of the next setting, then the jump — number, set — stepped in the legend. A sloping line would show a ramp that never happened. Values that were measured stay points joined by a line.

A state (an enum point — Standby, Ready, Lasing) is drawn in a lane of its own, with the name of each state; hovering a step in the chart shows the name and the number behind it.

The legend stands on the left, one line per series: its colour, the point, the unit, the kind and the clock. Drag its edge to make it wider; the width is kept. Click in the chart to set a cursor: the legend shows every value at that moment, the time stands above it, and × removes the cursor.

Zoom and move the chart with the mouse. Dragging moves the time axis to earlier or later times; ⌘/Ctrl + wheel zooms in and out around the pointer. The wheel alone scrolls the page, as everywhere else. All charts move together. While you look at a part, new values do not pull the view back. Reset zoom — follow live shows the whole range again, makes the value axes automatic, and the chart follows what arrives.

The values, too. Dragging up or down moves the numbers in the chart under the pointer; from then on its value axis stays where you put it and no longer scales with what arrives. ⌘/Ctrl + Shift + wheel zooms the values around the pointer. A double-click in the chart makes its value axis automatic again; it sets no cursor and leaves one that is there. A click without dragging still sets the cursor.

Zoomed or moved, numbers of a real bench come from its recording. This window keeps the last ten minutes of what passed it; the bench's server keeps everything. As soon as the view stands still on a part, it asks the server for that span, one bucket per pixel column: the band shows the lowest and the highest value of each bucket, the line their mean — so a peak stays visible at every zoom. Zoom in far enough and the single values come, as points. A line above the chart says where it comes from — from the recording of HIL-02, 3 300 values in 894 buckets — and a span the bench has not recorded says that, instead of an empty chart.

An earlier run zooms into the recording in its folder. A run loaded from Saved runs shows what it recorded (series.json). When it ran on a real bench, its folder also holds the bench's recording (bench/, see Running on a bench); zoomed or moved, its numbers come from there — the same buckets, band and single values as from the server, without asking one: the bench may be gone long since. The line above the chart says from the recording of HIL-02 in the run folder, 1 200 values in 600 buckets. Which data point lay on which key of the recording, and with which scale, the run keeps in run.json (bench.recording.points). A run from before that takes today's binding only while it is the version the run had; otherwise the chart says The recording of HIL-02 is in the run folder, but the binding changed since; the curve shows what the run read. — and shows what series.json holds, never a curve with a wrong factor. A run whose recording was not taken says The run has no recording of HIL-02 in its folder. A run without a bench reads as before. This window keeps only the key on show, as numbers, and reads the file again when another one is shown.

Every chart and the log can be made taller or shorter with the grip under it, each on its own; the heights are kept after reloading. Drag a grip to the edge of the window and the page scrolls on — until the chart or the log is as tall or as short as it can be. A chart can be folded away.

Click a line in the log to see its moment in the chart: the chart centres on it — zoomed in if it showed everything — and draws a line there. Click more lines to mark several moments; each mark stays until you click its line again. Steps in the log are coloured by how they came out.

A safe state is a line of its own in the chart and one line per driver in the log, with what the driver answered and how it came: by hand, with the name, from the built-in step, before the run, or at Stop the run. The one at the very end of a run is not shown here; it stands in run.json. See A safe state during a run.

Everything else stands in the log, What happened, newest first: states with their name (Ready (1)), text, records and lists — field by field, each with its unit —, and requests with their parameters and their status — and a value that did not arrive (no value, with the status). Marks, steps and the beginning and end of a test case are lines of their own, each on a band of its own colour: marks red, steps grey, test cases blue, a safe state orange. A step says where it stands: Step 2 in a test case, Before this test case and After this test case around it, Before this procedure and After this procedure around the test cases.

Numbers and switches are in the log as well, each with its value, its time and its clock. Untick numbers and switches in the log to leave them to the charts.

The column How says what kind of access each value was: read (by a bench, entered by the operator, or simulated), set or request — and, after it, who served it and, where it is not ok, its status. Marks, steps and test cases have no access; their lines stay as they are.

Above the charts, the steps of one execution stand as cards, each with its outcome and what came in its time; values from before the first step stand under Before the first step. The values set last stand beside them, with the moment they were set. Cards appear under the last test case, when a test case or a variant is chosen, or when a run has only one execution. A search narrows the values and the log; a card stays whole. A saved run names its outcome, its bench, its start and end and its duration in the title, and says not live.

Whose clock

Every value carries the clock that stamped it. The clock of a bench is the bench's. A value the operator entered carries entered — the moment the dialog was confirmed —, a dry run simulated, and what nobody else stamped runner.

Those three are not bench clocks, and the view shows it: the series in the chart says entered — not a bench clock, its points are drawn hollow, and the log marks the line with ◦ (its clock in the tooltip). When values of different clocks are on the screen together, a mark on the chart and Technical details at the foot of the window say so: their times are not comparable to the millisecond.

Filters

Show and Search stay open above the chart; with a run on the screen, Search folds under Filters with the others. The other filters — Data points, Values, Events, From (bench, typed in, simulated, no bench) and Access (read, set, request) — fold under Filters; the button says how many of them are active, and the window remembers whether they were open.

Every filter button has three states. Click it to go from one to the next:

  • grey outline — no filter: shown;
  • filled — only this is shown;
  • red, struck through — this is hidden.

A third click brings it back to no filter. The tooltip of a button says its state and what the next click does. So you can filter to something, or filter something out — only Bench/, or everything except the marks.

Marks, steps, test cases and safe states stand under Events — marks, steps, test cases, safe state. They belong to no point and nobody served them, so they stay when you filter by data point, by From or by Access.

Show says what is on the screen:

  • A time: last 30 s, last minute, last 5 minutes, last 10 minutes, everything held here.
  • the last test case, from its beginning.
  • the last test run, only while a run goes. Whoever chose it keeps that view when the run ends. Afterwards the run stands under the saved runs, without a reload.
  • Saved runs (series.json): the live view loads what that run recorded and shows it like a run that just happened, with Back to live beside it. The newest 30 are listed; the others open from Runs. The Log button in a report opens exactly that, for its test case. A run of a whole procedure shows all its test cases.

Show has no list of recent runs. An address with ?window=run:…, from a bookmark or an older link, shows everything held here, and Show says so.

Choosing a test case. With a run on the screen, up to two buttons stand beside Show: its test cases and, for a test case with variants, its variants. A variant is written as on Runs and in the report, variant 1.1. From ten lines on a list has a search. A chosen execution names its word, its start and end and its duration, written as on Runs: 2m 3s. The log then holds its rows and says The preparation and cleanup of the procedure belong to no test case. They stand in Show all. A test case that did not run says so, and the log shows its one row.

Pause, beside Following, stops the display at this moment; what arrives afterwards is counted (Paused · 3 new), and Follow brings it in.

The filters are in the address of the window. Copy it to open the same view again; the browser also remembers them for the next time. A link from Runs starts without what was remembered.

Opened in the middle of a run

The window that runs the test keeps the last 10 minutes or 5 000 entries and hands them to a live view that opens later — so the course so far is there at once. If the beginning no longer fits, the live view says The beginning is cut off; if nothing at all passed in the last 10 minutes, it says that. Nothing is lost: the run has all of it.

A long course (COLLECT with thousands of samples) is sent in one piece, not sample by sample, so watching does not slow a run down.

Export

Export what is shown (CSV), in the ⋯ at the top, saves what is shown — after the filters — with time, clock, point, value, unit, status, where it came from, who served it, and for a bench its name, driver and command.