Pre-release SerialFlow 0.9.0 beta 2 works, but has rough edges. Tell us what you find.

User manual · SerialFlow 0.9.0 beta 2

SerialFlow manual

Everything SerialFlow does, where to find it, and how to use it.

Written for SerialFlow 0.9.0 beta 2 and checked against its code. Where beta 2 does not yet do what it should, an amber note says so.

New to SerialFlow? Install it, try the demo files without hardware, then connect your board. Firmware developers start with graphs from your firmware and status windows. Look up a command in the cheat sheet. When something goes wrong, see Troubleshooting. Working with an AI assistant? Give it the AI reference.

Install and first start

What you need

WindowsWindows 11, 64-bit (x64). Windows 10 (64-bit) should work, but has not been tested yet
.NETNothing to install. The .NET 8 runtime is built into SerialFlow
DownloadSerialFlow-win-Setup.exe, about 79 MB
Administrator rightsNot needed to install or run. Only the optional FTDI latency-timer setting needs them (FTDI latency timer)
Serial hardwareAnything Windows shows as a COM port: on-board UARTs, USB-serial adapters (FTDI, CH340, CP210x, …), USB-CDC boards and debug probes with a virtual COM port
ScreenThe window opens at 800 × 600 pixels and can shrink to 400 × 500
PriceFree to use, for personal and commercial work

Install

  1. Download SerialFlow-win-Setup.exe from the product page or from github.com/Lizerd/SerialFlow-Releases. Don’t download it from anywhere else.

  2. Run it. Windows may show Windows protected your PC. The pre-release installer is not code-signed yet, so SmartScreen does not recognise it. Click More info, then Run anyway. Your browser may also warn that the file is not commonly downloaded; keep it.

    Not code-signed: what it means. Windows cannot confirm who made the installer or that nobody changed it after it was built. Download it only from the two places above. To check your copy, run Get-FileHash .\SerialFlow-win-Setup.exe in PowerShell and compare it with the SHA-256 in the release notes on GitHub.

    Smart App Control blocks it? On Windows 11 with Smart App Control On (Windows Security → App & browser control → Smart App Control) the installer is blocked with no way past it. The only way is to turn Smart App Control off. We do not ask you to: it removes that protection for every program on the PC, not only SerialFlow, and on many PCs it cannot be turned on again without resetting Windows. The safe choice is to wait for a signed version (planned, no date yet). In Evaluation mode Windows may switch Smart App Control on later by itself; then it may stop an installed SerialFlow from starting, or block an update.

  3. The installer puts SerialFlow in %LocalAppData%\SerialFlow, for your Windows user only, adds it to the Start menu and starts it.

To install a newer version, you don’t uninstall first. SerialFlow updates itself (Updates), or you run the newer installer.

The first start

A small window opens with the title SerialFlow Terminal (beta). It shows the terminal and the Quick Send Bar only; ☰ → View opens the other panes (Panes). Once it is drawn, three things happen, one after the other:

  1. The demo files are copied to Documents\SerialFlow\Demo. This happens once per PC. If you delete the folder, SerialFlow does not copy it again; the originals stay in %LocalAppData%\SerialFlow\current\Demo. See Try it without hardware.
  2. Can SerialFlow count you? asks whether SerialFlow may send an anonymous daily count. Choose Yes, count me in or No thanks; closing the dialog counts as No thanks. The link What is sent, and what is not opens the privacy statement. After a no, SerialFlow asks again 14 days later, and every 14 days after that, with a Don’t ask me again tick box that ends it. Change your answer any time in Settings → About; turning the counts off there is final (Privacy).
  3. The update check runs, if it is on (it is by default). When there is nothing newer, or the PC is offline, you see nothing (Updates).

Nothing has to be set up before you use SerialFlow. Pick a port and connect (Connecting to a port), or play a demo file without hardware (Try it without hardware).

A blank window. On some PCs every WPF program, SerialFlow included, stays blank or white when it draws with the graphics card. SerialFlow can draw without it:

  1. Start it once with --software: press Win+R and run "%LocalAppData%\SerialFlow\current\SerialFlow.App.exe" --software.
  2. Tick Settings → About → Use software rendering. From the next start, SerialFlow draws this way on this PC.

The environment variable SERIALFLOW_SOFTWARE_RENDERING=1 does the same.

Where SerialFlow keeps its files

FolderWhat is in it
Documents\SerialFlow (the main folder)app-config.json; profiles\<name>\profile.json and layout.xml (one folder per profile); canvas\ (canvas dashboards, with their pictures in canvas\images\); logs\ (auto-log files); recordings\ (Data Collector); sessions\ (where Save Session starts); captures\ (files the device saved, see Device commands); Demo\
%APPDATA%\SerialFlowbootstrap.json, which says where the main folder is, and backup\: a copy of app-config.json, every profile and every canvas, made each time one is saved. The last 10 versions of each file are kept
%LocalAppData%\SerialFlowThe program itself (current\) and SerialFlow’s own event log (logs\, see Settings → Event Logging)

What is stored where. Almost everything you set lives in the active profile. A few choices belong to the PC and stay the same whichever profile is active:

app-config.json (this PC)The profile (profile.json + layout.xml)
Which profile is activeEvery port and its settings (baud, data bits, FTDI latency, names, colours)
Check for updates on startupTerminal, colours, toolbar, ☰ menu, shortcuts
Send anonymous usage counts, and the counts not sent yetQuick Send buttons, macros, auto-reply rules, keyword rules
Whether the demo files have been copiedGraph, signal and dashboard settings
Use software renderingWindow size and position, and the arrangement of the panes (layout.xml)

SerialFlow saves the profile when you close it, when you press OK or Apply in Settings, and with Save Profile (Ctrl+S).

Moving the main folder. Settings → General → Main Folder → Change… copies app-config.json, the profiles, the canvas dashboards and the logs folder to a folder you choose. Restart SerialFlow afterwards. The old folder stays as it was. The Demo, recordings and sessions folders are not copied; move them yourself if you need them. Open shows the folder in Explorer.

Backups. Settings → General → Backup & Recovery shows the backup folder, its size and the time of the last backup. Restore from Backup copies the newest backup over your data; restart SerialFlow afterwards. If the main folder is missing at start-up and a backup exists, SerialFlow asks: Your SerialFlow data folder is missing or empty, but a backup was found. Would you like to restore from backup?

Updates

At each start, if Settings → About → Check for updates on startup is ticked, SerialFlow reads a small version file, https://lizerd.se/serialflow/latest.json. It waits at most 5 seconds and sends nothing of yours. If the PC is offline or the file can’t be read, you see nothing. SerialFlow does not check again until the next start.

When a newer version exists, a dialog shows the new version, what is new and a Full release notes link:

ButtonWhat happens
Install and restartThe update is downloaded from GitHub and installed, and SerialFlow restarts. The status bar shows Downloading SerialFlow … meanwhile. Your profiles and settings are kept
Not nowNothing. You are asked again at the next start

If your version is no longer supported, the dialog says Please update SerialFlow. The version file can also carry a short notice for everyone; it appears in the status bar at start-up.

  • Turn the check off: untick Settings → About → Check for updates on startup. The choice belongs to this PC.
  • Update by hand: download the newest installer from the product page and run it.
  • If SerialFlow was not installed with the installer (a copied folder), Install and restart opens the download page in your browser instead.

Privacy

SerialFlow works fully offline. Your serial data, logs and settings never leave your PC. It goes online for two things only:

  • The update check (Updates): on by default, can be turned off.
  • The anonymous usage count: only if you said Yes, count me in. At most once a day it sends this to https://lizerd.se/api/serialflow/v1/ping:
SentExample
App version0.9.0-beta.2
Windows version, major onlywin11, win10 or other
Release channelbeta
Minutes SerialFlow was open since the last count (at most a week)95
Whether this is the first count from this PC today, this week, this month and evertrue / false / false / false

There is no ID, no computer or user name, and nothing about your ports, devices, data or settings.

How the count works:

  • Minutes are counted only while you have said yes, and only while SerialFlow is open. When the PC sleeps, the time asleep is not counted.
  • The first send of the day is tried right after start-up, then every 15 minutes while SerialFlow is open. Nothing is sent when you close it.
  • If a send fails (offline), it is tried again an hour later. The minutes wait until it succeeds.

Change your mind: Settings → About → Send anonymous usage counts. The choice belongs to this PC, not to a profile. Full details: Privacy.

Uninstall

Open Windows Settings → Apps → Installed apps, find SerialFlow, and choose Uninstall. This removes %LocalAppData%\SerialFlow: the program and its event log.

Your own files stay: Documents\SerialFlow (profiles, logs, recordings, demo files) and %APPDATA%\SerialFlow (backups). Delete both folders by hand if you want nothing left.

If you lowered an FTDI adapter’s latency timer with Restore original on close turned off, the adapter keeps the new value after SerialFlow is gone (FTDI latency timer).

The main window

On the product page: Logger →

The parts of the window

From top to bottom:

PartWhat it is
ToolbarOne row of buttons and lists, starting with ☰ (The toolbar)
Port stripOne chip per open port. It appears only when two or more ports are open (Several ports at once)
Document areaThe Terminal tab (the main log) and the Window 1 to Window 9 tabs
PanesTool windows such as Transmit, Search and the graphs, docked around the document area (Panes)
Quick Send BarA one-line send box with a > prompt. On by default; ☰ → View → Quick Send Bar hides or shows it
Status barConnection, counters and messages (The status bar)

The toolbar

The buttons are icons. Point at one to see its name; the names below are those tooltips. Toggle buttons show whether their pane or option is on.

ButtonWhat it does
☰Opens the main menu (The ☰ menu). It is always first and can’t be hidden
Serial Port (list)The COM port of the active port workspace
Baud Rate (list)The baud rate, from 9 600 to 3 000 000
Connect / DisconnectOpens or closes the port (F5). The icon is green when connected, amber while connecting or reconnecting, red when not connected
Add Port (new terminal)Opens a new, empty port workspace, so you can use several ports at once
Refresh PortsReads the list of COM ports again
Transmit Panel, Search Panel, Hex View, Statistics, Macros, Data Logger, Keyword Highlighter, Quick Send Buttons, CRC Calculator, Auto-Reply, Bookmarks, Graph Bookmarks, Graph Markers, Port Info, Data Collector, Saved CapturesShow or hide that pane
Quick Send BarShows or hides the one-line send box above the status bar
Add Auxiliary WindowOpens the next free terminal window, Window 1 to Window 9
Clear TerminalClears the log and Window 1–9 of the active port (Ctrl+L)
Auto ScrollKeeps the log scrolled to the newest line (Ctrl+End)
Raw Display (show all RX data)Shows everything received as plain text, with graph and terminal commands switched off (Ctrl+R)
Documentation & Code GeneratorOpens a reference window with the commands, the ANSI colours and the terminal windows
Panel Configuration ManagerOpens Panel Configuration for graph and dashboard presets
Signal ManagerOpens the Signal Manager (units, computed signals, value-range rules)
New Canvas DashboardOpens a new, empty canvas dashboard
Application Profile (list)Switches to another profile. SerialFlow saves the current one first
Reset LayoutPuts the panes back in the standard arrangement
SettingsOpens Settings (Ctrl+,)
Load RX Test FileSame as ☰ → Test → Load Test File (Try it without hardware)
Start Delayed Playback / Stop PlaybackSame as ☰ → Test → Delayed Playback. While playback runs, the icon turns into a red stop button and its tooltip shows the progress
Dump Layout State to Debug Output, Dump Settings to Debug OutputDeveloper tools. They write to a debugger’s output, so you see nothing; you can hide them

A new profile shows every button. The toolbar is one row and does not wrap, so in a narrow window the buttons at the right-hand end are cut off. To get a shorter toolbar, pick a preset in Settings → Toolbar → Preset, for example Simple Terminal or Minimal. The presets, and how to show, hide, move and colour each button, are in The toolbar.

The ☰ menu

☰ opens one list with six headings: Profile, Connection, View, Tools, Test and Settings. The headings only group the items; this manual writes a path like ☰ → Tools → Port Details…. Items under View show a tick when their pane or option is on.

SectionItemWhat it does
ProfileSave ProfileSaves the settings and the pane layout into the active profile (Ctrl+S)
Switch Profile ▸Lists your profiles; click one to switch to it
Save As New Profile…Saves the current setup under a new name and switches to it
Manage Profiles…Opens Settings → Profiles
Import Profile…Reads an exported .sfprofile file and switches to it
Export Profile…Writes the active profile to a file
ConnectionConnectOpens the port chosen in the toolbar
DisconnectCloses the active port
Add PortOpens a new, empty port workspace
Refresh PortsReads the COM port list again
ViewTransmit Panel, Search Panel, Hex View, Statistics, Macros, Data Logger, Keyword Highlighter, Signal Lines, CRC Calculator, Auto-Reply, Bookmarks, Data Collector, Saved Captures, Graph Bookmarks, Graph Markers, Port Info, Quick Send Bar, Quick Send ButtonsShow or hide that pane
Auto ScrollKeeps the log scrolled to the newest line
Raw DisplayShows all received data as text, with commands switched off
Hidden Views ▸Lists every hidden pane, graph, dashboard and canvas of every port; click one to show it, or Close All Hidden Views at the top to empty the list
ToolsAdd WindowOpens the next free terminal window (Window 1–9)
Clear TerminalClears the log and Window 1–9 of the active port
Reset LayoutPuts the panes back in the standard arrangement
Reset All to DefaultsResets the active profile to factory settings and the standard layout, after you confirm Reset profile ‘…’ to factory defaults? The window size, canvas dashboards and event-log settings are kept, and other profiles are not touched
Doc & Code GenOpens the Documentation & Code Generator reference window
Port Details…Opens Port Details (Port Info and Port Details)
Send File…Opens Send File
Panel Configuration…Opens Panel Configuration
Signal Manager…Opens the Signal Manager
Graph Styles…Opens the graph style editor
RX Error Collector…Lists the graph lines and binary frames that were rejected, with the reason
New Canvas DashboardOpens a new canvas dashboard
Open Canvas Dashboard…Lists the saved canvas dashboards, newest first, and opens or deletes the one you pick
TestLoad Test FileFeeds a file in as if it had arrived from the port (Try it without hardware)
Delayed PlaybackPlays a file line by line; choose it again to stop
SettingsSettingsOpens Settings. It is always in the menu and can’t be hidden

You can hide, rename, recolour and reorder the items in Settings → Hamburger Menu.

Panes

The middle of the window holds documents: the Terminal tab and the Window 1 to Window 9 tabs. The firmware opens a window the first time it writes to it; Add Window opens one by hand. The Window tabs can be closed. With one port open the main Terminal can’t be; with two or more, a port’s Terminal tab closes that port (Several ports at once).

Everything else is a pane docked around the documents. Every pane title ends with its port, for example Statistics (COM4).

PaneOpen it withOne per port or shared
Transmittoolbar, ☰ → View → Transmit Panelper port
Searchtoolbar, ☰ → View → Search Panelper port
Hex Viewtoolbar, ☰ → View → Hex Viewper port
Statisticstoolbar, ☰ → View → Statisticsper port
Macrostoolbar, ☰ → View → Macrosper port
Quick Sendtoolbar, ☰ → View → Quick Send Buttonsper port
Data Loggertoolbar, ☰ → View → Data Loggerper port
Auto-Replytoolbar, ☰ → View → Auto-Replyper port
Bookmarkstoolbar, ☰ → View → Bookmarksper port
Graph Bookmarks, Graph Markerstoolbar, ☰ → Viewper port
Signal Lines☰ → View → Signal Linesper port (DTR, RTS and modem lines)
Graphsopened by the firmware’s graph lines, or Panel Configurationper port
Keyword Highlightertoolbar, ☰ → View → Keyword Highlightershared: its rules apply to every terminal
CRC Calculatortoolbar, ☰ → View → CRC Calculatorshared
Port Infotoolbar, ☰ → View → Port Infoshared
Data Collectortoolbar, ☰ → View → Data Collectorshared: one recording covers every port
Saved Capturestoolbar, ☰ → View → Saved Capturesshared: the files every port’s device saved (The Saved Captures pane)
Canvas dashboards☰ → Tools → New Canvas Dashboard or Open Canvas Dashboard…shared

Move a pane. Drag its tab. While you drag, dock targets appear; drop the tab on one to dock it there, or on the middle of a pane to make it a tab in that pane. Drop it anywhere else to float it as its own window, for example on a second screen.

Right-click a pane’s tab for these:

ItemWhat it does
Pop OutTurns the pane into its own window, in one click (Pop out and full screen)
Pop Out Full ScreenThe same, and maximizes that window on its screen
FloatTurns the pane into its own window
DockDocks a floating pane again
Dock as DocumentMoves the pane into the document area, as a tab beside the Terminal
Auto HideFolds the pane into a tab at the window edge; it slides out when you point at it
HideHides the pane, like its ✕
Show Port ▸With two or more ports open: shows the same pane of another port
Views ▸Lists the extra views of this pane and offers New View on a port
Close ViewCloses an extra view (only on extra views)
Hidden Views ▸Lists every hidden pane, graph, dashboard and canvas of every port; click one to show it, or Close All Hidden Views at the top to empty the list

Right-click the Terminal tab for Open New Port / Terminal, Hidden Views, Pop Out, Pop Out Full Screen, Float, Dock as Document, Close and Close All But This, plus Show Port when two or more ports are open. Close closes a Window tab, or a port’s Terminal tab and with it the port. Close All But This closes every other Window tab and every other port. With one port and no Window tabs open, both are greyed out.

Hide and show. The ✕ on a pane hides it. Bring it back with its toolbar button, its ☰ → View item, or Hidden Views: right-click any tab, or open ☰ → View → Hidden Views. That list holds every hidden pane of every port, and hidden graphs, dashboards and canvases too. Close All Hidden Views, at the top of that list, empties it: the panes every port has only leave the list, extra views close, graphs and dashboards the device made are removed, and canvases close (their files stay). It asks first when something closes.

Reset the layout. ☰ → Tools → Reset Layout (or the Reset Layout button) gives the standard arrangement: the Terminal only. The other panes stay hidden until you open them: Transmit and Search open below the terminal, the rest, such as Hex View and Statistics, as tabs in a pane on the right.

The arrangement is saved in the profile (layout.xml) when you close SerialFlow and with Save Profile, so each profile has its own.

In beta 2: dropping the Quick Send pane from the document area on a side dock target can fail. SerialFlow then puts the panes back and says That docking move is not supported for this panel; it was put back. Drag it again.

Pop out and full screen

Any pane or tab can get a window of its own in one click, for example a graph or a dashboard on a second screen:

  • Pop Out turns it into a floating window. Drag that window to another monitor.
  • Pop Out Full Screen does the same and maximizes the window on its monitor. Choose it again on a maximized window to make it normal size.
The SerialFlow main window with the terminal, and the Speed Control graph popped out into its own window beside it.
A graph popped out beside the main window.

Both are in the right-click menu of every tab, the Terminal and Window tabs included. Graphs, the Signal Dashboard and canvas dashboards also have Pop Out and Full Screen buttons on their own toolbars; press Full Screen again to restore the window.

A popped-out pane is an ordinary floating pane: Dock in its tab menu, or a drag onto a dock target, puts it back in the main window.

The status bar

The status bar always shows the active port: the one whose workspace you last clicked.

FieldWhat it shows
● dotGreen: connected. Amber: connecting, reconnecting or disconnecting. Red: not connected, or an error
COM4: 115200The port and baud rate of the active workspace. It reads No Port after a disconnect, or when no port has been chosen
Red textThe last connection error. Settings → Diagnostics → Error Display sets how much you see: Minimal (the red dot only), Normal (this text, the default) or Verbose (this text and a dialog with the details)
MessageThe latest message, for example Connected to COM4. Messages from one port may start with its name, such as [COM4]. Information disappears after 5 seconds; warnings and errors stay until the next message. A few messages carry a button, for example to undo, for 30 seconds. A dashboard alarm shows as Alert: … with an Acknowledge button (Alarm sounds)
RX:Bytes received on the active port, from the wire. Data from a test file is not counted here; the Statistics pane’s Parsed rate counts it
TX:Bytes sent on the active port
Lines:Lines in the active port’s log
Err:Graph lines and binary frames rejected since SerialFlow started, on all ports. Red when it is above 0. ☰ → Tools → RX Error Collector… shows each one with its reason
RX: … /sBytes received per second
v0.9.0-beta.2The SerialFlow version

Messages that point to a problem are explained in Troubleshooting.

Keyboard shortcuts

The 16 app shortcuts, such as F5 to connect and Ctrl+F to find, are listed in Keyboard shortcuts, where you can also change them. Press F1 in SerialFlow for the same list. Graphs have keys of their own: Mouse, wheel and keys.

A compact logger window

To keep a small log window beside your IDE:

Three small SerialFlow windows showing the same motor-drive log: without timestamps and line numbers, with both switched on, and with the find bar and four highlighted matches.
The compact layout: timestamps and line numbers off, both on, and find with keyword highlighting, in a small window.
  1. Settings → Toolbar → Preset → Simple Terminal (or Minimal), then OK.
  2. Hide the panes you don’t need with their ✕. ☰ → View brings any of them back.
  3. The send line under the log is the Quick Send Bar (☰ → View → Quick Send Bar). Type and press Enter: it sends the text with the line ending and clears the box. Ctrl+Enter sends it without a line ending. Settings → Behavior → Quick Send Bar changes what the keys do.
  4. Make the window as small as you like (down to 400 × 500). Ctrl+T, or Settings → Behavior → Always on Top, keeps it above the IDE.
  5. Press Ctrl+S to keep this in the profile. To keep a full workspace too, use ☰ → Profile → Save As New Profile… for each and switch with the profile list.

Connecting to a port

Connect in three steps

  1. Pick the port in the Serial Port list on the toolbar. Each entry shows the COM name and the name Windows gives the device, for example COM3 - USB Serial Device. Settings → Diagnostics → Port Dropdown chooses Minimal (COM3), Normal (the default) or Extensive (adds the chip, for example [CH340], and the USB serial number when the device has one: COM12 - USB Serial Port [FTDI] · SN A1B2C3).
  2. Pick the baud rate in the Baud Rate list. It must match your device.
  3. Connect: the Connect button, F5, or ☰ → Connection → Connect. The status bar says Connected to COM3 and the dot turns green. If another program has the port open, it says Connection failed: COM3 is in use by another program.

To close the port, use the same button, F5 again, or ☰ → Connection → Disconnect. A port you disconnect yourself stays disconnected; it is not reconnected automatically.

  • The port list updates by itself when a device is plugged in or removed (Unplug, reconnect and sleep). Refresh Ports reads it at once.
  • SerialFlow remembers the port and baud rate in the profile, and the device’s USB serial number when it has one, so it finds the device again under another COM number (Follow a device by its serial number). To connect at start-up, tick Settings → Behavior → Auto-connect on Startup. Auto-connect on Profile Load connects when you switch to a profile.
  • If you pick another port while connected and press Connect, the workspace closes the old port and opens the new one. To use two ports at the same time, use Add Port (Several ports at once).

Baud rates

The list has 11 fixed rates: 9 600, 19 200, 38 400, 57 600, 115 200, 230 400, 460 800, 921 600, 1 500 000, 2 000 000 and 3 000 000. There is no field for other rates. The default is 115 200.

If your adapter can’t go as fast as 3 000 000, shorten the list: Settings → Port → Max offers 921 600, 1 500 000, 2 000 000 and 3 000 000 (the default). Rates above it are left out of both lists.

Port settings

Settings → Port holds the settings of the active port. Each port in a multi-port setup has its own. Changes take effect the next time the port opens: disconnect and connect again.

SerialFlow Settings on the Port page: port, baud rate with Max, data bits, parity, stop bits, handshake, DTR and RTS, FTDI latency timer and timeouts.
Settings → Port, with the default values.
SettingChoicesDefault
PortThe same list as the toolbar, with Refresh and Port Details…—
Baud Rate9 600 to 3 000 000, up to Max115 200
Max921 600, 1 500 000, 2 000 000, 3 000 0003 000 000
Data Bits5, 6, 7, 88
ParityNone, Odd, Even, Mark, SpaceNone
Stop BitsOne, Two, OnePointFiveOne
HandshakeNone, XOnXOff, RequestToSend, RequestToSendXOnXOffNone
DTR EnableRaise DTR when the port opensoff
RTS EnableRaise RTS when the port opensoff
Override Latency Timer, Value (ms), Restore original on closeSee FTDI latency timeroff, 16, on
Read (ms)100–30 000500
Write (ms)100–30 000500
Non-blocking reads (faster response, higher CPU)When off, each read collects more data, which suits high baud rates and USB adapterson
Max RetriesReconnect attempts after the device is lost; 0 = no limit5
Retry Delay50–5 000 ms before the first retry100 ms

Two stop bits can’t be used with 5 data bits, and OnePointFive works only with 5 data bits. Other combinations end in Connection failed: Invalid port configuration.

Settings → Communication has three more:

SettingChoicesDefault
TX Line EndingNone, CR, LF, CRLF: what is added to each line you sendCRLF
RX Line EndingAuto, CR, LF, CRLF: how received CR and LF end a line (Line endings)Auto
EncodingUTF-8, ASCII, Latin-1: how received bytes become textUTF-8

RX Line Ending and Encoding apply to every open port when you close Settings with OK, without a reconnect.

DTR, RTS and modem lines

Set DTR and RTS with DTR Enable and RTS Enable in Settings → Port. SerialFlow sets them when it opens the port. With Handshake set to RequestToSend, the flow control drives RTS.

The Signal Lines pane (☰ → View → Signal Lines) shows the connected port’s input lines, CTS, DSR, DCD and RI, as they change. Its DTR and RTS switches set those two lines at once. If the port refuses, the switch flips back and the status bar says so, for example The port did not accept RTS on. Without a connected port it says Connect a port to set DTR and RTS.

DTR Enable is off by default. Some boards send nothing until DTR is on: Pico SDK USB stdio, TinyUSB CDC devices, and native-USB Arduinos with while (!Serial). When a USB CDC port that was opened with DTR off has sent nothing 3 seconds after connecting, the status bar says so: COM7 has sent nothing yet. It is a USB CDC port opened with DTR off: … Tick DTR Enable and connect again. SerialFlow does not switch DTR on by itself: on some boards DTR resets the board, or starts its bootloader.

Unplug, reconnect and sleep

Two settings in Settings → Behavior → Recovery control this. Both are on by default.

SerialFlow Settings on the Behavior page: window behaviour, auto-connect, recovery, echo colours and Quick Send Bar keys.
Settings → Behavior: Auto-reconnect on disconnect and Auto-detect USB port changes are under Recovery.
SettingWhat it does
Auto-reconnect on disconnectTries to reopen a port whose device was lost
Auto-detect USB port changesChecks for new or removed ports about every 3 seconds, updates the port list and says Port detected: COM5 or Port removed: COM5

When you pull the cable of a connected device, the status bar says Device removed - reconnecting… (or Device disconnected - reconnecting…) and the dot turns amber. SerialFlow then retries: the first time after Retry Delay, and after that with twice the wait each time, up to 30 seconds, for Max Retries attempts. When the device comes back, it tries at once, and the status bar says Reconnected successfully. If the retries ran out first, it still reconnects when the port appears again. With Auto-reconnect on disconnect off, the status bar says Device removed and the dot turns red. A device with a USB serial number is also found when it comes back under another COM number (Follow a device by its serial number).

Sleep and wake. Before the PC sleeps, the status bar says System suspending - pausing connections…. Two seconds after it wakes, SerialFlow says System resumed - refreshing ports…, reads the port list again and reconnects each port that was lost, as long as Auto-reconnect on disconnect is on.

FTDI latency timer

An FTDI adapter holds received bytes for up to its latency time (16 ms unless changed) before it passes a part-filled USB packet to the PC. A shorter time makes graphs and replies snappier.

  1. Start SerialFlow as administrator: right-click it in the Start menu, More → Run as administrator.
  2. In Settings → Port → FTDI Latency Timer, tick Override Latency Timer and set Value (ms), 1–255.
  3. Leave Restore original on close ticked to put the old value back when the port closes.
  4. Connect. The status bar says, for example, Connected to COM5 (FTDI latency: 1 ms).

SerialFlow writes the value into the adapter’s driver settings in the Windows registry just before it opens the port. As the warning on the page says, this changes the adapter for every program that uses it, until the value is restored.

Without administrator rights the value can’t be written. The port still opens, and the status bar warns, for example: Connected to COM5. The FTDI latency timer of COM5 was not set to 1 ms: Windows only lets an administrator change it. COM5 keeps its current 16 ms. Port Details → FTDI Devices → Latency (ms) shows the value in use.

Port Info and Port Details

Port Info (toolbar or ☰ → View → Port Info) lists the COM ports in a pane: Port, Friendly Name, Type, Chip, VID:PID, Serial #, Manufacturer, Driver Ver and Avail.

Port details list for an STMicroelectronics ST-Link virtual COM port.
Port Details → Port Detail: VID/PID, driver and manufacturer of the selected port.
ButtonWhat it does
RefreshScans the ports again
Details…Opens Port Details
Use Selected PortPuts the selected port in the toolbar’s port list. You still press Connect

To show the pane at every start, tick Settings → Diagnostics → Show Port Info panel on startup.

Port Details (☰ → Tools → Port Details…, Settings → Port → Port Details…, or Details… in Port Info) is a window with four tabs:

TabWhat it shows
All PortsEvery COM port with its friendly name, type, chip, VID:PID, serial number, manufacturer, driver version, device ID and hardware ID, and whether it is available or virtual. Use Selected Port works as in Port Info
Port DetailAll properties of one port. Copy All copies them, handy for a bug report
FTDI DevicesThe FTDI driver (VCP and D2XX versions, provider, signature) and each FTDI device with its serial number, location, driver version and Latency (ms). Connect by Serial # connects the active port to the selected device
System InfoHow many ports there are of each type: hardware, USB serial, FTDI, virtual and Bluetooth

Refresh scans again; Auto-Refresh scans every 5 seconds.

Connect by Serial # points the active port workspace at the selected FTDI device and connects. From then on the workspace follows that device by its serial number (Follow a device by its serial number). If the device is not plugged in, the status bar says No device with serial number … is plugged in.

Follow a device by its serial number

Windows gives each USB adapter a COM number the first time it sees it, and a device can come back under another number: in another USB socket, on another PC, or after a driver update. SerialFlow follows such a device by its USB serial number, so a workspace that was on COM5 finds its board again on COM12.

What is remembered. When you pick a port for a workspace (the toolbar list, Connect, the terminal’s Port — menu, Use Selected Port, or Connect by Serial #), SerialFlow stores the device’s serial number and VID:PID with the workspace, in the profile. A device whose ports share one serial number, such as a debug probe or a board with two USB CDC ports, is told apart by its USB interface number. A workspace from beta 1 learns its device the first time it connects. Choosing a port in Settings → Port stores the COM number only.

When it is used:

  • At start-up and when the port list is read again: a workspace that is not connected, and whose device is plugged in under another COM number, moves to that number. With Auto-connect on Startup it then connects.
  • When a device is plugged back in: a workspace that lost its device and is retrying, or stopped with an error, moves to the device’s new COM number and connects there with the same settings.
  • After sleep: the same, when the PC wakes up.

The status bar then says, for example, MDX-400 (SN A1B2C3) is now on COM12 (was COM5): the workspace’s name, or the device’s own name, with its serial number. A COM port that another workspace uses is never taken.

Only devices with a serial number. FTDI adapters, for example, have one. Many CH340 boards have none: they are still matched by COM number only, and can get a new one in another USB socket. If two plugged-in devices report the same serial number, the serial number is ignored and the COM number decides.

To see a device’s serial number, use Settings → Diagnostics → Port Dropdown → Extensive (the port list then shows · SN …), the Serial # column in Port Info, or Port Details.

Several ports at once

Each open port has its own workspace: its own Terminal and Window 1–9, its own panes, its own graphs A to Z, and its own auto-log file. Graph A on COM4 and graph A on COM10 have nothing to do with each other.

Add a port:

  1. Press Add Port (new terminal) on the toolbar, choose ☰ → Connection → Add Port, or right-click the Terminal tab and choose Open New Port / Terminal.
  2. A new workspace opens, named New Port, and becomes the active one. The status bar says New port added — choose a port in the toolbar and press Connect.
  3. Pick its port and baud rate in the toolbar, then press Connect.

A new workspace starts with only its Terminal and Transmit panes. Its other panes appear when you switch them on while it is the active workspace.

SerialFlow with two ports: the port strip under the toolbar with the chips MDX-400 drive (COM1) and BMS pack (COM11), and their two terminals side by side with an orange and a green tab.
Two ports, two terminals side by side, and one chip per port in the port strip.

The port strip appears under the toolbar as soon as two or more ports are open. Each chip shows:

PartMeaning
Coloured barThe port’s indicator colour, if you set one
● dotGreen connected, amber busy, red not connected (the colours follow the colour profile)
NameThe port, or your name for it with the port: Device A (COM4)
▶ / ⏹Connect or disconnect this port
✕Close this workspace: SerialFlow disconnects the port and removes its panes. On the last workspace it only disconnects

Close a port with the ✕ on its chip, or on its Terminal tab: the ✕ shows on the selected tab and when you point at a tab, or right-click the tab and choose Close. Right-click a Terminal tab and choose Close All But This to close every other port and Window tab at once. The last port’s Terminal tab can’t be closed.

Click a chip, or any tab of that port, to make it the active workspace. The toolbar’s port, baud and Connect, the status bar, the pane buttons and ☰ → View then all work on that port. So do sending, macros, Quick Send and auto-reply.

Right-click a chip, or right-click inside a terminal and open Port — name:

ItemWhat it does
Connect / DisconnectThis port only
Change COM port ▸Moves the workspace to another COM port. If it was connected, it reconnects on the new one
Rename…Gives the workspace a name, for example Device A
Clear nameGoes back to the COM name
Indicator color ▸Red, Orange, Yellow, Green, Cyan, Blue, Purple, Pink or None

The indicator colour shows on the chip and as a bar at the left of the terminal. Tick Settings → Behavior → Color Panel Chrome by Port to colour the borders and tab headers of all that port’s panes too.

A COM port belongs to one workspace at a time. Moving a workspace to a port another one uses gives COM4 already belongs to ‘Device A’. Picking such a port in the toolbar and pressing Connect switches to the workspace that owns it.

Shared between all ports: the Keyword Highlighter rules, the CRC Calculator, Port Info, the Data Collector (one recording covers every port), canvas dashboards (each widget can be bound to a different port), Settings and the profiles.

Saved with the profile: every workspace with its port, settings, name and colour. At the next start each one comes back, and with Auto-connect on Startup every port that is plugged in connects. A profile you give a colleague carries the workspaces too; they use Change COM port to point each one at their own ports.

Try it without hardware: test files and playback

On the product page: Get started →

Load Test File and Delayed Playback

SerialFlow can read a file as if it had arrived from the serial port. No port has to be connected; the status bar can read No Port. Two items in ☰ → Test do this, with matching toolbar buttons:

☰ → Test → Load Test File☰ → Test → Delayed Playback
ToolbarLoad RX Test FileStart Delayed Playback
Files offered.txt, .bin, .ans (or all files).txt (or all files)
How it feeds the fileThe whole file at once, byte for byte. Graphs, log and windows fill instantlyOne line at a time, so you watch it arrive
Clears firstNothingThe log and Window 1–9 of the active port. Graphs stay, so playback can continue a loaded run
Status barTest data loaded (… bytes)Playback started (… lines, …ms delay), then Playback complete
Stop—Choose Delayed Playback again, or press the red stop button on the toolbar

Both dialogs open in Documents\SerialFlow, where the Demo folder is. The data goes to the active port’s workspace. If that port is connected, the file’s data mixes with the live data. Load Test File stops a running playback first.

Playback speed and the DELAY header

Delayed Playback waits between lines. The first line of the file may set the wait:

DELAY:16

DELAY: and a number of milliseconds, alone on the first line. That line is not played. Without it the wait is 100 ms, which is 10 lines a second.

The pace is kept on average, also for waits shorter than Windows’ timer step of about 16 ms: SerialFlow then sends the lines that are due in small bursts. DELAY:16 plays about 60 lines a second, DELAY:1 about 1 000. If the PC is busy for a moment, playback sends at most a quarter of a second of lines at once and then goes on at its pace.

The demo files use DELAY:16. Beta 1 could not play faster than about 64 lines a second, so a file of your own with DELAY:1 now plays about 16 times faster than it did in beta 1.

The demo files

SerialFlow copies these 15 files to Documents\SerialFlow\Demo at the first start. They are a simulated bench run of an imaginary motor drive, the MDX-400: a boot log, a 40-minute speed profile with a hill climb, an overcurrent trip, thermal derating, regenerative braking and battery sag. No motor, board or port is needed. They are yours to change or delete.

Graph of motor and MOSFET temperature, pack voltage and state of charge over 40 minutes, with dashed event lines and a red limit line.
The Thermal & Battery graph from showcase_preload.txt.

Start here:

  1. ☰ → Test → Load Test File → Demo → showcase_preload.txt. Four graph tabs appear in the right pane: Speed Control, Thermal & Battery, Phase Currents and Current Vector αβ. The terminal shows the coloured boot banner and run log, and Window 1 and Window 2 hold the Drive and Battery status tables.
  2. ☰ → Test → Delayed Playback → Demo → showcase_live.txt. The run continues live for about 1 min 50 s.
FileUse withWhat it shows
README.txtNotepadThe same guide as this section
showcase_preload.txtLoad Test FileThe whole run so far: four graphs, the log, Window 1 and Window 2
showcase_live.txtDelayed Playback, after the preloadThe run continues live, with a second overcurrent trip (about 1 min 50 s)
showcase_hero_live.txtDelayed Playback, after the preloadEvery pane moving at once: speed steps, a rolling scope trace, the log and the Drive window (about 40 s)
showcase_text.txtDelayed PlaybackText only: boot log and run log at full speed, with live status windows (about 50 s)
showcase_theme_text.txtLoad Test FileA still boot log, for comparing colour profiles in Settings → Color Profile
showcase_scope_live_c.txtDelayed Playback, after the preloadLive oscilloscope frames on graph C, Phase Currents (about 16 s)
showcase_scope_live_d.txtDelayed Playback, after the preloadThe live αβ current vector on graph D (about 16 s)
showcase_features.txtLoad Test File, on its ownGraph E, Current Sensor: a noisy raw ADC current beside a clean reference. Set the graph’s display to Average with a 0.1 s interval to smooth it
showcase_compare_run2.txtLoad Test File, on its ownRun 2 · heatsink v2: the same run with better MOSFET cooling (peak 68.1 °C instead of 82.6 °C)
showcase_rx_errors.txtDelayed Playback, after the preloadThe feed over a noisy link: CRC errors, bit flips, cut-off lines. Open ☰ → Tools → RX Error Collector… to see them sorted (about 11 s)
canvas_motor_bench.txtA canvas dashboardA test-bench dashboard as text. ☰ → Tools → New Canvas Dashboard, press Edit, then Import/Export ▾ → Paste AI Text…, paste the file’s contents and import
showcase_canvas_live.txtDelayed Playback, with that canvas openDrives the canvas live through graph F (about 19 s)
motor_bench_run.sfplotA graphA saved plot session of Thermal & Battery. With any graph shown, right-click the plot → Open Session in New View…
run2_heatsink_v2.sfplotA graphRun 2 as a session. With the preload shown, press Compare… on the Thermal & Battery toolbar and pick it, to lay run 2 over run 1

Make your own test file

Any text file works: copy a capture of your device’s output, or write the lines by hand. Use the same lines your firmware prints, ANSI colour codes, graph lines (~{…}) and status-window lines (~WrLi…) included.

  • For Load Test File, any bytes work, so .bin files of raw captures do too.
  • For Delayed Playback, put DELAY: and the milliseconds per line on the first line if 100 ms is too slow.
  • Put one graph command on each line: only the first ~{…} on a line is executed.
  • Data from a file is not wire data, so the status bar’s RX: and the Statistics pane’s RX Bytes stay at 0 B. The Statistics pane shows it as Parsed (bytes per second from every source), next to Lines/sec and Graph cmds/sec.

The terminal

On the product page: Terminal →

Every port has its own terminal: the Terminal tab, with the port name in brackets, such as Terminal (COM4). It shows what the device sends, in the device’s own colours, and keeps the newest 100 000 lines by default. Status windows (Window 1 to Window 9) are terminals too; they are described in Status windows.

What the log shows

SerialFlow reads the serial data as text and shows it line by line. Before a line reaches the log, SerialFlow sorts out what is meant for the screen and what is meant for SerialFlow itself:

What arrivesWhat you see
Plain textThe text. Each line feed (LF, \n) starts a new line; a carriage return on its own (\r) goes back to the start of the line (see Line endings)
ANSI colour codes (ESC[…m)The text in that colour. The codes themselves are removed
Short colour tags (<G>…</G>)The text in that colour, without the tags (see Short colour tags)
Status-window lines (~WrLi1:…)Nothing in the log: the row goes to the status window
Graph lines (~{…})Nothing in the log: the sample goes to the graph
What you send, with Local Echo onThe sent text, optionally in its own colours (see Local echo)

Raw Display switches the sorting off, so you can see the command lines themselves (see Raw Display).

Colour and text style (ANSI)

SerialFlow understands the ANSI “Select Graphic Rendition” codes, the ESC[…m sequences that most firmware uses for colour. ESC is the byte 0x1B, written \x1B or \033 in C. Several codes can share one sequence, separated by semicolons: ESC[1;31m is bold red.

Dark terminal with a boxed MDX-400 boot banner, colour-coded status levels and colour gradient bars.
From firmware Boot banner, status levels and colour bars: all ANSI codes in the firmware’s own output.
CodeEffect
0, or nothing (ESC[m)Reset: default colours, no style
1Bold
3Italic
4Underline
9Strikethrough
22Bold off
23Italic off
24Underline off
29Strikethrough off
30 to 37Text colour, standard colours 0 to 7
90 to 97Text colour, bright colours 8 to 15
38;5;nText colour from the 256-colour palette, n = 0 to 255
38;2;r;g;bText colour, 24-bit (TrueColor), each part 0 to 255
39Default text colour
40 to 47Background, standard colours 0 to 7
100 to 107Background, bright colours 8 to 15
48;5;nBackground from the 256-colour palette
48;2;r;g;bBackground, 24-bit
49Default background
2, 5, 7, 8 and their resets 25, 27, 28Accepted, but they change nothing on screen: no dim, blink, reverse or hidden text

The 16 standard and bright colours:

nColourHexnColourHex
0Black#0000008Bright black (grey)#555753
1Red#CC00009Bright red#EF2929
2Green#4E9A0610Bright green#8AE234
3Yellow#C4A00011Bright yellow#FCE94F
4Blue#3465A412Bright blue#729FCF
5Magenta#75507B13Bright magenta#AD7FA8
6Cyan#06989A14Bright cyan#34E2E2
7White#D3D7CF15Bright white#EEEEEC

In the 256-colour palette, 0 to 15 are the colours above, 16 to 231 are a 6 × 6 × 6 colour cube (16 + 36 × r + 6 × g + b, each step 0 to 5) and 232 to 255 are 24 greys from dark to light.

Good to know:

  • A colour stays on until the firmware changes or resets it, also on the next lines. End each coloured part with ESC[0m.
  • Bold does not make a colour brighter. For bright red, use 91 (or 1;91 for bold bright red).
  • The 16 colours and the palette are the same in every colour profile. The colour profile (☰ → Settings → Color Profile) sets the terminal’s default text colour and background, the selection colour and the find colours.
  • To see the log without the device’s colours, untick ☰ → Settings → Terminal → ANSI Color Enabled. Every line is then drawn in the terminal’s default colours; the codes are still removed.
#include <stdio.h>

printf("\x1B[1;31m[FAIL]\x1B[0m sensor 3 not responding\n");     /* bold red tag   */
printf("\x1B[92m[ OK ]\x1B[0m ADC calibrated\n");                  /* bright green   */
printf("\x1B[38;5;208mOrange from the 256-colour palette\x1B[0m\n");
printf("\x1B[38;2;255;128;0mThe same orange as 24-bit colour\x1B[0m\n");
printf("\x1B[30;43m BLACK ON YELLOW \x1B[0m\n");                    /* a badge        */

Other escape sequences

SerialFlow is a log viewer first. It handles the cursor sequences that progress bars and simple menus use, but it does not emulate a full VT100 screen.

SequenceWhat SerialFlow does
ESC[2J, ESC[J, ESC[3J (any J)Clears the whole terminal, including the scrollback
ESC[K, ESC[0KClears the line from the cursor to its end
ESC[1KBlanks the line from its start up to and including the cursor
ESC[2KClears the whole line; the cursor stays where it is
ESC[H, ESC[row;colH, ESC[row;colfMoves to that row and column of the scrollback (row 1 is the oldest line kept, column 1 the first)
ESC[nA, ESC[nBMoves n rows up or down
ESC[nC, ESC[nDMoves n columns right or left
ESC[s, ESC[uSaves and restores the cursor position
Any other ESC[… with a letter at the endIgnored
ESC[?… (private sequences, such as ESC[?25l to hide the cursor)Not understood: the characters after ESC[?, such as 25l, appear as text
ESC followed by anything but [ (for example ESC 7, or ESC ] window titles)The ESC and the next character are dropped; the rest appears as text

Text after a cursor move, or after a carriage return, is written from the cursor on and overwrites what is there, as on a terminal. Text further right stays, so end a shorter redraw with ESC[K. Past the end of the line, the gap is filled with blanks.

printf("\rFlashing %3d%%\x1B[K", percent);   /* one line that counts up */

Before 0.9.0 beta 2 the cursor column was ignored: text after a cursor move went to the end of the line, ESC[K cleared the whole line and a lone CR did nothing.

Short colour tags

For simple firmware there are seven short tags. They need no escape codes, so they are easy to type in a printf:

TagColour
<R>…</R>Red
<G>…</G>Green
<B>…</B>Blue
<Y>…</Y>Yellow
<C>…</C>Cyan
<M>…</M>Magenta
<W>…</W>White

Rules:

  • Tags are upper case only. <r> or <X> stay in the text as they are.
  • Any closing tag ends the colour: </R> also closes <C>.
  • A tag without a closing tag colours the text up to the end of that line.
  • A tag colours the text only, not the background, and it does not carry across an ANSI escape code.
  • The tags work in the log and in status-window rows.

Box drawing and other characters

SerialFlow decodes the received bytes as UTF-8 by default, so box-drawing and block characters such as ╔ ═ ╗ ─ █ come out as frames, rules and bars. Send them as UTF-8: █ (U+2588) is the three bytes \xE2\x96\x88. The terminal uses Consolas by default, a fixed-width font, so columns line up (Width, word wrap and font). The shade blocks ░ ▒ ▓ line up with the rest of their row.

Choose the decoding in ☰ → Settings → Communication → Encoding:

EncodingUse it for
UTF-8 (default)Almost all firmware. Bytes that are not valid UTF-8 show as �
ASCII7-bit devices. Bytes from 0x80 up show as ?
Latin-1Devices that send 8-bit characters, one byte per character (é is 0xE9)

What you send is always UTF-8, whatever this setting.

Good to know:

  • Tab, backspace and bell (0x09, 0x08, 0x07) are kept as characters. They do not move the cursor or ring a bell.
  • A zero byte (0x00) marks the start of a packed binary graph frame. A stray 0x00 in a text stream is dropped, and the text after it still shows.

Line endings

A line feed (LF, \n) ends a line, and CR LF counts as one line end, so firmware that ends lines with CR LF or with LF alone looks the same. A carriage return on its own (CR, \r) goes back to the start of the line, and the next text overwrites it, as on a terminal: Progress 10%\rProgress 20%\n shows as one line, Progress 20%. Progress bars and spinners work this way.

☰ → Settings → Communication → RX Line Ending chooses how CR and LF end a line:

RX Line EndingA line ends atA lone CR
Auto (default), CRLFLF or CR LFGoes back to the start of the line
CRCR (an LF right after it is skipped), or a lone LFEnds the line. For devices that end their lines with CR only
LFLFIs ignored, as in 0.9.0 beta 1

With Auto, a device that ends its lines with CR only keeps writing over one line: choose CR for it. The log files get a redrawn line once, with its last text (What goes into the file).

A line that grows past about 4 000 characters while it arrives in pieces continues on a new line.

Timestamps and line numbers

WhatWhere to switch it onLooks like
Timestamps☰ → Settings → Terminal → Show Timestamps[19:53:47.384] in front of each line
Line numbers☰ → Settings → Behavior → Show Line Numbers28 │ in front of each line, counted from 1
Compact SerialFlow window: a grey timestamp column and line numbers 1 to 35 beside the MDX-400 boot and run log.
Timestamps and line numbers switched on. Both come from SerialFlow; the device sent only the text.

Both appear in grey before the text, timestamps first, in the log and in the status windows. They are for display only: Copy and the txt log file leave them out.

The timestamp is the PC’s local time when the line was last written. For a line that arrives in pieces, that is the time of its last piece; in a status window, it is the time the row was last updated.

Set the format in Timestamp Fmt on the same page. It is a .NET date and time format:

Timestamp FmtExample
HH:mm:ss.fff (default)14:23:08.042
HH:mm:ss14:23:08
yyyy-MM-dd HH:mm:ss2026-11-04 14:23:08
mm:ss.ffffff23:08.042137

Line numbers keep counting when the scrollback is full and old lines are dropped: line 100 001 shows 100001, and the oldest line kept then shows 2. Clear Terminal starts them again at 1.

Scrollback and long-term logging

The terminal keeps the newest 100 000 lines by default. When a new line comes in, the oldest one is dropped. Change the limit in ☰ → Settings → Terminal → Max Lines. The box shows an estimate of the memory it needs (about 43 MB for 100 000 lines). There is no upper limit. Each status window keeps up to 100 000 rows; that limit is fixed.

SerialFlow Settings on the Terminal page: font, Max Lines with a memory estimate, timestamps and ANSI colour.
Settings → Terminal: Max Lines shows how much memory the scrollback can take.

For runs that last days, keep the newest lines by age or by memory instead. In ☰ → Settings → Data Logger:

SettingWhat it doesDefault
Enable Long-Term Logging ModeTurns on the options belowoff
Retention ModeLineCount: keep the newest Max Lines lines (the same as without long-term logging). TimeBased: keep the last minutes. MemoryBased: stay under a memory limitLineCount
Retention (min)With TimeBased: how many minutes to keep, 1 to 10 080 (one week)30
Memory LimitWith MemoryBased: the most memory the scrollback may use, 1 to 500 MB50 MB
Auto-log all data to diskWrites every line to rotating log files (see Auto-log every session)off

Max Lines still applies in every mode, as a ceiling. To keep a long time span, raise it, for example to 1 000 000.

Scrolling and Auto Scroll

While Auto Scroll is on and the view is at the bottom, the terminal follows the newest line.

  • Scroll up with the mouse wheel to read back: Auto Scroll turns off, and the view stays where you are while data keeps arriving. Scroll back down to the bottom and it turns on again.
  • Ctrl+End turns Auto Scroll on or off. Turning it on jumps to the newest line.
  • Ctrl+Shift+End jumps to the newest line and turns Auto Scroll on.
  • The toggle is also in ☰ → View → Auto Scroll, on the toolbar (Auto Scroll) and in ☰ → Settings → Communication → Auto Scroll.
  • Jumping to a find match or a bookmark turns Auto Scroll off.

There is no pause button: data keeps coming into the scrollback while you read.

Select, copy and clear

  • Select: drag with the left mouse button. A click without dragging removes the selection.
  • Copy: Ctrl+C, or right-click → Copy. You get the text only: no colours, timestamps or line numbers.
  • Select all: Ctrl+A, or right-click → Select All. This selects the whole scrollback, so it is also the quickest way to save what is already in the log: select all, copy, and paste into an editor.
  • Clear: Ctrl+L, ☰ → Tools → Clear Terminal or the Clear Terminal toolbar button. It empties the terminal and the status windows of the active port. The firmware can clear the log too, with ESC[2J, CLR_ALL or ~ClA:.

The terminal’s right-click menu also has Add Bookmark / Remove Bookmark for the line you clicked, and a Port — submenu to connect, disconnect, change the COM port, rename the port or give it an indicator colour.

Width, word wrap and font

Lines do not wrap. A line wider than the pane runs off its right edge; the horizontal scroll bar brings the rest into view.

☰ → Settings → Terminal → Font Family and Font Size set the terminal’s font: Consolas at 13 points by default. Pick a fixed-width font, such as Courier New or Lucida Console, so columns, frames and bars line up. A font name Windows does not know falls back to Consolas, and Consolas also fills in characters the chosen font lacks. The size can be 6 to 72 points. ANSI Color Enabled on the same page switches the device’s colours on or off.

Raw Display

Raw Display shows the command lines themselves instead of acting on them. Use it while you write firmware, to check what your ~WrLi and ~{…} lines really look like.

Switch it with Ctrl+R, ☰ → View → Raw Display, the Raw Display (show all RX data) toolbar button or ☰ → Settings → Behavior → Raw Display Mode. The status bar shows Raw Display Mode ON - commands disabled.

While it is on:

  • Status-window lines, graph lines and the long-form commands (CLR_ALL, WRITE_LINE:…) appear in the log as plain text. Status windows and graphs do not change.
  • ANSI colour codes are still applied.
  • Packed binary graph frames are still decoded.
  • It applies to every port, and it is saved with the profile.

Switch it off and new lines are sorted again. Lines that arrived while it was on are not replayed.

Hex View

☰ → View → Hex View opens a hex dump of the last 100 lines of the port’s terminal. Each row shows:

SerialFlow window with the text log on the left and a hex dump on the right.
Hex View beside the log.
  • an offset (8 hex digits, counted from the first byte shown)
  • 16 bytes in hex, with a gap after the eighth
  • the same bytes as text between | bars, with a dot for anything that is not printable ASCII

The dump shows the text as the terminal stores it, encoded as UTF-8: colour codes, line endings and command lines are already removed, and the lines follow each other without a separator. It is useful to see which characters a line really holds (two spaces or a tab, ° as C2 B0), but it is not a capture of the raw bytes on the wire. Status windows are not included.

Terminal keyboard shortcuts

KeysAction
Ctrl+FOpen or close the find box
F3 / Shift+F3Next / previous match (also Enter / Shift+Enter in the find box)
EscClose the find box
Ctrl+CCopy the selection
Ctrl+ASelect all
Ctrl+BAdd or remove a bookmark on the line you last clicked
Ctrl+LClear Terminal
Ctrl+EndTurn Auto Scroll on or off
Ctrl+Shift+EndJump to the newest line
Ctrl+RRaw Display on or off

Change them in ☰ → Settings → Shortcuts. While you type in a text box (for example the send line), only the find keys, F1, Ctrl+T and macro shortcuts work as shortcuts; the others go to the text box.

Find, keywords and bookmarks

Three tools help you find your way in a long log: find for a word you are looking for now, keyword rules for words that should always stand out, and bookmarks for lines you want to come back to.

Find in the log

  1. Press Ctrl+F. A find box opens at the top right of the terminal.
  2. Type. Every match is highlighted, the view jumps to the first one, and the counter shows 1 / 12, or 0 results.
  3. Press Enter or F3 for the next match and Shift+Enter or Shift+F3 for the previous one, or click the ▼ and ▲ buttons. After the last match it starts again at the first.
  4. Press Esc, Ctrl+F or the ✕ button to close the box. This also removes the highlights.
ButtonWhat it does
AaMatch case
Ab|Whole word: the match must not touch a letter, digit or _ on either side
.*Regular expression: the text is a .NET regular expression, for example ERR\d+|FAULT
Palette buttonOpens ☰ → Settings → Color Profile, where you set the find colours

Good to know:

  • Without .* find looks for plain text, with no wildcards. With it, a pattern that is not valid shows Invalid pattern in the counter, and a pattern that takes longer than 50 ms on one line finds nothing in that line.
  • It searches the text as shown, without colour codes, timestamps or line numbers.
  • It searches the active port’s terminal. Matches in status windows are highlighted too, but not counted.
  • The counter is worked out when you type or change an option. Lines that arrive later are highlighted, but they are only counted when you change the search text.
  • Jumping to a match turns Auto Scroll off. Ctrl+Shift+End takes you back to the newest line.

The Search panel

For a find strip that stays open, use ☰ → View → Search Panel (toolbar: Search Panel). It has a text box, a counter (current / total), Prev, Next, Clear, Aa (match case) and .* (regular expression). It highlights matches in the terminal in the same way as the find box. Prev and Next, or Shift+Enter and Enter in its text box, scroll the terminal to the match.

Keyword Highlighter

Keyword rules mark words in your own colours wherever they appear, even when the firmware prints them without colour. There is one list of rules for all ports.

SerialFlow log with highlighted keywords next to a rule list with colour swatches.
Keyword rules in your own colours: TRIP, WARN, derate.
  1. Open ☰ → View → Keyword Highlighter.
  2. Make sure Enable Keyword Highlighting at the top is ticked (it is by default).
  3. Click Add. A rule keyword appears, with a bright text colour and the terminal background.
  4. Double-click the keyword, type your own, then click elsewhere to apply it.
  5. Click the FG swatch for the text colour and the BG swatch for the background.
ColumnMeaning
OnThe rule is active
KeywordThe text to mark
FGText colour
BGBackground colour
AaMatch case. Without it, trip also marks TRIP
WWhole word: OC marks OC but not the OC in CLOCK
.*The keyword is a .NET regular expression, for example ERR\d+ or temp=\d+(\.\d+)?
ButtonWhat it does
All On / All OffSwitch every rule on or off
Add / DeleteAdd a rule, or delete the selected one
Up / DownMove the selected rule
Save AsSave the rules as JSON File (.json) or Text File (.txt)
LoadLoad rules from a .json or .txt file. This replaces the list

Right-click a rule for Set FG to Terminal Color, Set BG to Terminal Color, Set Both to Terminal Colors, and the same for all rules at once.

How rules match:

  • A keyword matches anywhere, also inside a longer word (OC marks the OC in CLOCK), unless W is ticked.
  • With .*, the keyword is a regular expression. One that does not parse marks nothing, and the status bar says why. A pattern that takes too long on a line is stopped, so the terminal never stalls.
  • Where two rules mark the same text, the rule further down the list is drawn on top.
  • A keyword highlight is drawn over the device’s own colours; a find match is drawn over a keyword highlight.

The text file has one rule per line. Lines that start with # are comments. The last four fields are optional:

# Format: keyword | foreground | background | enabled | case_sensitive | whole_word | regex
TRIP | #FFFFFF | #C62828 | true | true
WARN | #1A1A1A | #FFB300 | true | true
derate | #1A1A1A | #FF8A3D | true | false

The JSON file is a list of rules:

[
  { "keyword": "TRIP", "foregroundHex": "#FFFFFF", "backgroundHex": "#C62828", "isEnabled": true, "caseSensitive": true,
    "wholeWord": true, "isRegex": false }
]

Bookmarks

A bookmark marks a line in the log, with an optional note.

SerialFlow log with highlighted bookmarked lines and a bookmark list with annotations.
Bookmarked lines, each with a note, in the Bookmarks pane.

Add or remove a bookmark in one of these ways:

  • right-click the line → Add Bookmark (or Remove Bookmark)
  • click the line, then press Ctrl+B
  • with Gutter Icons on, click in the narrow strip at the left edge of the line

A bookmarked line gets a light blue background and a small blue square in the gutter at its left edge, beside the text.

The Bookmarks panel (☰ → View → Bookmarks) lists every bookmark of the port:

ColumnMeaning
LineThe line’s number in the terminal when you set the bookmark, as in the gutter. A bookmark from before beta 2 shows —
ContentThe text of the line when you bookmarked it
AnnotationYour note
  • Click a bookmark to jump to its line.
  • Double-click it to open Bookmark Details, where you type the Annotation. Press OK to keep it.
  • Prev and Next jump to the previous and next bookmark.
  • Delete removes the selected bookmark, Clear All removes them all.
  • Export saves the bookmarks as a JSON file (bookmarks.json); Import loads such a file and replaces the list.
  • Gutter Icons and Highlight Lines switch the two marks on the line on or off.

Bookmarks are saved with the profile. Each one stays on the line it was set on: after Clear Terminal or a restart that line is gone, so the bookmark keeps its content and note but marks no line in the new log. It never jumps to a new line. Clear All removes the old ones.

Logging to a file

SerialFlow can write the log to a file in two ways: by hand with the Data Logger panel, or automatically for every session with auto-log. Both write the lines of the port’s terminal, as text without colour codes. The device can also start and stop the Data Logger, or save what is in the log, with its own commands (Device commands).

The Data Logger panel

  1. Open ☰ → View → Data Logger.
  2. Pick the format: txt, csv or binary. For txt, tick Time to start each line with the time it arrived.
  3. In Path, type the full path of the file, including its name, for example C:\Users\<you>\Documents\SerialFlow\bench.txt. The folder must exist.
  4. Press Start. The status bar says Logging started: bench.txt, and the panel’s status line reads Status: Logging | Logged: 2.9 KB and counts up.
  5. Press Stop to close the file. The status bar shows how many bytes were logged.

Good to know:

  • Start creates the file anew. A file with the same name is overwritten.
  • Only lines that arrive after Start are written. To save what is already in the log, select all (Ctrl+A), copy and paste it into an editor.
  • Each port has its own Data Logger, and it logs that port’s main terminal only. Status-window rows are not logged.
  • ~LogOn:run7 from the device starts the Data Logger on a new file in the capture folder, and ~LogOff stops it (Device commands). They work only when device commands are switched on.

What goes into the file

FormatEach line in the fileFile encoding
txtThe line’s text, as the terminal shows it. With Time ticked: [19:56:21.469] in frontUTF-8 with BOM, CR LF line ends
csvA header line time,n,text, then date time,n,"text" per line, for example 2026-11-04 19:56:21.469,27,"[ 984.000] [TRIP] Overcurrent …"UTF-8 with BOM, CR LF line ends
binaryThe line’s text followed by LF. Despite the name, this is text, not the raw received bytesUTF-8 without BOM

In all three formats:

  • A line is written once, when it is complete, with its final text. A line that arrived in several pieces is written whole, and a line the device redrew with \r is written with its last text.
  • A line without a line end, such as a prompt, is written when the next line starts, when the terminal is cleared, or when logging stops.
  • ANSI colour codes and colour tags are removed; box-drawing and other Unicode characters are kept.
  • Status-window and graph lines are not included, unless Raw Display is on.
  • What you send appears too, if Local Echo is on.

The csv columns:

ColumnContent
timeThe PC’s local time when the line arrived, yyyy-MM-dd HH:mm:ss.fff: the time the terminal’s timestamp shows
nThe line’s number in this file, counted from 1
textThe text, in double quotes. A " in the text is written as ""

The time in txt and csv is the same: when the line’s last piece arrived. Beta 1 wrote csv files without a header, with a line index counted from 0 and the time the logger wrote the line. A script written for those files must now skip the header line.

Auto-log every session

Auto-log writes every line to disk without pressing Start, in files that rotate by size.

  1. Open ☰ → Settings → Data Logger.
  2. Tick Enable Long-Term Logging Mode, then Auto-log all data to disk.
  3. Set the options below and press OK.
SettingWhat it doesDefault
Log DirectoryThe folder for the log filesempty: the logs folder in your Main Folder, normally Documents\SerialFlow\logs
Max File SizeWhen a file reaches this size, a new one starts. 1 to 500 MB50 MB
Max Log FilesWhen a file is full and the next one starts, the oldest files are deleted so that at most this many remain. 1 to 10010

Each port writes its own files, named after the port and the time the file was started, for example serial-log-COM4-20261104-195621.txt. The files have the same txt content as the Data Logger, without the time: each line is written once, when it is complete.

Good to know:

  • Auto-log starts as soon as you press OK, even before a port is connected.
  • Every time you press OK or Apply in Settings, and every time SerialFlow starts, a new file begins.
  • Old files are only deleted when a file is full and a new one starts.
  • The Main Folder is set in ☰ → Settings → General.

Data Logger or Data Collector?

Data Logger and auto-logData Collector
RecordsThe text lines of one port’s terminalEvery graph sample from every connected port, plus events
Formatstxt, csvSQLite, CSV, JSON Lines
Use it forKeeping the device’s logAnalysing measured values later, in Excel, Python or MATLAB

The Data Collector has a chapter of its own: Recording and exporting.

Sending data

On the product page: Automation →

SerialFlow sends text in five ways: the Transmit panel, the slim Quick Send Bar, Quick Send buttons, macros and auto-reply rules. Everything you send goes to the active port. Sending needs a connected port; without one, the status bar shows an error such as Send failed: not connected.

The Transmit panel

Open it with ☰ → View → Transmit Panel.

  1. Type in the text box.
  2. Press Enter or click Send.
ControlWhat it does
SendSends the text and empties the box
CR+LFAdds the line ending from ☰ → Settings → Communication → TX Line Ending (CR LF by default). Untick it to send the text exactly as typed
HexSends hex bytes instead of text (see Hex input)

↑ and ↓ in the text box step through what you sent before (see History).

The Quick Send Bar

The Quick Send Bar is a slim send line at the bottom of the window, marked >. It is on by default; hide or show it with ☰ → View → Quick Send Bar or the Quick Send Bar toolbar button. It shares the text and history with the Transmit panel, and the Transmit panel’s Hex box applies to it too.

Choose what the keys do in ☰ → Settings → Behavior → Quick Send Bar:

SettingChoicesDefault
Line EndingUse TX Setting, None, CR, LF, CRLFUse TX Setting
EnterSend + Line Ending + Clear, Send + Line Ending, Send Raw + Clear, Send RawSend + Line Ending + Clear
Ctrl+EnterThe same, or DisabledSend Raw
Shift+EnterThe same, or DisabledDisabled

Send Raw sends the text without a line ending. Clear empties the bar after sending. The send button at the right of the bar does what Enter does.

Line endings

WhereLine ending
Transmit panelTX Line Ending (☰ → Settings → Communication: None, CR, LF, CRLF; default CRLF), when CR+LF is ticked
Quick Send BarIts own Line Ending setting, Use TX Setting by default
Quick Send buttonThe button’s own Line Ending, added after every line
MacroThe macro’s Line ending, added after every text Send step. Use TX setting by default
Auto-replyThe rule’s Line ending, added after a text reply. Use TX setting by default
Any Hex send in the Transmit panel, a macro or an auto-replyNone

Hex input

Hex input sends bytes that you cannot type, such as 06 (ACK) or 1B (ESC). Write each byte as two hex digits; spaces between bytes are fine: 48 65 6C 6C 6F sends Hello. The rules differ a little per tool:

WhereAllowed besides digits and spacesOdd number of digitsLine ending added
Transmit panel and Quick Send Bar (Hex ticked)nothing elsethe last digit is droppedno
Quick Send button (Hex ticked)- and 0xa 0 is added in frontyes
Macro Send step (Hex ticked)-the last digit is droppedno
Auto-reply (Hex pattern, or a hex reply)-, and 0x at the startthe rule editor does not accept itno

An invalid character stops the send with an error in the status bar, such as Send failed: invalid hex format — ….

History

In the Transmit panel and the Quick Send Bar, ↑ brings back what you sent before, newest first, and ↓ goes forward again to an empty line. The same text sent twice in a row is kept once. The history lasts until you close SerialFlow; it is not saved.

Local echo

With Local Echo on, what you send from the Transmit panel or the Quick Send Bar also appears in the log. It is on by default; switch it in ☰ → Settings → Behavior → Local Echo. Switch it off if your device echoes what it receives, or you will see every line twice.

To tell sent lines from received ones, tick Custom Echo Colors on the same page and pick Echo FG and Echo BG (Use Terminal BG copies the terminal background, so only the text colour changes).

Good to know:

  • Quick Send buttons have their own Local Echo option, shown in the button’s text colour.
  • Macros and auto-replies are never echoed.
  • Echoed lines are part of the log: they are written to log files, and they can trigger an auto-reply rule or a macro’s WaitFor step.

Send File

☰ → Tools → Send File… sends a file to the port.

FieldWhat it does
File: / Browse…The file to send
Send Mode:Binary: the file’s bytes as they are, in chunks. TextLineByLine: one line at a time, with Line Ending after each
Line Ending:CRLF, LF, CR or None, for TextLineByLine
Chunk Size (bytes):Bytes per chunk in Binary mode. Default 1024
Inter-Chunk Delay (ms):A pause after each chunk or line. Default 0

Send starts and shows a progress bar; Cancel stops; Close closes the dialog.

Quick Send buttons

Quick Send buttons put your commands one click away. Each button can send several lines, with pauses in between.

  1. Open ☰ → View → Quick Send Buttons. The panel is called Quick Send.
  2. Click +, or right-click an empty spot → Add Button. A button Btn 1 appears.
  3. Right-click the button → Edit… to open Edit Quick Send Button.
  4. Fill in the fields below, check the Preview and press Close. Changes apply as you type.

Click a button to send. The status bar shows Sending "START"... and then Sent "START". While a button is sending, the other buttons wait.

SectionFieldWhat it does
IdentityLabel:The text on the button
Tooltip:Shown when you point at the button
DataText boxWhat to send. Each line is sent separately
+ DelayInserts a delay:100 line at the cursor
?Short help
Send OptionsHexEach line is hex bytes, such as FF 0A 1B
Line Ending:None, CR, LF or CRLF, added after every line. Default CRLF
Local Echo (display sent text in terminal)Shows what the button sends in the log, in the button’s text colour
Auto delay between linesA pause between all lines, in ms. Default 100
AppearanceText Color: / BG Color:The button’s colours
Font Size: / BoldThe label’s size (default 11) and weight

Multi-line sends with pauses. A line delay:200 waits 200 ms before the next line and sends nothing. It must be on a line of its own, in upper or lower case. An explicit delay: replaces the auto delay for that gap.

fault clear
delay:200
status

Good to know:

  • An empty line sends just the line ending. Remove empty lines at the end of Data if you do not want that.
  • Right-click a button → Remove deletes it at once.
  • Fill Width (a tick box in the panel, and in the right-click menu) stretches the buttons over the panel’s width. In a wide, low panel the buttons sit in a row; in a tall one, in a column.
  • The buttons are saved with the profile.

Macros

A macro runs a sequence of steps: send, wait, wait for an answer, and repeat.

Macro list with four entries.
The Macros pane.
  1. Open ☰ → View → Macros.
  2. Click Add. A macro New Macro appears, already selected. Click Edit, or double-click the macro.
  3. In Edit Macro, fill in the fields and add steps (below). Press OK.
  4. Select the macro and click Run, or press its shortcut. Stop cancels a running macro.
FieldWhat it does
Name:The name in the list
Description:A note, shown in the list
Shortcut:Keys that run the macro (see Shortcuts below). Click the box and press them; Clear, Backspace or Delete removes the shortcut
Repeat:How many times the whole list of steps runs. Default 1
Line ending:Use TX setting, None, CR, LF or CRLF, added after every text Send step

Steps. Type each step in a row of the Steps grid. Click the empty row at the bottom to add a step; select a row and press Delete to remove it.

TypeDataDelay / Timeout (ms)Hex
SendThe text to send, plus the line endingnot usedSend the hex bytes in Data instead, with no line ending
Delaynot usedHow long to waitnot used
WaitForText the device must answer withHow long to wait for it; 0 means 5 smust be off

WaitFor waits until a line from the device contains Data: plain text, case-sensitive, no regular expressions. It looks at lines that arrived since the last Send step, in the port’s main terminal (not in status windows). If no such line comes in time, the macro stops, and the status bar says why, for example:

Macro failed: WaitFor step 2: no received line contained "speed 1500 rpm" within 5000 ms.

While it runs, the status bar shows Running macro 'Bench cycle'..., then Macro 'Bench cycle' completed.

An example, Bench cycle:

TypeDataDelay / Timeout (ms)
Sendrun 1500
WaitForspeed 1500 rpm5000
Delay5000
Sendstop

Shortcuts. A macro’s shortcut runs it on the active port, also while you type in the Transmit box. Allowed are F1 to F24, alone or with Ctrl, Shift or Alt, and Ctrl or Alt with a letter or a digit (Shift may be added), for example Ctrl+1, Alt+R or F6. Not allowed:

  • Ctrl and Alt together (on many keyboards that is AltGr, which types @, { and so on)
  • Ctrl+A, C, V, X, Y or Z, Alt+F4 and Ctrl+F4
  • one of SerialFlow’s own shortcuts, as set in Settings → Shortcuts, or the shortcut of another macro

Edit Macro says in red what is wrong with a shortcut, and OK keeps the dialog open until it is fixed. Holding the keys down does not run the macro again, and while a macro runs on a port, a second start there is refused with a message. F1 lists the macro shortcuts that work, under Macros.

Good to know:

  • Edit Macro works on a copy: OK keeps your changes, Cancel drops them.
  • Export saves all macros as a JSON file; Import adds the macros from such a file, and replaces a macro that has the same ID. Macros are also saved with the profile, and move to another PC inside an exported profile.
  • The macros are the same in every port’s Macros panel. A macro runs on the port whose panel started it, or, for a shortcut, on the active port.

Auto-reply

Auto-reply answers the device on its own: when a line from the device matches a rule, SerialFlow sends the rule’s response.

Auto-reply rule table with match counts.
Auto-reply rules: match by text, hex or regex.
  1. Open ☰ → View → Auto-Reply.
  2. Tick Enable Auto-Reply. No rule runs without it; it is off by default.
  3. Click Add. Edit Auto-Reply Rule opens; fill it in (below) and press OK.

To change a rule, select it and click Edit, or double-click it.

Field in Edit Auto-Reply RuleWhat it does
Name:A label
Match (received line contains):What to look for in a received line
Type:PlainText, Regex or Hex (see the match types below)
Case sensitiveMatch case. Off by default
Reply:What to send back. Hex: the reply is hex bytes, such as 06 or 0D 0A, sent exactly as typed
Line ending:Use TX setting (the default), None, CR, LF or CRLF, added after a text reply
Delay before reply (ms):Wait this long before replying. Default 0
One-shot (switch the rule off after its first match)The rule replies once, then switches itself off

OK checks the rule first: it needs a pattern, a regular expression must be valid, and hex must be pairs of hex digits. Cancel drops your changes.

The list shows the rules:

ColumnMeaning
OnThe rule is active. Tick it here; the other columns change in the editor
Name, Pattern, Type, ResponseAs set in the editor
MatchesHow many lines the rule has matched, updated as they arrive. A reply that could not be sent, for example because no port is connected, shows as 5 (2 failed); point at it for the details
ButtonWhat it does
Add / Edit / DeleteAdd a rule, edit the selected one, or delete it
Up / DnMove the selected rule: rules are tried top to bottom
All On / All OffSwitch every rule on or off
ResetSet the Matches counters to 0
ImportLoad rules from a JSON file. This replaces the whole list
ExportSave the rules as a JSON file (autoreply-rules.json)

Match types:

TypeA line matches when …Example pattern
PlainTextit contains the patternWDT ping
Hexits text, as UTF-8 bytes, contains the pattern’s bytes42 4D 53 3F (BMS?)
Regexthe .NET regular expression finds a matchOvercurrent phase [ABC]

How rules run:

  • Rules are tried on whole lines. A line is tried when its line end arrives, so a line that came in several pieces is matched on its full text.
  • A line without a line end, such as a prompt Password: , is tried once nothing has arrived for 200 ms. A rule that answered it does not answer the same line again when it ends.
  • Each line is checked against the rules from the top of the list down, and every enabled rule that matches replies. There is no priority: the order of the list decides.
  • A text reply gets the rule’s Line ending, the TX line ending unless you choose another. A hex reply is sent exactly as typed.
  • Matching ignores case unless the rule says otherwise.
  • A rule with an empty pattern never matches.
  • A hex pattern can only match bytes that end up in the line’s text, so not CR, LF, ESC or 0x00.
  • Replies are sent one after another: a rule with a delay holds up the replies after it.
  • Lines you send with Local Echo on are in the log too, so they can trigger a rule.
  • If lines arrive faster than the rules can be tried (more than 65 536 waiting), the oldest are skipped, and the panel says how many.

Since 0.9.0 beta 2 a text reply ends with the TX line ending (CR LF by default). Beta 1 sent replies with no line ending. For the old behaviour, set the rule’s Line ending to None. Rules from beta 1 load with Use TX setting.

The JSON file. Export writes, and Import reads, a list of rules with these fields:

JSON fieldMeaningDefault
nameNameNew Rule
patternMatch
patternTypePlainText, Hex or RegexPlainText
responseReply. In JSON, \r\n gives a real CR LF
responseIsHextrue: the reply is hex bytes, such as "06"false
responseLineEndingUseTxSetting, None, CR, LF or CRLF: added after a text replyUseTxSetting
delayMsWait this many ms before replying0
isEnabledOntrue
isOneShottrue: the rule switches itself off after its first replyfalse
caseSensitivetrue: match casefalse
idA unique ID. Leave it out and SerialFlow makes one; never give two rules the same IDnew

A file from beta 1 with a priority field still loads; the field is ignored.

[
  {
    "name": "Watchdog",
    "pattern": "WDT ping",
    "patternType": "PlainText",
    "response": "WDT ack",
    "isEnabled": true
  },
  {
    "name": "BMS query",
    "pattern": "42 4D 53 3F",
    "patternType": "Hex",
    "response": "06",
    "responseIsHex": true,
    "isEnabled": true
  },
  {
    "name": "Trip log",
    "pattern": "Overcurrent phase [ABC]",
    "patternType": "Regex",
    "response": "log dump 200",
    "delayMs": 50,
    "isEnabled": true
  }
]

The text replies above get the TX line ending, because they have no responseLineEnding.

Status windows

On the product page: Status windows →

A status window is a table of text rows that the firmware keeps up to date, one row at a time. A new line for row 4 replaces row 4, and nothing scrolls. Each port has up to 9 status windows, Window 1 to Window 9, each in its own tab. There is nothing to set up in SerialFlow: the firmware prints the rows, and the window opens by itself.

How it works

The firmware prints short command lines that start with ~:

Animation: a text status table with speed, torque and a MOSFET temperature bar changing colour.
From firmware Status window 1 of the MDX-400 example, updated row by row by the firmware.
~WrLi1:0:DRIVE STATUS
~WrLi1:2:Speed     2594 rpm
~WrLi1:3:Torque    7.42 Nm
  • ~WrLi1:2:Speed 2594 rpm writes the text Speed 2594 rpm to row 2 of window 1.
  • The command lines do not appear in the log.
  • The first line that names window 1 opens a Window 1 tab next to Terminal.
  • Rows count from 0. Writing row 5 into an empty window leaves rows 0 to 4 empty.
  • A new line for a row replaces the whole row, so a shorter value leaves nothing behind.

Command reference

{W} is the window number, {n} the row number.

CommandFormatWhat it does
Write Line~WrLi{W}:{n}:{text}Writes text to row n, replacing what was there. Creates the row, and the empty rows before it, if needed
Update Line~UpLi{W}:{n}:{text}The same as Write Line in this release. Use whichever reads better in your code
Clear Line~ClL{W}:{n}Empties row n. The row stays, so nothing moves
Clear All~ClA{W}:Empties the whole window
Insert Line~InLi{W}:{n}:{text}Inserts a row at n with text; the rows from n down move one row down, with their text and colours
Delete Line~DeLi{W}:{n}Deletes row n; the rows below it move one row up. A row that was never written is not deleted, and nothing moves

Insert and delete suit lists that grow or shrink, such as an event list with the newest entry on top. After ~WrLi3:0:A, ~WrLi3:1:B and ~WrLi3:2:C, the line ~InLi3:1:NEW gives the rows A, NEW, B, C, and then ~DeLi3:1 gives A, B, C again.

The parser also knows these. You rarely need them:

CommandWhat it does
~ClL{W} (no row)Empties the row at the window’s cursor: row 0, unless you moved it
~ClP{W}Empties the row above the window’s cursor
~Go{W}:{row}:{col}Moves the window’s cursor to row and col, both counted from 0. col only matters in window 0
~Hm{W}Moves the window’s cursor to row 0
~En{W}Moves the window’s cursor to the last row

In a status window the cursor only matters for ~ClL{W} and ~ClP{W}. In window 0 it is the log’s cursor, so these commands change where the next log text goes, and that text overwrites what is there; avoid them there.

The fields

PartMeaning
~The prefix. It must be the first character of the line; spaces before it are allowed. See a command must start its line for the one exception
WrLiThe command name, upper and lower case exactly as in the table
{W}The window, one digit. 1 to 9 are the status windows; 0 is the main terminal. Without a digit, 0 is used
:A separator
{n}The row, a whole number from 0 up
{text}The row’s text, up to the end of the line. Spaces at its start are kept, spaces at its end are dropped

Good to know:

  • One digit only. ~WrLi12:5:x is read as window 1, row 2, text 5:x.
  • Mind the window number on Clear All. ~ClA: and ~ClA0: clear the main log, not a status window.
  • Window 0 is the log itself. ~WrLi0:5:text overwrites row 5 of the log, counted from the oldest line still in the scrollback.
  • One command per line. A second command on the same line becomes part of the first one’s text.
  • Keep row numbers small. Every row up to the one you write is created. Rows go from 0 to 9 999; a line with a row number outside that range (such as ~WrLi1:-1:x) is ignored.
  • A line that is not a valid command (a row that is not a number, or an unknown command such as ~Foo1:x) appears in the log as text.

Colours in a row

Colour a row with ANSI codes, as in the log: text colours, backgrounds, 256 colours, 24-bit colours, bold, italic, underline and strikethrough all work (see Colour and text style).

  • Each row starts in the default colours. A colour code applies up to the end of that row, not to the next one.
  • Only colour codes (ESC[…m) work inside a row. Any other escape sequence ends the row there, and the rest of the line goes to the log.
  • The short tags <R>…</R>, <G>…</G> and so on work in a row too (see Short colour tags).
  • Bars are made of repeated █ (U+2588, \xE2\x96\x88 in UTF-8). The shades ░ ▒ ▓ sit on the same line, so they work as a dim track behind the bar.
~WrLi1:3:State     \x1B[1;92mRUN\x1B[0m  closed loop
~WrLi1:8:Faults    \x1B[97;41m OC phase B \x1B[0m

Opening, docking and closing windows

  • A status window opens the first time a line names it, with any command (~ClA1: counts too). Its tab reads Window 1, with the port in brackets: Window 1 (COM4).
  • To see a table and the log at the same time, drag the Window 1 tab onto a dock target of the terminal pane, for example the lower one.
  • Close a window with the ✕ on its tab. Its rows keep updating in the background, but the tab does not come back by itself. ☰ → Tools → Add Window (toolbar: Add Auxiliary Window) reopens the lowest-numbered window that has no tab, with its current rows; on a new port it opens an empty Window 1.
  • Clear Terminal (Ctrl+L) empties the status windows of the port too, and Delayed Playback empties them before it starts. Firmware that rewrites its rows now and then recovers by itself.
  • Timestamps and line numbers, when switched on, also appear in status windows. A row’s timestamp is the time it was last written.
  • Find highlights matches in status windows too, but does not count or jump to them.
  • Keyword rules colour status windows too, from the moment a window opens.
  • While Raw Display is on, the command lines show in the log as text and the windows do not change.
SerialFlow terminal with the MDX-400 boot and run log, and the Drive status table docked underneath.
A status window docked under the log.
The log on top and three status windows side by side underneath: drive status, battery pack and motor control.
Three status windows side by side under the log.

Long forms

Older SerialFlow firmware may use long command names. They work for the main terminal (window 0) only:

Long formShort form
WRITE_LINE:{n}:{text}~WrLi0:{n}:{text}
UPDATE_LINE:{n}:{text}~UpLi0:{n}:{text}
INSERT_LINE:{n}:{text}~InLi0:{n}:{text}
DELETE_LINE:{n}~DeLi0:{n}
CLR_LINE:{n}~ClL0:{n}
CLR_LINE~ClL0
CLR_PREV~ClP0
CLR_ALL~ClA0:
GOTO:{row}:{col}~Go0:{row}:{col}
HOME~Hm0
END~En0
  • CLR_ALL, CLR_LINE, CLR_PREV, HOME and END must be alone on their line. A log line that is exactly END is taken as a command and does not appear.
  • Colour codes do not work inside a long form: the coloured part ends up in the log as a line of its own. Use the short forms for anything new. They are also shorter: ~UpLi0:3:data is 15 bytes, UPDATE_LINE:3:data is 19.

Example firmware

A small status table in plain C with printf. On Arduino, Serial.print the same strings.

#include <stdio.h>

#define RST    "\x1B[0m"
#define TITLE  "\x1B[1;96m"   /* bold bright cyan */
#define GREEN  "\x1B[92m"
#define RED    "\x1B[1;91m"

/* Once at start-up: clear window 1 and write the rows that never change. */
void status_init(void)
{
    printf("~ClA1:\n");
    printf("~WrLi1:0:" TITLE "PUMP STATUS" RST "\n");
    printf("~WrLi1:1:\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\xE2\x94\x80\n");  /* ────── */
}

/* Whenever a value changes: each printf replaces one row. */
void status_update(float flow_lpm, float pressure_bar, int fault)
{
    printf("~WrLi1:2:Flow      %6.2f l/min\n", flow_lpm);
    printf("~WrLi1:3:Pressure  %6.2f bar\n", pressure_bar);
    printf("~WrLi1:4:State     %s\n", fault ? RED "FAULT" RST : GREEN "RUN" RST);
}

Pad values with printf widths, such as %6.2f, to keep the columns straight. Print each row with a single printf, so that a row leaves the device in one go.

A row that reaches the PC in two pieces (two serial reads, such as ~WrLi1:2:Spe and ed 2200 rpm) still lands in the row whole: SerialFlow holds back an unfinished line that could be a command until its line end arrives. If the port stays quiet for 100 ms before the line end comes, SerialFlow takes what it has as the whole line, so don’t pause in the middle of a row.

Graphs from your firmware

On the product page: Graphs →

Your firmware draws graphs in SerialFlow by printing short text lines. There is no library and no plug-in: if your board can print a line, it can draw a graph. One line sets up a graph, one line sets up each signal, and then each sample is one short line. The graph lines stay out of the terminal log, so the log keeps only the text meant for people.

Each port has its own graphs: up to 26 graphs, A to Z, with up to 32 signals each.

Quick start

  1. Create the graph. Print one init line: graph letter, I, then the graph’s settings.
  2. Add the signals. Print one signal line (S) per signal: its number, type, name, unit and colour.
  3. Send samples. Print one data line (1) per sample, with the values in signal order.
~{A:I:Quick Start:500:S:T:R:Sample::0}    graph A: "Quick Start", streamer, 500 points
~{A:S:1:F32:R:Sine:V:0:4FC3F7}            signal 1: Sine, volts, light blue
~{A:S:2:F32:R:Cosine:V:0:FFB74D}          signal 2: Cosine, volts, orange
~{A:1:0.841:0.540}                        one sample of both signals

The same as an Arduino sketch. It runs as it is, with no sensor:

void setup() {
    Serial.begin(115200);
    Serial.println("~{A:I:Quick Start:500:S:T:R:Sample::0}");
    Serial.println("~{A:S:1:F32:R:Sine:V:0:4FC3F7}");
    Serial.println("~{A:S:2:F32:R:Cosine:V:0:FFB74D}");
}

void loop() {
    float t = millis() / 1000.0;
    Serial.print("~{A:1:");          // data line, X counts up by one per line
    Serial.print(sin(t), 3);
    Serial.print(":");
    Serial.print(cos(t), 3);
    Serial.println("}");
    delay(20);                       // 50 samples per second
}

On any other C platform, printf does the same:

printf("~{A:I:Quick Start:500:S:T:R:Sample::0}\n");
printf("~{A:S:1:F32:R:Sine:V:0:4FC3F7}\n");
printf("~{A:S:2:F32:R:Cosine:V:0:FFB74D}\n");
/* then, once per sample: */
printf("~{A:1:%.3f:%.3f}\n", sine, cosine);

Connect SerialFlow to the port. The first ~{A:I:…} line opens a Quick Start graph tab, and the trace scrolls as the samples arrive. Nothing needs to be set up on the PC.

SerialFlow only knows a graph after it has seen its I and S lines. If your board prints them once at start-up, before you press Connect, the data lines that follow are ignored. Reset the board after you connect, or let the firmware print its set-up lines again on request (for example when it receives a key).

The line format

Every graph command is one line:

~{G:C:field1:field2:...}
~{G:C:field1:field2:...}*XX
PartMeaning
~{Start of a graph command
GGraph letter, A to Z (capital letters only). Each port has its own set
CCommand letter, such as I, S or 1. Capitals only. See the cheat sheet
field…The command’s fields, separated by :
}End of the command
*XXOptional CRC-8: * and two hex digits
line feedEnds the line. \n or \r\n both work

Rules for every line:

  • One command per line. SerialFlow reads only the first ~{…} on a line. Anything after the } (or after the *XX) is ignored, so a second command on the same line is lost.
  • The line must start with ~. Spaces before it are fine. A line such as t=5 ~{A:1:5} is ordinary text. One exception: when the port has been quiet for at least 100 ms, a command may follow text that is already on the line, such as a prompt the device printed without a line end. The prompt stays where it is.
  • Numbers use a point: 23.5, not 23,5. No thousands separators. 1.2e-3 is fine.
  • Text fields (names, units, labels) can hold spaces and UTF-8 characters such as °, but not :, } or |. A : starts the next field and a } ends the command. A | also splits the field in this release.
  • Keep 0x00 bytes out of text output. A zero byte starts a packed binary frame. A stray one in text is dropped, and the text after it still shows.
  • Leave optional fields out at the end rather than leaving them empty in the middle. Some fields read an empty value as 0, not as the default; the tables below say which.

What SerialFlow does with a line:

The lineWhat happens
Is a valid commandIt is carried out. It does not appear in the terminal log
Is broken: no }, a graph letter that is not A–Z, an unknown command letter, a missing :, or a wrong CRCIt is shown in the log as plain text, and the RX Error Collector lists it with the reason (see CRC-8)
Has the right shape but wrong fields, such as too few fields or signal number 40It is dropped without a message. Check the field tables below
Names a graph that does not exist yetDropped, except I, which creates the graph

Lines that arrive in pieces. SerialFlow reads the port in blocks, and a block can end in the middle of a line, for example ~{A:1:10 in one read and 0:200} in the next. An unfinished line that could still become a command is held back until its line end arrives, so the command runs as one line. If no more data comes for 100 ms, SerialFlow takes what it has as the whole line: a command sent without a line end still runs, and a command cut off by a pause is rejected as broken.

Create a graph: I

~{G:I:name:buffer:mode:xtype:xdisplay:xlabel:xunit:xprefix}
#FieldMeaningValuesDefault
1nameTitle of the graph tabTextRequired (may be empty)
2bufferStreamer: points kept per signal; the visible X window is as wide as these points. Frame: most points one frame can hold, per signal. Logger: not usedWhole number above 01000 if empty, 0 or not a number
3modeHow the graph keeps data. See Graph modesS streamer, L logger, F frameRequired. Any other value gives a streamer
4X typeTime or value axis. Stored with the graph and in saved sessions; it does not change how the axis is drawnT time, V valueRequired (may be empty: T)
5X displayRaw or formatted numbers. Stored with the graph; both look the sameR raw, F formattedRequired (may be empty: R)
6X labelText under the X axis. X:L can change it laterTextEmpty
7X unitShown after the X label as [unit]TextEmpty
8X SI prefixPower of ten applied to every X value you send. See Units and SI scalingWhole number, for example -30

Fields 1 to 5 must be there, even if empty. With fewer fields the line is dropped.

~{A:I:Speed Control:800:S:T:R:Sample (10 ms)::0}    streamer, newest 800 samples
~{B:I:Thermal & Battery:100000:L:T:R:Time:min:0}    logger, X in minutes
~{C:I:Phase Currents:256:F:V:R:Electrical angle:deg:0}    frame, up to 256 points per frame
~{D:I:Battery Log:1000:L:T:R:Time:s:-3}             logger; X sent in ms, shown in s

Good to know:

  • Sending I again for a graph that exists starts it over: the old graph closes and a new, empty one opens. All its signals, data, lines and notes are gone, so send the S lines again after it.
  • On the PC, ☰ → Tools → Panel Configuration… can keep the data when the firmware sends I again (Preserve Data on Re-Init), and can ignore C, P and the bare X (close) from the firmware.

Graph modes

The mode (field 3 of I) decides what the graph keeps and how its X axis moves.

Streamer SLogger LFrame F
Use it forWatching live valuesRecording a whole runOscilloscope views, spectra, XY shapes
What it keepsThe newest buffer points per signal; older points drop offEvery point, up to 1 000 000 per signal by defaultOnly the last complete frame
Buffer sizePoints kept, and the visible X widthNot usedMost points per frame, per signal
X axisFollows the newest point; the window is as wide as buffer pointsShows the whole run, from the first point to the newestFits each new frame
Fixed X rangeX:R stops the followingX:R shows only that rangeX:R stops the fitting
Screen updateAs data arrivesAs data arrivesOnly on the flush line ~{G:F}
Best data command1 (auto-X) or 00 (explicit X, such as time) or 10 or 1, then F

Streamer. A rolling window over the newest buffer points. The visible X window is as wide as those points: buffer × the average spacing between samples. With auto-X (1) that is buffer X units. With an explicit time X, 500 samples 10 ms apart give a 5 s window. While the buffer fills, the trace starts at the right edge and grows to the left.

Logger. Keeps the whole run. Its history is not set by the buffer size: each signal keeps up to 1 000 000 points by default, then the oldest drop off. Change the cap with right-click on the plot → Ingest Policies… (0 = no limit).

Frame. Data lines fill a hidden staging buffer, one per signal. The flush line ~{G:F} swaps the staged points onto the screen in one step. You never see half a frame. See Frame mode and XY.

XY. There is no XY mode and no switch: the data decides. While every X is at least as large as the one before, SerialFlow draws an ordinary trace. Once an X value goes back, it joins that signal’s points in the order they arrived, so a frame of (x, y) pairs becomes a closed curve. In a frame graph each flush starts this check again. In a streamer or logger, one X that goes back switches that signal to arrival-order drawing until you clear it (C), so keep X rising there.

On the PC, ingest policies and Signal Manager rules can change what is stored (for example averaging, decimation or value limits). This chapter describes what happens without them.

Add a signal: S

~{G:S:id:type:format:name:unit:prefix:colour:visible}
#FieldMeaningValuesDefault
1idSignal number. Data values go to the signals in rising id order1 to 32Required. Other numbers: line dropped
2typeValue type. In text lines it only matters for hex formats (sign); the packed binary packet carries its own typeu8 i8 u16 i16 u32 i32 u64 i64 f32 f64 (any case)i32 if empty or unknown
3formatHow the value is written in data lines. Capital letters onlyD U R Fn H Hn, see belowD if empty or unknown
4nameName in the legend and signal listsTextRequired (may be empty)
5unitShown after the name as [unit]. Text only: it does not convert anythingTextRequired (may be empty)
6SI prefixPower of ten applied to every value of this signal. See Units and SI scalingWhole numberRequired (may be empty: 0)
7colourTrace colour, RRGGBBSix hex digits, such as FF6644Empty: next colour of the graph style’s palette
8visibleShown at start1 shown, 0 hiddenShown

Fields 1 to 6 must be there. With fewer fields (for example a line that stops after the unit) the signal is not created and its data is dropped.

All 32 signal numbers work. (0.9.0 beta 1 dropped the data of signal 32 while the override system was on, which it is by default.)

Text formats. The format decides how SerialFlow reads each value in a data line:

FormatReadsExamplesNote
RReal number23.5, -0.004, 1.2e-3, NaNThe only format for numbers with decimals. NaN leaves a gap in the trace
DSigned whole number1500, -4223.5 reads as 0
UUnsigned whole number1500A minus sign reads as 0
FnZero-padded whole number, n digitsF6: 001500Read like D; the width is not checked
HHex number5DCNo 0x prefix
HnZero-padded hex, n digitsH4: 05DCRead like H; the width is not checked

With a signed type (i8 to i64), a hex value is read as a two’s-complement number of that size: FFFF as i16 is −1, as u16 it is 65 535.

A value that cannot be read with the signal’s format becomes 0. The most common mistake is a lower-case format: r is not R, so 23.5 reads as 0.

Value types:

TypeMeaningTypeMeaning
u8Unsigned 8-biti8Signed 8-bit
u16Unsigned 16-biti16Signed 16-bit
u32Unsigned 32-biti32Signed 32-bit
u64Unsigned 64-biti64Signed 64-bit
f3232-bit floatf6464-bit float

In text lines the number is taken as you print it; the type does not limit its range. Pick the pair that matches your data: f32 with R for real numbers, i16 or i32 with D for counts, u16 with H4 for raw hex registers.

~{A:S:1:F32:R:Temperature:°C:0:FF6644}      real numbers
~{A:S:2:I16:D:Humidity:%:0}                 whole numbers, palette colour
~{B:S:1:U16:D:Voltage:V:-3:00FF00}          sent in mV, shown in V
~{C:S:1:U16:H4:ADC:cnt:0:FFFFFF}            4-digit hex
~{A:S:3:F32:R:Debug:V:0::0}                 hidden at start, palette colour

Good to know:

  • Data values follow rising id order, not the id itself. With signals 1 and 3, the first value goes to signal 1 and the second to signal 3. Ids do not need to be consecutive, but keeping them 1, 2, 3, … avoids surprises.
  • Sending S again for an existing id keeps its data and takes the new settings (name, unit, colour, format and so on).
  • The legend shows each signal as name [unit]. Hidden signals are left out of the legend and still record data.

Units and SI scaling

The SI prefix is a power of ten. SerialFlow multiplies each value by 10prefix as it arrives, and stores and shows the result. So your firmware can send whole numbers in small units and the graph shows base units.

PrefixNameMultiplierExample
-9nano0.000000001ns → s
-6micro0.000001µs → s
-3milli0.001mV → V, ms → s
0none1as sent
3kilo1 000kHz → Hz
6mega1 000 000MHz → Hz

Any whole number works, not only these.

~{B:I:Battery Log:1000:L:T:R:Time:s:-3}     X sent in ms, shown in s
~{B:S:1:U16:D:Battery:V:-3:81C784}          values sent in mV, shown in V
~{B:0:2500:3310}                            stored as X = 2.5 s, Y = 3.31 V

Where each prefix applies:

PrefixApplies to
Signal prefix (S field 6)Every value of that signal, in text and binary data
Graph X prefix (I field 8)The X of explicit-X data (0, binary explicit X), and the X positions of event markers (E), notes (T) and bookmarks (B)
Not scaledAuto-X counter values; X marker lines (M); every Y position you send in H, T and Y

So, in the example above:

  • Y positions in H, T and Y are in the units the graph shows. A limit line at 3.3 V is ~{B:H:1:3.3:FF5252:D:Low}, not 3300.
  • X positions in E, T and B are in the units you send, like the data X. An event at 3 s is ~{B:E:1:3000:Start}, in milliseconds.
  • M is the exception: its X is used as sent, so a marker line at 3 s is ~{B:M:1:3:FFFF00:S:3 s}. With an X prefix of 0, as in most graphs, all of these are the same.

Send data: 1 and 0

CommandLineX value
1 auto-X~{G:1:v1:v2:...}A counter: 0 for the first line, then 1, 2, 3, …
0 explicit X~{G:0:x:v1:v2:...}The first field, times 10X prefix
~{A:1:23.5:67.2}                 next X, signal 1 = 23.5, signal 2 = 67.2
~{B:0:40.1332:33.86:25.07}       X = 40.1332, then the values
  • One line is one sample of all signals. The values go to the signals in rising id order. Do not send one line per signal: each line is a new X.
  • Fewer values than signals: only the first signals get a point. The rest get nothing at this X. You can leave signals out at the end of a line, not in the middle.
  • More values than signals: the extra values are ignored.
  • An empty or unreadable value becomes 0. To leave a gap in an R signal, send NaN.
  • An X that is not a number drops the whole line.
  • The auto-X counter belongs to the graph. It goes up by one per data line (whatever the number of values) and per binary row. It starts again at 0 when the graph is created, cleared with ~{G:C}, or flushed with ~{G:F}.
  • Do not mix 1 and 0 on one graph. The counter does not know about your X values, so X jumps back.
  • While a graph is paused (~{G:P}), data lines are dropped, not queued.
  • Each value also feeds the dashboards and the Data Collector.

Explicit X suits loggers, where X is a real time:

void setup() {
    Serial.begin(115200);
    Serial.println("~{B:I:Battery Log:1000:L:T:R:Time:s:-3}");   // logger, X in ms shown as s
    Serial.println("~{B:S:1:U16:D:Battery:V:-3:81C784}");         // mV shown as V
    Serial.println("~{B:H:1:3.3:FF5252:D:Low 3.3 V}");            // limit line, in volts
}

void loop() {
    long mv = analogRead(A0) * 5000L / 1023;   // replace with your own measurement in mV
    Serial.print("~{B:0:");
    Serial.print(millis());                    // explicit X: milliseconds since reset
    Serial.print(":");
    Serial.print(mv);
    Serial.println("}");
    delay(1000);                               // one row per second
}

Frame mode and XY

A frame graph shows one complete frame at a time. Send the points of a frame, then the flush line:

Animation: a rounded six-lobed current vector shape growing and turning.
From firmware XY: one signal plotted against another, picked by the data alone.
~{C:I:Scope:128:F:V:R:Sample::0}
~{C:S:1:U16:D:CH1:cnt:0:00FF88}
~{C:1:512}
~{C:1:530}
...                      up to 128 points
~{C:F}                   show this frame

What ~{G:F} does:

  1. Every signal’s displayed points are replaced by its staged points, in one step.
  2. The staging buffers are emptied and the frame count goes up by one (the graph’s status strip shows Frame # n).
  3. The auto-X counter starts again at 0, so each frame sent with 1 starts at X = 0.

Rules:

  • Points beyond the buffer size (per signal) before the F are dropped.
  • A signal that got no points in a frame is empty after the flush.
  • F has no effect on streamer and logger graphs.
  • While the graph is paused, data lines and F are dropped.
  • The flush redraws the graph. Data lines alone do not.

A frame of ADC samples on an Arduino. Capture first, then send, so the sample timing is not disturbed by the serial output:

#define N 128
uint16_t samples[N];

void setup() {
    Serial.begin(115200);                              // faster is better, if your board can
    Serial.println("~{C:I:Scope:128:F:V:R:Sample::0}");
    Serial.println("~{C:S:1:U16:D:CH1:cnt:0:00FF88}");
    Serial.println("~{C:Y:R:0:1023}");                 // fixed Y range (10-bit ADC), so frames compare
}

void loop() {
    for (int i = 0; i < N; i++) samples[i] = analogRead(A0);   // capture
    for (int i = 0; i < N; i++) {                               // send
        Serial.print("~{C:1:");
        Serial.print(samples[i]);
        Serial.println("}");
    }
    Serial.println("~{C:F}");                          // show the whole frame at once
    delay(50);
}

XY. Send the X value of each point as the explicit X (command 0), and the Y value as the signal. When X goes back, SerialFlow draws the points in the order they arrived. This frame draws a Lissajous figure:

void setup() {
    Serial.begin(115200);
    Serial.println("~{D:I:Lissajous:200:F:V:R:X:V:0}");
    Serial.println("~{D:S:1:F32:R:Y:V:0:69F0AE}");
    Serial.println("~{D:Y:R:-1.2:1.2}");
    Serial.println("~{D:X:R:-1.2:1.2}");      // fixed X range too, so the figure keeps its size
    Serial.println("~{D:X:E:1}");             // equal axes: a circle stays round in a wide pane
}

void loop() {
    static float phase = 0;
    for (int i = 0; i < 200; i++) {
        float a = i * 2 * PI / 199;            // 0 to 2 pi; the last point closes the curve
        Serial.print("~{D:0:");
        Serial.print(sin(3 * a), 3);           // X
        Serial.print(":");
        Serial.print(sin(2 * a + phase), 3);   // Y
        Serial.println("}");
    }
    Serial.println("~{D:F}");
    phase += 0.05;
}

A steady XY picture. By default a frame graph fits X to every new frame, and the plot fills the pane, so a shape whose size changes jumps about and a circle looks like an ellipse in a wide pane. Fix both axes with ~{G:Y:R:…} and ~{G:X:R:…}, and switch on equal axes with ~{G:X:E:1}, as in the example above.

Y axis: Y

~{G:Y:R:min:max}
~{G:Y:A}
~{G:Y:L:label:unit}
Sub-commandFieldsWhat it does
R rangemin, max (numbers)Fixes the Y axis from min to max and stops auto-scaling. Use min < max
A autononeAuto-scales Y to the data again (the default)
L labellabel (text), unit (text, optional)Writes label [unit] along the Y axis
~{A:Y:R:-200:3800}       fixed range, so the graph does not rescale at every step
~{A:Y:L:Speed:rpm}       axis label "Speed [rpm]"
~{A:Y:A}                 back to auto-scale
  • The values are in the units the graph shows, after SI scaling.
  • If you zoom or pan the graph by hand, your view wins over the fixed range until you double-click the plot (Auto-Scale).
  • In stacked lanes, the range and label apply to the top lane.
  • A saved session (.sfplot) keeps the range, the label and the unit.

X axis: X

The X-axis counterpart of Y. It shares its letter with the close command: only the bare ~{G:X} closes the graph, and X followed by a sub-command sets the X axis.

~{G:X:R:min:max}
~{G:X:A}
~{G:X:L:label:unit}
~{G:X:E:1}
Sub-commandFieldsWhat it does
R rangemin, max (numbers)Fixes the X axis from min to max, in every mode: a frame or XY graph stops fitting X to each frame, a streamer or logger stops following the newest point. Use min < max
A autononeX moves as the mode makes it move again (the default)
L labellabel (text), unit (text, optional)Renames the X axis, in place of the X label and unit of the I line. CSV export names its X column after it
E equal axes1 on, 0 offOne unit is drawn as long on X as on Y, so a circle stays round in a wide pane. The axis with less room keeps its range and the other one widens around its centre. Overlay layout only
~{D:X:R:-1.2:1.2}        XY plot: X fixed to -1.2 .. 1.2
~{D:Y:R:-1.2:1.2}        ... Y too
~{D:X:E:1}               ... and drawn 1:1, so the current vector stays round
~{D:X:A}                 back to fitting X to each frame
~{B:X:L:Time:min}        X axis "Time [min]"
  • min and max are in the units you send, like the X of the data: the graph’s X SI prefix applies to them.
  • An invalid range (min not below max, or not a number) and an unknown sub-command are ignored. They never close the graph.
  • If you zoom, pan or press Fit, your view wins over the fixed range until you double-click the plot (Auto-Scale).
  • A saved session (.sfplot) keeps the X range and the equal-axes switch.
  • A ☰ → Tools → Panel Configuration… preset that sets its own X label and unit wins over L.

Firmware for beta 1: SerialFlow 0.9.0 beta 1 reads every ~{G:X…} line as “close the graph”, so firmware that sends these lines closes its own graph there. They need 0.9.0 beta 2 or later.

Legend: L

~{G:L:visible:position:size:alpha}
#FieldMeaningValuesDefault
1visibleShow the legend1 show, 0 hideRequired
2positionCorner of the plotTL TC TR BL BC BR (top/bottom, left/centre/right)TR; also for an unknown value
3sizeFont sizeNumber12. Empty reads as 0, drawn at the smallest size, 8
4alphaBackground opacity0 (clear) to 255 (solid)200. Empty reads as 0 (clear)
~{A:L:1:TL:12:200}       top left, size 12, mostly solid background
~{A:L:1:BC:10:128}       bottom centre, smaller, half see-through
~{A:L:0}                 no legend
  • The firmware’s 0 / 1 wins over Show legend on the New View Defaults tab of Graph View Settings…. Without an L line, that setting decides (on by default).
  • Click the plot and press G to hide or show the legend by hand. From then on your choice wins in that view, until SerialFlow restarts; after a restart the firmware’s L line applies again.
  • A saved session (.sfplot) keeps the firmware’s legend settings.

Limit lines: H and M

H draws a horizontal line at a Y value: a limit, a threshold, a set point. M draws a vertical line at an X value.

Graph of motor and MOSFET temperature, pack voltage and state of charge over 40 minutes, with dashed event lines and a red limit line.
From firmware A logger graph with a limit line, event markers and a note, all sent by the firmware.
~{G:H:id:y:colour:style:label}
~{G:M:id:x:colour:style:label}
~{G:H:id}          remove line id
~{G:H:0}           remove all H lines (M works the same way)
#FieldMeaningValuesDefault
1idLine number. Sending the same id again moves or relabels the lineWhole number, 1 or moreRequired
2positionH: Y value, in the units the graph shows. M: X value, used as sent (not scaled by the X SI prefix)NumberRequired to add a line
3colourLine and label colour, RRGGBBSix hex digitsH: CCCCCC grey; M: FFFF00 yellow
4styleLine styleS solid, D dashed, T dotted, A dash-dotD
5labelText drawn at the lineTextNone
~{B:H:1:85:FF5252:D:MOSFET limit 85 °C}
~{C:H:1:22:FF5252:T:Trip ±22 A pk}
~{C:H:2:-22:FF5252:T:}                       second line, no label
~{A:M:1:250:FFFFFF:S:Calibration point}
  • An H label sits at the left end of its line, an M label at its top.
  • A line with only an id removes it; id 0 removes them all. Do not use id 0 for a line you want to keep.
  • ~{G:C} (clear) keeps H and M lines. They belong to the set-up, not to the data.
  • In stacked lanes, H lines show on the top lane only.

Event markers: E

An event marker is a vertical line with a label at the X where something happened: a motor start, a fault, a phase of a test.

~{G:E:id:x:label:colour:style}
~{G:E:id}          remove event id
~{G:E:0}           remove all events
#FieldMeaningValuesDefault
1idEvent number. The same id again moves or relabels itWhole number, 1 or moreRequired
2xX position, scaled by the X SI prefix like data XNumberRequired to add
3labelText at the top of the lineTextNone
4colourRRGGBBSix hex digits00FF00 green
5styleS solid, D dashed, T dotted, A dash-dotD
~{B:E:1:2:Cruise profile:00E676:S}
~{B:E:2:15:Hill climb 150 %:FFAB40:D}
~{A:E:1:450:Load step:FF8A65:D}

E and M look the same. The differences: E positions follow the X SI prefix, and ~{G:C} removes events but keeps M lines. Use E for things that happen during a run, M for fixed reference positions.

Send the event when it happens, at the same X as the data, or later: the position is in X units, so a line can come after the data it marks.

/* Mark the moment the temperature first passes 82 °C (t is the X of the current sample). */
if (temp > 82.0f && !derated) {
    derated = true;
    printf("~{B:E:3:%.2f:Thermal derate:FF5252:D}\n", t);
}

Notes on the plot: T

A note is a text label at an (X, Y) point of the plot.

~{G:T:id:x:y:text:colour:size:rotation}
~{G:T:id}          remove note id
~{G:T:0}           remove all notes
#FieldMeaningValuesDefault
1idNote number. The same id again moves or changes itWhole number, 1 or moreRequired
2xX position, scaled by the X SI prefixNumberRequired to add
3yY position, in the units the graph showsNumberRequired to add
4textThe noteTextRequired to add
5colourRRGGBBSix hex digitsFFFFFF white
6sizeFont sizeNumber12. Empty reads as 0, drawn at the smallest size, 8
7rotationDegrees, clockwise, around the anchor pointNumber0

The text starts at X and is centred on Y.

~{B:T:1:19.33:89.6:Peak 82.6 °C:F06292:12:0}
~{G:T:2:25:0:Rising edge:FFFF00:12:45}

Place a note a little above or beside the point it describes, so it does not cover the trace. ~{G:C} removes all notes. In stacked lanes, notes show on the top lane only.

Bookmarks: B

A bookmark marks an X position with a small flag at the top of the plot and a dotted line. It is also listed in ☰ → View → Graph Bookmarks, where a double-click jumps to it. Use it for moments you want to find again later.

~{G:B:x:label:comment:colour}
~{G:B}             remove all bookmarks of the graph
#FieldMeaningValuesDefault
1xX position, scaled by the X SI prefixNumberRequired
2labelShort name in the bookmark listTextRequired
3commentLonger descriptionTextNone
4colourFlag colour, RRGGBBSix hex digitsThe graph style’s bookmark colour
~{B:B:16.4:Overcurrent trip:Phase B 42.3 A > 40 A - auto-restart 200 ms:FF5252}
~{A:B:120:Stable:All readings within normal range:00BBFF}
  • Each B line adds a new bookmark; there is no id, so a bookmark cannot be moved from the firmware.
  • ~{G:B} with no fields removes every bookmark of the graph.
  • ~{G:C} keeps bookmarks. Saved sessions keep them too.

Control: C, P, R, V, X, W

LineCommandWhat it does
~{G:C}ClearEmpties every signal, restarts auto-X at 0, removes events (E) and notes (T). Keeps the signals, H and M lines, bookmarks, the Y axis and the legend settings
~{G:C:id}Clear one signalEmpties only signal id. Auto-X and everything else stay
~{G:P}PauseDrops data lines and F until R. Other commands still work. The graph’s Pause button turns into Resume
~{G:R}ResumeAccepts data again. Data sent while paused is not replayed
~{G:V:id:1}Show signalShows signal id; 0 as id means all signals
~{G:V:id:0}Hide signalHides signal id (0 = all). A hidden signal keeps recording
~{G:X}DestroyCloses the graph and deletes its data. Its values also leave the dashboards. A new I creates it again
~{G:X:…}X axisWith a sub-command, X sets the X axis and closes nothing: see X axis
~{G:W…}SaveSaves the graph’s data to a file: see Save a graph

In V, any value other than 1 hides the signal.

~{F:C}           clear graph F
~{F:C:2}         clear only signal 2
~{F:P}           pause
~{F:R}           resume
~{K:V:3:0}       hide signal 3
~{K:V:0:1}       show all signals
~{F:X}           close graph F

On the PC, ☰ → Tools → Panel Configuration… can block C, P and the bare X for a graph, so the firmware cannot clear, pause or close it. X-axis commands still work.

Save a graph: W

The firmware can ask SerialFlow to keep a graph’s data in a file, for example the window of a streamer around a fault. SerialFlow saves the graph as it is when the line arrives, and the stream goes on.

~{G:W}                   automatic name, .sfplot
~{G:W:label}             the label is the file name
~{G:W:label:C}           CSV
~{G:W::B}                no label, .sfplot and CSV
#FieldMeaningValuesDefault
1labelThe file name. Blanks and characters a file name can’t hold become _; at most 60 charactersTextEmpty: graphA-0001 and so on, numbered with all other captures
2formatWhat to writeP .sfplot session, C CSV, B both, from the same momentP
if (overcurrent) printf("~{A:W:overcurrent}\n");   /* overcurrent.sfplot, then overcurrent-2.sfplot, ... */
  • Off until you allow it. W runs only when Settings → Device Captures allows device commands; it is off at first. While it is off, the line is taken out of the log and does nothing, and the first one shows a hint in the status bar. See Device commands.
  • What is saved: every signal of the graph with its name, unit and colour, and the H, M, E and T lines and the bookmarks. Samples that arrive while the file is written are not in it. The view (zoom, axis ranges) is not saved: the capture opens fitted to its data.
  • CSV is the wide layout (one column per signal), or the long one when X goes back, as in an XY graph.
  • Where: the capture folder set in Settings → Device Captures, at first captures in the SerialFlow folder (normally Documents\SerialFlow\captures). An existing file is never overwritten: the name gets -2, -3 and so on.
  • The Saved Captures pane lists every capture and opens it in a graph view: see Saved Captures.
  • A W for a graph that does not exist is reported in the status bar, and nothing is saved.
  • 0.9.0 beta 1 doesn’t know W: there the line shows in the log as text.

CRC-8

On a long or noisy cable, one flipped bit can turn 3000 into 7000, and the graph shows a spike that never happened. Add a CRC-8 to a line and SerialFlow drops the line if it does not match.

CRC calculator panel with the algorithm CRC-8, the input {A:1:2200:2187} and the result 0x7F, 127, 01111111.
The CRC Calculator works out the CRC-8 of a graph line: {A:1:2200:2187} gives 7F.
~{A:1:3000:3004.9}*7E

The rules:

  • Polynomial 0x07 (x⁸ + x² + x + 1), start value 0, no final XOR, bits not reflected. This is the common CRC-8 that libraries call CRC-8 or CRC-8/SMBUS; its check value for the text 123456789 is 0xF4.
  • It covers every character from { to }, both braces included. The ~ and the *XX are not part of it.
  • The result is one byte, sent as * and two hex digits straight after the }. Upper case is usual; lower case is accepted.
  • Use plain ASCII on CRC lines. SerialFlow computes the CRC over the received characters, not the UTF-8 bytes, so a line with ° or µ never matches. Write degC, uA and so on.
  • The CRC is optional, per line. A line without *XX is accepted unchecked. So is a line where the * is not followed by two hex digits. It works on every command, not only data lines.
LineCRC overResult
~{A:1:3000:3004.9}*7E{A:1:3000:3004.9}0x7E
~{A:1:2200:2187}*7F{A:1:2200:2187}0x7F
~{A:1:23.5}*35{A:1:23.5}0x35
~{A:I:Sensors:500:S:T:F:Sample::0}*C1{A:I:Sensors:500:S:T:F:Sample::0}0xC1

In C (any platform with snprintf):

#include <stdio.h>
#include <stdint.h>

/* CRC-8, polynomial 0x07, start value 0, over "{" ... "}" */
uint8_t sf_crc8(const char *s, int len)
{
    uint8_t crc = 0;
    while (len--) {
        crc ^= (uint8_t)*s++;
        for (int i = 0; i < 8; i++)
            crc = (crc & 0x80) ? (uint8_t)((crc << 1) ^ 0x07) : (uint8_t)(crc << 1);
    }
    return crc;
}

/* One sample of graph A (set point, speed), protected by CRC-8 */
void send_speed(int setpoint_rpm, float speed_rpm)
{
    char frame[40];
    int n = snprintf(frame, sizeof frame, "{A:1:%d:%.1f}", setpoint_rpm, speed_rpm);
    printf("~%s*%02X\n", frame, sf_crc8(frame, n));
}
/* send_speed(3000, 3004.9f) prints ~{A:1:3000:3004.9}*7E */

On some embedded C libraries (newlib-nano, for example) printf and snprintf print no floats until you enable float support in the linker settings.

On Arduino, snprintf prints no floats on AVR boards. This helper builds the line with the usual print() calls, then sends it in one write, with or without a CRC:

// Builds one graph line in RAM, then sends it in one write. Optional CRC-8.
class SfLine : public Print {
public:
    using Print::write;
    size_t write(uint8_t b) override {
        if (len < sizeof(buf) - 4) { buf[len++] = (char)b; return 1; }
        return 0;                                     // line too long: the rest is cut
    }
    void send(bool withCrc) {
        if (withCrc) {
            uint8_t crc = 0;
            for (uint8_t i = 1; i < len; i++) {       // buf[0] is '~': start at '{'
                crc ^= (uint8_t)buf[i];
                for (uint8_t k = 0; k < 8; k++)
                    crc = (crc & 0x80) ? (uint8_t)((crc << 1) ^ 0x07) : (uint8_t)(crc << 1);
            }
            const char hex[] = "0123456789ABCDEF";
            buf[len++] = '*';
            buf[len++] = hex[crc >> 4];
            buf[len++] = hex[crc & 0x0F];
        }
        buf[len++] = '\n';
        Serial.write((const uint8_t *)buf, len);
        len = 0;
    }
private:
    char buf[100];
    uint8_t len = 0;
};

SfLine line;

void sendSpeed(int setpoint, float speed) {
    line.print("~{A:1:");
    line.print(setpoint);
    line.print(':');
    line.print(speed, 1);
    line.print('}');          // nothing after the '}': the CRC ends here
    line.send(true);          // sends ~{A:1:3000:3004.9}*7E for (3000, 3004.9)
}

What happens to a bad line. A line whose CRC does not match is not carried out. It shows in the log as text, the Err: counter in the status bar goes up (it turns red above 0), and ☰ → Tools → RX Error Collector… lists it. The collector runs from the moment SerialFlow starts, window open or not, and sorts every rejected graph line into a category:

CategoryReason shownTypical cause
CRCCRC mismatch (expected 0xB4, got 0xC7)Bits changed on the wire. Expected is the CRC that came with the line, got the CRC of what arrived
StructureMissing closing braceThe line was cut short
StructureContent too short (1 chars, need >= 3)Nothing useful between the braces
CommandInvalid graph ID 'b' (not A-Z)The graph letter changed, or is lower case
CommandUnknown command code 'p'The command letter changed, or is lower case
FormatFormat error: no colon after command codeA : changed or is missing
StructureMissing colon separator at position 1No : after the graph letter

The Statistics pane counts the CRC failures too: CRC Rejects, in its RX HEALTH section, which shows once something was lost (the count covers all ports, and binary frames too).

A flipped digit in a line without a CRC reaches the graph unchecked. The collector only catches it when the line’s shape breaks. ☰ → View → CRC Calculator (algorithm CRC-8) checks a line by hand: paste it from { to }.

Packed binary mode

For high rates, many signals or full float precision, the firmware can send data rows as small binary frames instead of text lines. Binary frames and text lines share the same serial stream; you can mix them freely.

What binary can do: add data, with auto-X or explicit X, one row or many rows per frame. Everything else stays text: create the graph and its signals with I and S lines first, and use text for F, C, H, E and the rest. Binary data for a graph that does not exist yet is dropped.

When to use it:

  • Many signals per row, or high sample rates: a batch frame carries many rows with a few bytes of overhead.
  • Full precision: floats travel as their 4 or 8 bytes, not as rounded text.
  • Fast frames for frame mode: send the frame’s rows in one or two batch frames, then ~{G:F} as text.
  • For one or two slow signals, text is just as good and easier to read in a log.

On the wire:

0x00  LEN_LO  LEN_HI  [COBS-encoded packet, LEN bytes]  0x00
PartSizeMeaning
Start1 byte0x00
Length2 bytesNumber of COBS-encoded bytes, low byte first. 1 to 1 024
Packet1–1 024 bytesThe packet below, COBS-encoded, so it holds no 0x00
End1 byte0x00

COBS (Consistent Overhead Byte Stuffing) removes every zero byte from the packet, so 0x00 can mark the start and end. It adds one byte, plus one more per 254 bytes.

The packet, before COBS:

ByteFieldValues
0Magic0xBD
1Graph0 = A, 1 = B, … 25 = Z
2Command0x01 auto-X, 0x02 explicit X
3FlagsBit 0 (0x01): each row starts with an X. Bit 1 (0x02): all values have the type in byte 5. Bit 2 (0x04): batch, a row count follows the header
4Signal count1 to 32: values per row
5Value type0 to 9, see below. Must be valid even when bit 1 is clear
6, 7Row countOnly with the batch flag: number of rows, low byte first
thenRowsRow after row, see below
lastCRC-8Over every byte before it (byte 0 to the end of the last row). Same CRC as text lines

A row:

FlagsRow layout
Bit 0 set8-byte X first: an IEEE 754 double, little-endian
Bit 1 set (same type)Then signal count values, each of the type in byte 5
Bit 1 clear (mixed types)Then signal count pairs: a 1-byte type code, then the value

All values are little-endian. ARM Cortex-M, ESP32, RP2040, AVR and x86 are little-endian, so memcpy of a variable gives the right bytes.

Value type codes:

CodeTypeBytesCodeTypeBytes
0u815i324
1i816u648
2u1627i648
3i1628f324
4u3249f648

How the rows are used: exactly like text data lines. Values go to the graph’s signals in rising id order, each signal’s SI prefix is applied, and the X prefix is applied to explicit X. With auto-X, each row takes the next value of the graph’s counter, shared with text 1 lines. In frame mode the rows are staged until a text ~{G:F}. The value type in the S line is not used: the packet’s own type code decides how the bytes are read.

Use command and flag together: command 0x02 with flag bit 0 set for explicit X; command 0x01 with bit 0 clear for auto-X. With 0x02 and bit 0 clear, every X is 0; with 0x01 and bit 0 set, the X values are read and ignored.

Size limits. The COBS-encoded packet must be 1 024 bytes or less. A packet of up to 1 019 bytes (header, row count, rows and CRC) always fits. The row count field accepts up to 10 000, but this size limit comes first:

Rows ofBytes per rowRows per frame (packet ≤ 1 000 bytes)
2 × f32, auto-X8123
4 × f32, auto-X1661
2 × i16, auto-X4247
1 × f32, explicit X1282

Rows per frame = (1 000 − 9) ÷ bytes per row, rounded down (9 = 6 header bytes, 2 row-count bytes, 1 CRC byte).

Timing. Send each frame in one go. If a frame stops for more than 100 ms in the middle, SerialFlow drops it and goes back to reading text.

Errors. A frame is dropped if it has a wrong length, bad COBS, a wrong magic byte, a graph number above 25, a signal count of 0 or above 32, a value type above 9, a row count of 0 or above 10 000, fewer bytes than its rows need, or a CRC that does not match.

A dropped frame counts in the Err: counter and is listed in ☰ → Tools → RX Error Collector…: graph ?, the first bytes in hex (binary BD 00 01 …) and the reason, for example CRC mismatch in binary packet: got 0x7E, expected 0x3C. If binary data does not appear, look there first.

A complete C sender. It needs one function from you, uart_write(), which sends bytes on the UART.

#include <stdint.h>
#include <string.h>

void uart_write(const uint8_t *data, size_t len);   /* yours: send bytes on the UART */

#define SF_MAX_PACKET 1000          /* packet incl. CRC; keeps the COBS frame under 1 024 bytes */

/* CRC-8, polynomial 0x07, start value 0: the same CRC as the text lines */
static uint8_t sf_crc8(const uint8_t *p, size_t len)
{
    uint8_t crc = 0;
    while (len--) {
        crc ^= *p++;
        for (int i = 0; i < 8; i++)
            crc = (crc & 0x80) ? (uint8_t)((crc << 1) ^ 0x07) : (uint8_t)(crc << 1);
    }
    return crc;
}

/* COBS encoder. out must hold len + len / 254 + 1 bytes. Returns the encoded length. */
static size_t sf_cobs_encode(const uint8_t *in, size_t len, uint8_t *out)
{
    size_t code_pos = 0, out_pos = 1;
    uint8_t code = 1;
    for (size_t i = 0; i < len; i++) {
        if (in[i] == 0) {
            out[code_pos] = code;
            code_pos = out_pos++;
            code = 1;
        } else {
            out[out_pos++] = in[i];
            if (++code == 0xFF) {
                out[code_pos] = code;
                code_pos = out_pos++;
                code = 1;
            }
        }
    }
    out[code_pos] = code;
    return out_pos;
}

/* Adds the CRC after pkt[0 .. len-1], COBS-encodes and sends one frame.
   pkt must have room for one more byte. */
static void sf_send_packet(uint8_t *pkt, size_t len)
{
    static uint8_t frame[3 + 1024 + 1];
    pkt[len] = sf_crc8(pkt, len);
    size_t n = sf_cobs_encode(pkt, len + 1, &frame[3]);
    frame[0] = 0x00;                       /* start */
    frame[1] = (uint8_t)(n & 0xFF);        /* length, low byte */
    frame[2] = (uint8_t)(n >> 8);          /* length, high byte */
    frame[3 + n] = 0x00;                   /* end */
    uart_write(frame, n + 4);
}

/* One row of floats with auto-X: like ~{G:1:v1:v2:...} */
void sf_send_f32(char graph, const float *v, uint8_t count)      /* count 1..32 */
{
    uint8_t pkt[6 + 32 * 4 + 1];
    pkt[0] = 0xBD;                         /* magic */
    pkt[1] = (uint8_t)(graph - 'A');       /* graph */
    pkt[2] = 0x01;                         /* auto-X */
    pkt[3] = 0x02;                         /* flags: same type */
    pkt[4] = count;                        /* values per row */
    pkt[5] = 8;                            /* f32 */
    memcpy(&pkt[6], v, (size_t)count * 4);
    sf_send_packet(pkt, 6 + (size_t)count * 4);
}

/* Many rows of floats in one frame, auto-X. v holds rows * count values, row after row. */
int sf_send_f32_batch(char graph, const float *v, uint8_t count, uint16_t rows)
{
    static uint8_t pkt[SF_MAX_PACKET];
    size_t data = (size_t)rows * count * 4;
    if (8 + data + 1 > SF_MAX_PACKET) return -1;    /* too many rows for one frame */
    pkt[0] = 0xBD;
    pkt[1] = (uint8_t)(graph - 'A');
    pkt[2] = 0x01;                         /* auto-X */
    pkt[3] = 0x02 | 0x04;                  /* flags: same type, batch */
    pkt[4] = count;
    pkt[5] = 8;                            /* f32 */
    pkt[6] = (uint8_t)(rows & 0xFF);       /* row count, low byte */
    pkt[7] = (uint8_t)(rows >> 8);
    memcpy(&pkt[8], v, data);
    sf_send_packet(pkt, 8 + data);
    return 0;
}

/* One row of floats with its own X (a 64-bit double): like ~{G:0:x:v1:...} */
void sf_send_f32_x(char graph, double x, const float *v, uint8_t count)
{
    uint8_t pkt[6 + 8 + 32 * 4 + 1];
    pkt[0] = 0xBD;
    pkt[1] = (uint8_t)(graph - 'A');
    pkt[2] = 0x02;                         /* explicit X */
    pkt[3] = 0x02 | 0x01;                  /* flags: same type, X in each row */
    pkt[4] = count;
    pkt[5] = 8;                            /* f32 */
    memcpy(&pkt[6], &x, 8);                /* needs an 8-byte double */
    memcpy(&pkt[14], v, (size_t)count * 4);
    sf_send_packet(pkt, 14 + (size_t)count * 4);
}

Using it:

/* Set up graph A in text first (once): */
printf("~{A:I:Motor:2000:S:T:R:Sample::0}\n");
printf("~{A:S:1:F32:R:Current:A:0:FF5252}\n");
printf("~{A:S:2:F32:R:Voltage:V:0:40C4FF}\n");

/* Then one row per sample ... */
float row[2] = { 23.5f, 67.25f };
sf_send_f32('A', row, 2);

/* ... or 100 rows at once (2 x f32 = 8 bytes per row, 100 rows fit) */
float block[100 * 2];          /* current, voltage, current, voltage, ... */
sf_send_f32_batch('A', block, 2, 100);

sf_send_f32('A', row, 2) with 23.5 and 67.25 sends these 20 bytes:

00 10 00 02 BD 05 01 02 02 08 01 03 BC 41 05 80 86 42 62 00

Before COBS, the packet is BD 00 01 02 02 08 00 00 BC 41 00 80 86 42 plus the CRC 62.

Mixed types in one row. Leave flag bit 1 clear and put a type code before each value. A u16 and an f32:

void sf_send_u16_f32(char graph, uint16_t a, float b)
{
    uint8_t pkt[6 + 1 + 2 + 1 + 4 + 1];
    pkt[0] = 0xBD;
    pkt[1] = (uint8_t)(graph - 'A');
    pkt[2] = 0x01;                 /* auto-X */
    pkt[3] = 0x00;                 /* flags: mixed types */
    pkt[4] = 2;                    /* two values */
    pkt[5] = 0;                    /* not used, but must be 0..9 */
    pkt[6] = 2;                    /* u16 */
    memcpy(&pkt[7], &a, 2);
    pkt[9] = 8;                    /* f32 */
    memcpy(&pkt[10], &b, 4);
    sf_send_packet(pkt, 14);
}

Good to know:

  • On 8-bit AVR boards (Arduino Uno, Nano, Mega) double is 4 bytes, so sf_send_f32_x() does not work there. Use auto-X, or send the time as a signal.
  • Nothing between the board and the PC may remove zero bytes: they mark the start and end of each frame.
  • A binary frame survives being split across several reads by the PC, like a text line.

Speed and timing

The serial link is almost always the limit, not SerialFlow. With 8 data bits, no parity and 1 stop bit, each byte takes 10 bits on the wire:

lines per second ≈ baud ÷ 10 ÷ bytes per line

LineBytes with \r\n115 200 baud921 600 baud
~{A:1:3000:3004.9}20≈ 576 lines/s≈ 4 600 lines/s
~{A:1:3000:3004.9}*7E23≈ 500 lines/s≈ 4 000 lines/s
Binary, 100 rows of 2 × f32 in one frame≈ 817 per frame≈ 1 400 rows/s≈ 11 000 rows/s

Tips:

  • One command per line, one sample per line. Put all signals of a graph in one data line.
  • Use auto-X (1) when you can: one field less per line.
  • Print only the digits you need: Serial.print(v, 1) rather than six decimals. Use D and whole numbers in small units (mV, ms) with an SI prefix instead of long decimals.
  • Raise the baud rate. SerialFlow offers 9 600 to 3 000 000 baud.
  • Add a CRC only where the link needs it. It costs three bytes per line.
  • Frame mode: capture the frame first, then send it, then F. Keep the buffer size to what one frame needs.
  • For high rates, use packed binary with batch frames.
  • Send each line in one go, without a pause in the middle. A line that is cut in two by the PC’s reads is put back together, but one that stops for 100 ms is taken as it is (see Lines that arrive in pieces). Building the line in a buffer and sending it with one write does this; the SfLine helper does it on Arduino.

Troubleshooting

What you seeLikely cause
No graph tab appearsThe I line has fewer than 5 fields; the graph letter is lower case; the line does not start with ~; or the board sent its I line before you pressed Connect
A tab, but no traceNo S line, or it has fewer than 6 fields; the signal id is outside 1–32; or data was sent before the S lines
Every value is 0A decimal value in a D or U signal; a lower-case format (r); or a comma as decimal point
Values land on the wrong signalValues follow rising signal id order. Check for a missing S line or a gap in the ids
A graph line shows in the log as textThe parser rejected it: see the RX Error Collector. Or text came before the ~. Or the device paused for 100 ms in the middle of the line
The second command on a line does nothingOne command per line
A graph closes when the firmware sends ~{G:X:…}That is 0.9.0 beta 1, which reads every X line as “close”. Update SerialFlow: see X axis
A trace suddenly zigzags backX went backwards: the signal is now drawn in arrival order. Clear the graph (~{G:C}) and keep X rising
A frame graph never changesNo ~{G:F}; the graph is not in mode F; or it is paused
A frame is cut offIt has more points than the buffer size
Good-looking CRC lines are all rejectedA non-ASCII character in the line, or the CRC does not cover exactly { … }
~{G:L:0} does not hide the legendThe legend was toggled with G in this view: that choice wins until SerialFlow restarts. See Legend
~{G:W} saves nothingDevice commands are off: Settings → Device Captures (see Save a graph). Or the graph letter names no graph
All graphs stopped updating☰ → View → Raw Display is on (it shows graph lines as text), or the graph was paused with ~{G:P}
Binary data does not appearThe graph or its signals were not set up in text first; the CRC, length or COBS is wrong; the frame is over 1 024 bytes; or command and flag bit 0 disagree

Working with graphs

On the product page: Graphs →

The firmware decides which graphs exist and what they show. Everything in this chapter happens on the PC: how you look at a graph, measure it, average it, style it and compare it with an earlier run. None of it changes what the firmware sends.

The graph pane

Each graph opens in its own pane, named by the firmware’s init line. A pane has a toolbar, the plot and a sidebar on the right.

Graph with a shaded X marker band and Y marker lines, beside a panel of measured values.
A graph pane: toolbar, plot and the sidebar.
Toolbar itemWhat it does
Pause / ResumeStops or restarts taking new samples into this graph. See Pause.
ClearDeletes all stored samples of this graph. Limit lines, events and notes stay.
AutoScaleFits the axes to the data and turns live follow back on. Same as a double-click on the plot.
FitFits all stored data, imported layers included, into view. Does not turn live follow back on.
PointsShows a dot at every sample on all signals.
Overlay / StackedSwitches between one shared plot area and stacked lanes. The label shows the current layout.
BookmarkAdds a bookmark in the middle of the view. Bookmarks are listed in ☰ → View → Graph Bookmarks.
SignalsShows the sidebar’s Signals tab. Press it again to hide the sidebar.
StatsShows the sidebar’s Statistics tab. Press it again to hide the sidebar.
Import…Loads saved data into this graph as overlay layers. See Compare runs.
Export…Writes the data to a file. See Export a graph.
ImageSaves the plot as a PNG image.
Save SessionSaves data, notes and view as one .sfplot file. See Plot sessions.
Compare…Same as Import…: lays one or more saved files over this graph.
Pop Out / Full ScreenOpens the graph in its own window, or in its own window maximised on its monitor (press Full Screen again to restore it). See Pop out and full screen.
Display: list and boxDisplay averaging, and the bucket width. See Display averaging.
Style listThe graph style for this graph, (Global Default) at first. See Graph styles.

To the right of the buttons, a status strip shows the graph mode (Streamer, Logger, Frame, or Session for a saved view), the number of signals, the number of stored points, the memory they use, and the pointer position as X: … Y: …. A frame graph also shows Frame #, how full the next frame is (120/256) and Receiving… or Static.

The signal sidebar

The Signals tab lists every signal of the graph, then every series of each imported layer. Each row shows a check box, a colour swatch, the name and the newest value. Hover the name to see the unit, the source and the number of points.

  • Untick a signal to hide it. It keeps receiving data, so the whole history comes back when you tick it again.
  • Right-click a row for Solo (show only this signal), Show All, Clear Data (this signal only), Delete Signal (removes the signal and its data) and Copy Statistics (mean, RMS, standard deviation, min, max, peak-to-peak and count over all stored points, as one tab-separated line).
  • Expand a row (the arrow on the left) to change how it is drawn:
FieldWhat it does
LaneWhich lane the signal is drawn in when the layout is Stacked: 0 to 7.
WidthLine width, 0 to 10. 0 uses the graph style’s default.
Scale / OffsetDraws the signal as value × Scale + Offset. See the note below.
StyleLine pattern: Solid, Dashed, Dotted, DashDot, or empty for the graph style’s default.
MarkerSize of the dot drawn at each sample, 0 to 16 pixels. 0 = no dots (unless Points is on).
SmoothDraws a smooth curve through the samples instead of straight segments.
PointsThe number of stored points (read-only).
ShapeDot shape: Circle, OpenCircle, Square, Triangle, Diamond, Cross or None.
X-Offs, Opacity, Remove LayerImported layers only. See Compare runs.

Scale and Offset here only change the drawing and the readout box next to the pointer. The statistics, the export and the Data Collector keep using the stored values. For a real unit conversion, use Signal Manager.

Dots and Smooth are drawn once you zoom in far enough to see single samples. Further out, SerialFlow draws the minimum and maximum of each pixel column, so no spike is lost.

Colours come from the firmware’s signal line. A signal sent without a colour takes the next colour from the graph style’s palette. To recolour a signal on the PC, click its swatch in the sidebar and pick a colour: that changes this view only and is saved with it (right-click the row → Reset Colour goes back). Color in Signal Manager → Incoming Signals changes the signal everywhere, also after a restart.

Overlay and stacked lanes

In Overlay (the default) every signal shares one plot area and one Y axis. Stacked splits the plot into lanes, one above the other, each with its own Y axis. Use it when signals have very different ranges, such as temperatures in °C and a state of charge in %.

Graph split into three lanes: temperatures, pack voltage and state of charge.
Stacked lanes, each with its own Y axis.
  1. Press Signals and expand each signal.
  2. Type a Lane number. Signals with the same number share a lane. Lane 0 is at the top.
  3. Press Overlay. It changes to Stacked.

There can be up to 8 lanes. Each lane scales its own Y axis. A fixed Y range sent by the firmware applies to the top lane. Press Stacked again (or L) to go back to one plot area; the lane numbers are kept.

Zoom, pan and follow

While you have not zoomed or panned, a graph follows its data:

ModeWhat follow shows
StreamerThe newest samples, one buffer wide, at the right edge.
LoggerThe whole run, growing as data arrives.
FrameThe current frame. X is fitted to each new frame, unless the firmware fixes it with ~{G:X:R:min:max}.

As soon as you zoom or pan, the view parks where you left it and new data no longer moves it. To follow again, double-click the plot, press Home or press AutoScale. Fit (F) shows all stored data and stays parked: on a frame graph this keeps one X range for every later frame. Y drops any Y zoom and lets every lane scale itself again.

Pause

Pause (Space) freezes the graph so you can look at it while data keeps arriving. While a graph is paused, its new samples are dropped, not queued: they do not reach the graph, the Data Collector or computed signals. Resume starts taking samples again. A saved session view has nothing to pause, so its button reads Resume and does nothing.

Mouse, wheel and keys

These are the shipped bindings. Every one can be changed in Graph View Settings… (right-click the plot, or Ctrl+G).

MouseAction
Left-dragPan. Y moves in the lane where you started.
Right-dragZoom to the box you draw.
Right-clickThe plot menu.
Double-clickAuto-scale and follow the data again.
Alt+left-drag, or middle-dragMark a new region. See Mark a region.
Left-drag a region’s dashed edge (or middle-drag)Resize the region.
Alt+left-drag inside the region (or middle-drag)Slide the region, keeping its width.
Left-drag a marker line or bookmark lineMove it.
Hold CtrlVertical cursor line: every signal’s value at that X.
Hold Ctrl+ShiftHorizontal cursor line: a Y level, with differences and crossings.
WheelAction
WheelZoom X, 25 % per notch, around the pointer.
Shift+wheelZoom Y of the lane under the pointer.
Ctrl+wheelZoom X and Y together.

The keys work while the plot has keyboard focus: click the plot once first. They belong to the plot, so they never clash with the application shortcuts in Settings → Shortcuts.

KeyAction
FFit all data
HomeAuto-scale and follow
YReset the Y axes
← → ↑ ↓Pan by 10 % of the view
+ / −Zoom X in / out
Ctrl++ / Ctrl+−Zoom X and Y in / out
Shift++ / Shift+−Zoom Y in / out
ZZoom to the marked region
EscClear the marked region
Ctrl+NNew view from the marked region
CCursor line: none → vertical → horizontal → none, without holding a key
XAdd an X marker at the pointer
Ctrl+YAdd a Y marker at the pointer
Ctrl+BAdd a bookmark at the pointer
SpacePause / resume
PDots at every sample on / off
LOverlay ↔ stacked
GLegend on / off
BSidebar on / off
Ctrl+PSave the plot as a PNG image
Ctrl+GGraph View Settings

+ and − are the keys on the main keyboard, not the number pad. Keyboard zoom works around the pointer when it is over the plot, otherwise around the middle of the view. Clearing the graph, cropping and deleting a region have no key, so you cannot destroy data by accident. Bind them yourself if you want them.

Graph View Settings

Graph View Settings… holds one set of settings for every graph. It is saved in your profile. Apply uses the changes, Reset to Defaults restores the shipped ones, and Import… / Export… move them between PCs as a file.

TabWhat you set there
MouseOne row per binding: action, Button, Modifiers and Gesture. + Add Binding adds one. Extra actions are available, such as pan X only, pan Y only, zoom to an X range or a Y range.
Wheel & ZoomWhich modifiers zoom X, Y or both, or scroll instead of zooming. Wheel step (1.25 × per notch), Keyboard step (1.5 ×), Anchor (Cursor or Center), Invert wheel direction, zoom limits.
KeyboardThe key table above. Click a shortcut box and press the new keys; Delete clears it.
Pan & SelectionDrag sensitivity, pan step, grab radius, the cursor line colour, Focus the plot on hover (key bindings work without clicking first), fit padding, and whether zooming parks the view and AutoScale resumes follow.
View & RenderingRedraw period (33 ms ≈ 30 frames per second), how many dots are drawn, margins, lane gap, tick spacing.
New View DefaultsHow a graph looks the first time it opens: Layout, sidebar width, Show point markers, Show legend, Show sidebar. Graphs you have already arranged keep their own look.
Context MenuWhich entries the plot’s right-click menu shows, and in what order.

The pointer readout

Move the pointer over the plot and a small box next to it shows the signal nearest the pointer: its X and its value.

  • Hold Ctrl for a vertical line. The box lists every visible signal’s value at that X.
  • Hold Ctrl+Shift for a horizontal line. The box shows each signal’s value and its difference (Δ) to the line’s level, for the signals in that lane.
  • Press C to keep a line without holding a key.

The readout box is not drawn into saved images. Turn it off with Cursor readout on the plot in the statistics settings (⚙ on the Statistics tab).

Mark a region

Hold Alt and drag across the plot (or drag with the middle button). A shaded band marks an X range. Drag one of its dashed edges to resize it, or Alt-drag its middle to slide it. The Statistics tab adds a Sel column for the band while you drag.

Thermal and battery graph with a shaded region from 15 to 26 minutes, a right-click menu with zoom, new view and crop items, and a statistics panel with Live and Sel columns.
A marked region and the plot menu.

Right-click the plot for what to do with the region:

Menu itemWhat it does
Zoom to SelectionZooms X to the region (Z).
New View from SelectionOpens a new pane with a copy of the region’s data, from the visible signals and layers. The graph itself is not changed (Ctrl+N).
Crop Data to SelectionDeletes every sample outside the region, on all signals of this graph.
Delete Selected RangeDeletes every sample inside the region.
Clear SelectionRemoves the band (Esc).

Crop and Delete change the stored data and cannot be undone. They do not touch imported layers, limit lines, events or bookmarks. If in doubt, make a new view or save a session first.

A view made from a selection is held in memory only. Press Save Session in it to keep its data.

The full plot menu also has Create Bookmark Here, Add X Marker Here, Add Y Marker Here, Fit All Data, Auto-Scale + Follow, Open Session in New View…, Graph View Settings…, Statistics View… and Ingest Policies….

X and Y markers

Markers are lines you place on the PC to measure. An X marker is a vertical line, a Y marker a horizontal one.

  1. Right-click the plot → Add X Marker Here or Add Y Marker Here (or press X / Ctrl+Y with the pointer on the spot). Markers are named X1, X2, Y1, … per graph.
  2. Drag a marker line to move it.
  3. Open ☰ → View → Graph Markers. Click one marker, Ctrl+click a second one on the same axis and the same graph, and press Pair.

The pair’s band is shaded on the plot with its Δ, and Pair Measurements in the panel lists:

PairValues
Two X markersΔX (the distance), f = 1 / ΔX and T = ΔX, then Mean, RMS and P-P (peak-to-peak) of a signal between the two lines.
Two Y markersΔY (the distance).

Choose the signal for Mean, RMS and P-P in the panel’s signal list. With All Signals they are those of the graph’s first signal. f is in hertz only when X is in seconds: on a time axis in minutes it is per minute. Copy puts all pair measurements on the clipboard as a table.

Select an X marker to see Signal Values at Marker: each signal’s value at that X. Below the list, Name, Pos and Color edit the selected marker; press Save.

Panel buttonWhat it does
GraphThe graph the buttons below act on: the first graph by default. Selecting a marker picks its graph.
Add X / Add YA marker in the middle of the view.
At Max / At MinAn X and a Y marker at the maximum or minimum of the chosen signal in the current view.
Remove, Toggle, Go ToDelete, hide or show, or centre the graph on the selected marker.
Pair / UnpairMake or break a pair.
Show All, Hide All, Clear AllAll markers at once.

In beta 2: markers work on live graphs only, not in a saved session view.

Markers are not saved: they are gone when you close SerialFlow, and a session does not hold them. Bookmarks are saved.

The Statistics tab

Press Stats on the graph toolbar. Each signal gets a block with one large value (the newest sample) and a list of statistics in a Live column, over the last 100 points by default.

Temperature graph beside a statistics panel.
The Statistics tab beside the plot.
  • Mark a region and a Sel column adds the same statistics for the region.
  • Move the pointer over the plot and a Cur column shows the value under the pointer (in the rows Cur, First, Last, X@Min and X@Max).
  • With the horizontal cursor line on a lane, each signal in that lane also gets Level, Δ to level, Crossings (how often the signal crosses the level in the visible range), First cross X and Last cross X.

The statistics are worked out only while the tab is on screen, four times a second by default. They use the stored values, before the sidebar’s Scale and Offset. A value marked ≈ was estimated from a sample of a very large range.

Press ⚙ on the tab (or right-click the plot → Statistics View…) to choose what is shown. The settings are shared by every graph and saved in your profile.

StatisticLabelMeaning
Current valueCurThe newest sample. Shown large at the top by default.
Minimum ✓MinLowest value
Maximum ✓MaxHighest value
Peak to peak ✓P-PMax − min
Average ✓AvgThe average chosen under AVERAGE: mean, RMS, median or EMA
Arithmetic meanMeanSum ÷ count
RMS ✓RMSRoot mean square
MedianMedMiddle value
Standard deviation ✓StdSpread around the mean
VarianceVarStandard deviation squared
Sample count ✓NNumber of points
SumSumSum of the values
Integral∫Area under the curve
SlopeSlopeLeast-squares slope, dY/dX
DeltaΔLast − first
First / LastFirst, LastFirst and last value in the range
X of min / X of maxX@Min, X@MaxWhere the minimum and maximum are
X spanΔXWidth of the range in X
Sample rateRateSamples per X unit
Absolute peak|Max|Largest absolute value
Crest factorCrestPeak ÷ RMS

✓ = shown by default.

SettingChoices
VALUES SHOWNTick, untick and order (▲ ▼) the rows.
HEADER VALUEWhich statistic is shown large, its Font size, Show unit.
AVERAGEMode: Arithmetic mean, RMS, Median or Exponential moving average (with EMA α).
HOW MANY POINTS ARE INCLUDEDWindow: Last N points (Points, default 100), Visible range, or All stored points.
NUMBERSFormat: Significant digits, Fixed decimals, Scientific or Engineering (SI); Digits (5); Unit on every row.
VIEWSecond column for the marked region, Include hidden signals, Column for the mouse cursor, Cursor readout on the plot, Refresh (ms), Scan cap.

Display averaging

Noisy data can hide the signal. The Display: list on the graph toolbar draws one point per X interval, worked out from all samples in it. The box next to it sets the interval (the bucket width) in X units: 0.1 on a time axis in seconds draws one point per 100 ms. The stored data is not changed: choose Raw and every sample is back.

Two graphs: a noisy orange current trace on the left, the same trace smoothed on the right.
Display: Raw (left) and Average over 0.1 s (right). The stored data is the same.
Display modeOne point per interval, drawn at its centre
RawOff: every stored sample (default)
AverageMean of the samples
MinimumLowest sample
MaximumHighest sample
RmsRoot mean square
SumSum of the samples
CountNumber of samples (the Y axis then counts samples)
FirstFirst sample
LastLast sample

The setting applies to every signal and layer in the pane and is saved with the view. XY data (X going back and forth) is always drawn raw. The statistics, the export and the recording use the stored samples, not the averaged line.

Ingest Policies: what gets stored

Display averaging changes the picture. Ingest Policies… (right-click the plot) changes what is stored, which saves memory on fast streams. A rule applies to one graph letter (or * for all) and one signal (or 0 for all), on every port, and acts on new samples only.

FieldChoices
XCommandX (the X from the data line), SampleIndex (0, 1, 2, … per signal), ArrivalSeconds (when the sample arrived on the PC)
EmitEveryPoint, FixedXInterval (one point per Width in X units), FixedTimeInterval (one point per Width seconds), EveryNth (one point per N samples)
AggHow the stored point is made: Average, Minimum, Maximum, Sum, Count, Rms, First, Last
KeepMost points to keep per signal; 0 = the mode’s default

The same window sets Logger-mode retention default: a logger keeps up to 1 000 000 points per signal unless you change it (0 = no limit). Press Apply to use the rules. Samples merged by a rule cannot be brought back.

Several graphs

Each port can have 26 graphs, A to Z, with up to 32 signals each, plus computed signals. Each graph is a pane in the window, named by the firmware with the port in brackets, for example Speed Control (COM4).

  • Side by side: drag a graph’s tab over another pane and drop it on one side of the dock cross that appears.
  • Own window: press Pop Out or Full Screen on the graph toolbar, or right-click the tab → Pop Out or Pop Out Full Screen (see Pop out and full screen). Float, Dock, Dock as Document and Auto Hide are in that menu too.
  • Several ports: each port’s workspace has its own graphs, so graph A on COM3 and graph A on COM4 are separate panes.

The look of each graph (layout, lanes, line styles, zoom, display mode, sidebar) is saved in your profile per graph and port. When the firmware creates the graph again, for example after a reset, it comes back the way you left it.

Views you open yourself (a session, or a new view from a selection) are panes you can close. Closing one removes it for good. A view opened from a session file opens again on the next start, as long as the file is still there.

Graph styles

A graph style sets how a graph looks, apart from the data: backgrounds, grid, axes, legend, default line width and pattern, marker and bookmark colours, and a palette for signals the firmware sends without a colour.

The same temperature, voltage and charge graph three times: on a dark, a light and a high-contrast black background.
One graph in different graph styles.

SerialFlow has 26 built-in styles, one for each colour profile and with the same name. A graph left on (Global Default) in its toolbar style list paints itself from the active colour profile, so switching the colour profile retints the log and every graph at once.

Pin one graph to a style: pick a style in that graph’s style list. The list offers your own styles first, then the 26 built-in ones. The pin is per graph letter, so it applies to graph B on every port. Choose (Global Default) to follow the colour profile again. Saved session views have no style list: they follow the colour profile.

Make your own style: ☰ → Tools → Graph Styles… opens the Graph Style Editor.

  1. New makes a style, Dup copies the selected one. Or pick a built-in style under Theme Preset and press Add as Profile to start from it.
  2. Give it a Profile Name and change what you want:
GroupSettings
Figure & Data AreaFigure and data backgrounds
GridMajor and minor grid colour, major grid width, show major / minor grid
AxesLabel, tick label, tick and frame colours; label and tick font sizes
LegendShow legend, background, text colour, outline, font size
Signal DefaultsDefault line width and pattern, anti-alias
Bookmarks & MarkersBookmark colour and width, reference line colour, marker line width, pair shading and label colours
Interaction OverlaysSelection accent colour
Signal Color PaletteColours for signals without their own; + Add Color, x to remove
  1. Press Apply Preview to update the graphs that use the style. Your styles are saved in your profile.

Import and Export move a style as a JSON file. Theme Preset + Apply overwrites the style’s colours with a built-in one, and Reset goes back to the factory default.

Compare runs

Lay a saved run over the graph you are looking at, for example last week’s run under today’s live data.

Graph with two MOSFET temperature curves, the newer run peaking about 14 °C lower.
Compare: a saved run laid over today’s data.
  1. On the graph’s toolbar, press Compare… (or Import…: it is the same).
  2. Pick one or more files: a .sfplot session, a Data Collector .sqlite database, CSV, TSV, JSON Lines or JSON. For a database, pick the run in Select Recorded Run (runs that did not finish are marked ⚠).
  3. The file’s series appear on the plot and as extra rows at the end of the Signals sidebar.

Each layer row has three extra fields:

FieldWhat it does
X-OffsShifts the whole layer along X. Use it to line up, say, the motor start of both runs.
Opacity0.1 to 1.0. Dim the old run so the differences stand out.
Remove LayerTakes the layer off the graph. The file is not changed.

Untick signals you do not need, and use Solo to compare one signal at a time. The Statistics tab (with its Sel column) and New View from Selection include the layers; marker pair measurements and Crop / Delete do not. To keep a comparison with its data, press Save Session: the .sfplot file holds the layers too.

Good to know

  • Image (Ctrl+P) saves the plot area only, without toolbar or sidebar, at least 800 × 500 pixels, and without the pointer readout.
  • The legend lists the visible signals as name [unit]. Whether it shows, and where, comes from the firmware’s L line; without one, New View Defaults → Show legend decides. G hides or shows it, and your choice then wins until SerialFlow restarts.
  • Event marker labels keep clear of the legend: in a narrow pane a label the legend would cover moves to the left of its line, or just below the legend.

Signals and units

On the product page: Units →

The firmware sends numbers. Signal Manager turns them into the values you want to see: it converts units, derives new signals from existing ones and guards against bad samples. Open it with ☰ → Tools → Signal Manager… or its toolbar button. It is a separate window that stays on top, so you can watch the graph while you work. Changes take effect at once and are saved in your profile.

It has three tabs:

TabWhat it does
Incoming SignalsScale, offset, unit, name and colour for each signal the firmware sends
Computed SignalsNew signals worked out from one or two others, such as power = voltage × current
OverridesRules that act on the data before it is stored: graph gating, value ranges, filters, decimation

The order inside SerialFlow is: a sample is parsed, the override rules check it, the unit conversion is applied, and then it is stored, drawn and recorded. Computed signals are worked out from the converted values.

Scale, offset and unit

A conversion is linear: shown value = received value × Scale + Offset. That covers dividers, shunts, Hall sensors and linear temperature sensors.

Signal Manager, Incoming Signals tab: three graph G signals with their scale factors, and the heatsink's unit conversion with name Heatsink, unit °C, scale 0.0805861 and offset -50.
Signal Manager → Incoming Signals.
  1. Let some data arrive. Incoming Signals lists every signal it has seen: Graph, ID, MCU Name, Unit, Scale, the live Value, Samples and Description. Refresh looks again.
  2. Select a signal. Under UNIT CONVERSION, fill in what you need:
FieldWhat it does
NameShown instead of the firmware’s name. Empty keeps the firmware’s name.
UnitShown instead of the firmware’s unit.
ScaleThe received value is multiplied by this.
OffsetAdded after scaling.
ColorRecolours the signal on the graph, dashboards and statistics, straight away.
NoteYour own reminder, shown as Description in the list.
  1. Tick the row’s check box, or press Enable All. New rows start unticked: a pass-through.
  2. Formula shows the conversion, and Preview shows it applied to the last sample, such as 1079 cnt → 36.9524 °C, with the last, min, max and average below.

The Quick: buttons fill in a common scale and clear the offset: milli→base (× 0.001), micro→base (× 0.000001), centi→base (× 0.01), kilo→base (× 1000), base→kilo (× 0.001), Invert (× −1) and Reset (× 1, offset 0).

The left side, MCU INPUT, shows what the firmware declared. Two of its fields change how the incoming text is read, while the row is ticked: Format (read the number as decimal, real, hex and so on) and SI Prefix (a power of ten, picked from the list or typed under Custom). ✖ returns each to the firmware’s setting.

+ Add makes a row for a signal that has not arrived yet: set its Graph and Signal under MCU INPUT. - Remove deletes the selected row. Disable All unticks every row. Reset Stats clears the min, max and average. RX Analyzer and RX String open the analysers for the raw data.

  • New samples only. A conversion applies to samples as they arrive. Samples already in the graph keep their values: send the data again after a change.
  • Everywhere. The converted value is what the graph, statistics, dashboards, export and Data Collector see.

Computed signals (ID 100 and up) are not listed here: they have their own tab.

A Color set here stays: it is used again when the graph is created anew, for example after a restart or a new I line, and dashboard widgets get it too.

Computed signals

A computed signal is worked out on the PC from one or two signals, every time new data arrives, and drawn as a new trace. Its ID is 100 or higher, so it never clashes with the firmware’s signals 1 to 32.

  1. On Computed Signals, press a template under Templates:, or + Add for a blank one.
  2. Under SIGNAL IDENTITY, set Name, Unit and Color.
  3. Choose the Operation.
  4. Choose Source 1 (and Source 2 for two-signal operations) from the list, or type the graph letter and signal ID in or Graph: and ID:. Sources can be on different graphs.
  5. Set Target: Graph (the graph that shows the result) and tick Show on Graph. The ID is shown beside it.
  6. Result shows the calculation with the latest values, for example 52.091 × 12.124 = 631.57.
OperationResult
Add (+)Source 1 + Source 2
Subtract (−)Source 1 − Source 2
Multiply (×)Source 1 × Source 2
Divide (÷)Source 1 ÷ Source 2 (0 when Source 2 is 0)
MaximumThe larger of the two
MinimumThe smaller of the two
Average(Source 1 + Source 2) ÷ 2
Percentage (%)Source 1 ÷ Source 2 × 100 (0 when Source 2 is 0)
Absolute Value |x||Source 1|
Negate (−x)−Source 1
Scale + Offset (ax+b)Source 1 × Scale (a) + Offset (b)
Square (x²)Source 1²
Square Root (√x)√Source 1 (0 for a negative value)
Delta (Δ)Source 1 minus its previous value
TemplateMakes
Power (V×I)Multiply, named Power, unit W
Efficiency (%)Percentage, Efficiency, unit %
Difference (Δ)Subtract, Difference
Sum (+)Add, Sum
AverageAverage, Average
Ratio (÷)Divide, Ratio
Scale+OffsetScale + Offset, Scaled
Rate of ChangeDelta, dV/dt, unit /s

The row’s check box turns a computed signal on or off. Duplicate, - Remove and ▲ / ▼ manage the list. Computed signals use the converted values, so a power signal multiplies volts by amps, not ADC counts.

Rate of Change is the difference between two successive values. It is not divided by the time between them, so its /s unit is right only when samples come once a second.

Overrides: value ranges, gating and filters

The Overrides tab acts on the data before it is stored, drawn or recorded. Enable Override System turns all of it on or off. The sections:

Override Configuration Wizard, Value Range Rules step: three rules on graph G with Hold, Clamp and Discard.
The Setup Wizard, value-range step.
SectionWhat it does
Graph GatingWhich graph letters are accepted. Mode: AcceptAll (every letter, the default), Whitelist (only the letters ticked below; Allow All / Reject All tick or untick them all), ManualOnly (only letters with a manual graph definition), Locked (no letter: every graph line is ignored).
Manual Graph DefinitionsA graph SerialFlow creates itself, without the firmware’s init lines: Graph, Name, Buffer, Mode, and Auto (create it when a port connects). Data for that letter then makes the graph appear. Import copies the set-up and signals of the open graph with the same letter. Details… sets the X axis and the signals by hand (see below).
Init OverridesReplace values in the firmware’s init line for a graph, from the next one it sends: Name Override, Buffer, Mode. Empty keeps the firmware’s value. Suppress ignores the init line altogether. Details… sets the X axis and single signals (see below).
Signal FiltersPer signal: Accept (normal), Reject (drop its data) or InitOnly (keep the signal, drop its data). Signal 0 = all signals of the graph.
Value Range RulesPer signal: what to do with a value outside Min to Max.
DecimationPer signal, Factor samples become one stored point (or two, for MinMax). Signal 0 = all signals of the graph; factor 1 = no decimation.

Every rule is edited in its row: type in a cell, then press Tab or click elsewhere to apply it. A red cell holds a value SerialFlow can’t use (hover it to see why), and the rule keeps its last good value. + Add makes a rule for the first graph that has data, and its lowest signal (graph A, signal 1 before any data). Remove deletes a rule, and the check box turns it off.

Decimation modeFor each window of Factor samples, it stores…
NthSamplethe last sample of the window
Averagethe mean of the window, at the X of its last sample
MinMaxthe lowest and the highest value, each at its own X, in the order they arrived: two points per window (one if the window is flat), so short peaks stay visible

Values a value-range rule discards do not count towards a window.

Two rules for the same target. When two enabled rules in one list cover the same graph (and signal), an amber line under the list names the rows, such as ⚠ Rows 1 and 3 both cover A:2. The lower enabled row in the list wins. That is the rule for value ranges, decimation, init overrides and manual definitions. In Signal Filters, Reject and InitOnly win over Accept, whatever the order. Signal 0 overlaps every signal of its graph.

Value-range actionA value outside the range…
Discardis dropped: not drawn, not stored, not recorded.
Clampis set to Min or Max.
Holdis replaced by the last value that was in range (0 until one has arrived).

An empty Min or Max means no limit. The check runs on the value as it arrives, before the unit conversion, so the limits are in the firmware’s units: ADC counts, not volts.

The wizard: press Setup Wizard. Choose what to set up, for example Validate signal value ranges (discard, clamp, or hold), or Configure everything step by step for all of it. Next → and ← Back move between steps; the last one, Review & Apply, lists the result. Apply saves it, Cancel throws away every change made in the wizard. Its rule steps have the same editable rows as the Overrides tab, so the rules it builds work as you typed them. On the Manual Graph Definitions step, a row’s Import button copies the set-up of the open graph with the same letter.

Details… on an Init Overrides or Manual Graph Definitions row (on the Overrides tab and in the wizard) opens the fields the row has no room for:

  • X axis: Type (Time T or Value V), Display (Raw R or Formatted F), Label, Unit and SI prefix (−9 to 6). In an init override, (MCU) or an empty box keeps what the firmware’s init line sends.
  • Signal overrides (init override): one row per signal, with + Add and Remove: Signal (1 to 32, each once), Type, Format (D, U, R, F or Fn, H or Hn, width 1 to 20), Name, Unit, SI prefix, Color (RRGGBB, with a swatch) and Visible ((MCU), shown or hidden). Empty fields keep the firmware’s values, so a new row changes nothing until you fill something in.
  • Signals (manual definition): the same fields for every signal of the graph. Visible is a check box, and an empty Color gives an automatic colour. Import on the row replaces them all with the live graph’s.

A field takes effect when you leave it, like a row cell: on the Overrides tab at once, in the wizard on Apply. A red box holds input SerialFlow can’t use, and the rule keeps its last good value. Close closes the dialog. An init override applies from the next init line the firmware sends.

Good to know

  • Linear only. An NTC thermistor or another curved sensor still needs its curve in the firmware.
  • The wire can carry a power of ten. The SI prefix field of the firmware’s signal line scales by 10ⁿ. A factor such as 66/4095, or an offset, needs Signal Manager.
  • Two scales, two jobs. Signal Manager’s Scale changes the value everywhere. The graph sidebar’s Scale only changes how one graph draws it.

Recording and exporting

On the product page: Recording →

There are three ways to keep graph data:

WayWhat you getBest for
Data CollectorEvery sample of every graph on every open port, as SQLite, CSV and/or JSON LinesLong runs, Python, records
Export…One graph as CSV, TSV, JSON Lines, JSON or .sfplotA spreadsheet of one graph
Save SessionOne graph view as a .sfplot file: data, notes and lookReopening, sharing, comparing

Raw terminal text is not part of any of them. The terminal’s log file and auto-log keep that.

The firmware can also do some of this itself: start and stop a Data Collector run, save a graph or the log. See Device commands.

The Data Collector

The Data Collector writes every graph sample to disk while it arrives. It needs no firmware change, and one recording covers all open ports.

SerialFlow window recording, with live sample counts per storage format.
The Data Collector while it records.
  1. ☰ → View → Data Collector opens the panel.
  2. Type a Run name (optional).
  3. Press ● Record. The status reads ● RECORDING.
  4. Run your test.
  5. Press ■ Stop. The run is listed under RECENT RUNS (THIS SESSION) with its length, samples, signals and formats. Open Folder shows its files.
Panel itemMeaning
ElapsedTime since ● Record
SamplesSamples recorded
RateSamples per second
SignalsSignals seen in this run
EventsEvents recorded (see below)
QueueSamples waiting to be written
DroppedSamples lost because the disk could not keep up. Shown in red, only when it is not 0.
STORAGEOne row per format: items written, and OK or the error (hover for the message)

Settings… on the panel opens the settings below. Changes apply to the next run.

The firmware can start and stop a run too, with ~RecOn[:name] and ~RecOff, once device commands are switched on (see The commands). The name becomes the run name, as if typed into the panel.

Data Collection settings

Settings → Terminal & Data → Data Collection:

SerialFlow Settings dialog on the Data Collection page, with SQLite database, CSV files and JSON Lines stream ticked.
Settings → Data Collection.
SettingDefaultWhat it does
SQLite database (single file, queryable — recommended)onWrites to an SQLite database.
One database for all runs (off = one file per run)onOn: every run goes into serialflow-recordings.sqlite. Off: each run gets data.sqlite in its own folder.
CSV files (samples.csv + events.csv per run)offWrites two CSV files per run.
Delimiter:CommaComma, Semicolon or Tab. Use Semicolon for Excel with a decimal comma.
JSON Lines stream (data.ndjson per run)offWrites one JSON object per line.
Output FolderemptyWhere runs are written. Empty = <Main Folder>\recordings, normally Documents\SerialFlow\recordings.
Include computed (derived) signalsonRecords computed signals too.
Record events (bookmarks, markers, graph init/clear, port connect/disconnect)onRecords events next to the samples.
Start recording automatically when a port connectsoffStarts an unnamed run when a port connects and nothing is recording.
Stop recording when the last port disconnectsoffStops the run when no port is connected any more.
Queue Capacity65 536 samplesRoom between the serial ports and the disk (1 024 to 1 048 576).
Batch Size2 048 samples / transactionSamples written at once (64 to 16 384).
Flush Interval250 msHow often files are flushed (50 to 5 000 ms).

At least one format must be on, or ● Record does not start a run.

What is recorded

  • Samples: every sample that reaches a graph, from text and packed binary lines, after the override rules and the unit conversion: the values the graph shows. Samples dropped by a value-range rule, a filter or decimation are not recorded, nor are samples that arrive while a graph is paused.
  • Signals: port, graph letter, signal ID, name, unit, colour and value type.
  • Events: run start and stop, graph init (I), clear (C) and frame flush (F), and the firmware’s bookmarks (B), event markers (E) and marker lines (M), plus port connect and disconnect. Bookmarks and markers you add on the PC are not recorded.
  • Time: each sample’s arrival time on the PC, from a clock that never jumps, and its own X from the firmware. When data is fed from a file, many samples arrive within a second, so use x for the firmware’s time axis.

The serial port never waits for the disk. If the disk falls behind, new samples are dropped and counted in Dropped and in the run’s dropped_count.

Files and folders

Documents\SerialFlow\recordings\
  serialflow-recordings.sqlite              every run, when One database for all runs is on
  rec-20261105-095814-843-motor-bench-run\  a folder per run: date, time, run name
    samples.csv   events.csv                CSV files
    data.ndjson                             JSON Lines
    data.sqlite                             only when One database for all runs is off

The run folder is named rec- + date + time with milliseconds + the run name (spaces become _, at most 40 characters). A run without a name has no name part. With only the single SQLite database on, no run folder is made.

SQLite. Tables meta, runs, signals, samples and events, and two views that join them:

Table or viewColumns
runsrun_id, run_key, name, started_utc_ticks, ended_utc_ticks, app_version, profile, ports, notes, sample_count, dropped_count
signalsrun_id, signal_key, port_slot, port, session_id, graph_id, signal_id, name, unit, color, value_type, is_computed
samplesrun_id, signal_key, t_utc_ticks, x, y
eventsrun_id, t_utc_ticks, port, graph_id, kind, label, x, detail
v_samplesrun_id, run_name, port, graph_id, signal_id, signal_name, unit, is_computed, t_utc, t_utc_ticks, x, y
v_eventsrun_id, run_name, port, graph_id, kind, label, x, detail, t_utc, t_utc_ticks

Python’s built-in sqlite3 reads it. SQLite survives a crash or a power cut; a run that did not finish is marked as interrupted.

CSV. One row per sample (long format).

FileColumns
samples.csvtimestamp_utc, port, graph, signal_id, signal_name, unit, is_computed, x, y
events.csvtimestamp_utc, port, graph, kind, label, x, detail

JSON Lines. data.ndjson starts with a run line, then a signal line for each signal, then one line per sample, {"k":…,"t":…,"x":…,"y":…} (k is the signal’s key), with event lines in between, and ends with an end line that holds the sample and drop counts.

CSV and JSON Lines can lose the last flush interval (250 ms by default) if SerialFlow crashes.

Event kinds in the kind column: RunStarted, RunStopped, GraphInitialized, GraphCleared, FrameFlushed, Bookmark, EventMarker, MarkerLine, PortConnected, PortDisconnected.

Export a graph

Export… on the graph toolbar writes one graph to a file. The format follows the file type you pick:

File typeContents
CSV wide formatFirst the X column, named after the graph’s X axis as label [unit] (such as Time [min]), or X when the graph names none. Then one column per signal headed name [unit]. Rows are merged on X; a cell is empty where a signal has no sample at that X.
CSV long formatColumns series, the X column (named as above, or x) and y: one row per sample, series = name [unit].
TSVWide format, separated by tabs.
JSON Lines (.ndjson)A {"type":"series",…} line per signal (id, name, unit, colour), then {"s":…,"x":…,"y":…} per sample.
JSONOne object: graph name, xLabel, xUnit, and per signal its name, unit, colour and x / y arrays.
Plot session (.sfplot)The same as Save Session.
  • On a live graph, the signals ticked in the sidebar are exported, plus the imported layers. All stored points are written: there is no limit.
  • Numbers use a full stop and full precision. CSV files are UTF-8, readable by Excel.
  • If X goes back and forth (XY data), wide CSV and TSV are written as long format instead.
  • Selected range only: mark a region first, and the dialog title says Export data (selected range only). Every format keeps to it; an .sfplot then holds the visible signals in that range, like New View from Selection.

In beta 2: in a session view, hidden series are exported too.

Files go to <Main Folder>\sessions by default, named after the graph and the time.

Plot sessions (.sfplot)

A session is one file that holds one graph view: its data and its look. Send it to a colleague and they need no port and no recording.

Reopened temperature graph from a saved plot session.
A plot session opened in its own view.
A session holdsA session does not hold
Every signal’s stored pointsMeasurement markers
The firmware’s limit lines, marker lines, event markers and notes (H, M, E, T)The marked region
Bookmarks, with their saved viewsThe graph style pin (a session follows the colour profile)
Imported compare layers, with their data
The view: zoom, layout, lanes, line styles, display averaging, sidebar
The firmware’s axis and legend set-up: Y range, label and unit (Y), X range, label and 1:1 (X), legend (L)

Save: press Save Session on the graph toolbar. The dialog Save plot session starts in <Main Folder>\sessions (normally Documents\SerialFlow\sessions). Saving runs in the background, so live data keeps flowing.

Reopen: right-click any graph → Open Session in New View… and pick the file. It opens as a view of its own, named after the file. You can zoom, measure, average, crop, export, compare and save it again. It opens again on the next start, as long as the file stays where it is.

Use as a layer: Compare… with a .sfplot file lays its data over the current graph. See Compare runs.

A session saved with beta 1 does not hold the axis set-up: it opens with an auto-scaled Y axis and no Y-axis title. Its data is complete.

Import data back

Import… and Compare… on any graph’s toolbar load files as overlay layers. You can pick several at once.

FileHow it is read
.sfplotEvery graph view in the session becomes a layer.
.sqlite (Data Collector)Pick the run in Select Recorded Run (Id, Key, Name, Started (UTC), Samples; double-click or Import). All signals of the run come in, at the X the firmware sent.
.csv, .tsv, .txtComma, semicolon or tab, a header line and a decimal comma are detected. Lines starting with # are skipped. The first column is X; every other column becomes a signal, named from the header.
.ndjson, .jsonlData Collector JSON Lines and SerialFlow’s own JSON Lines export. Lines that cannot be read are skipped, so a file cut off by a crash still loads.
.jsonSerialFlow’s own JSON export, or a plain array of {"x":…,"y":…} points.

To look at a session on its own instead of over another graph, use Open Session in New View….

Device commands: save and record from the firmware

The firmware can ask SerialFlow to keep data for you: save the log, save a graph, or start and stop the Data Logger and the Data Collector. The typical use: a streamer graph shows a fixed number of points, the firmware sees that something is worth a look (a stall, an overcurrent trip), and it sends “save”. That window of data is kept while the stream goes on.

Switch them on

The commands are off by default, so a stray line can never write files. Open Settings → Terminal & Data → Device Captures:

SettingDefaultWhat it does
Allow device commands that save captures and start or stop loggingoffLets the commands below run
Capture FolderemptyWhere captures go. Empty = <Main Folder>\captures, normally Documents\SerialFlow\captures. Browse… picks a folder

While the box is off, the commands are still recognised and taken out of the log, but they do nothing. The first one after SerialFlow starts shows a hint in the status bar: The device sent ~SvLog, but device commands that save files are off.

The commands

Like every command, each one must start its line, end with a line end (\n or \r\n), and is case-sensitive.

CommandWhat it doesExample
~SvLog[:label]Saves the main terminal’s text to a capture file~SvLog:boot → boot.txt
~SvLogW[:label]Saves status window W (1 to 9) instead~SvLog2 → window2-0003.txt
~{G:W[:label[:P|C|B]]}Saves graph G’s data: P = .sfplot (the default), C = CSV, B = both. See Save: W~{A:W:spike} → spike.sfplot
~LogOn[:label]Starts the Data Logger on a new file in the capture folder, in the format set in its panel (.txt, .csv or .bin)~LogOn:run7 → run7.txt
~LogOffStops the Data Logger~LogOff
~RecOn[:name]Starts a Data Collector run; the name is the run name. Its files go to the Data Collection folder~RecOn:soak
~RecOffStops the Data Collector run~RecOff

These are ignored, with a notice in the status bar: ~SvLog for a window that does not exist (no window is opened), ~{G:W} for a graph that does not exist, ~LogOn while the Data Logger is already logging, and ~RecOn while a run is recording. ~LogOff gives the Data Logger panel its own file path back, so pressing Start there later cannot write over the capture.

File names and what a file holds

  • The label is the file name. Blanks and characters a file name cannot hold become _, and it is cut to 60 characters: ~SvLog:motor stall/1 writes motor_stall_1.txt. The Saved Captures list still shows the label as it was sent.
  • Without a label, captures are numbered with one running number for all kinds: log-0001.txt, window2-0002.txt, graphA-0003.sfplot, datalog-0004.txt.
  • Nothing is overwritten. If the name is taken, SerialFlow adds -2, -3, …: boot.txt, boot-2.txt.
  • ~SvLog saves every line the window holds when the command arrives, one per line, as UTF-8. The command line itself is not in it. When the terminal shows timestamps, each line starts with its time.
  • ~{G:W} saves every signal of the graph (names, units, colours) with its limit lines, markers, notes and bookmarks, as they are when the command arrives. Samples that arrive while the file is written are not in it. The zoom and axis ranges are not saved: the capture opens fitted to its data.
  • Files are written in the background, in the order the commands arrived. The serial port never waits for the disk.

The Saved Captures pane

Every capture is listed in the Saved Captures pane: ☰ → View → Saved Captures, or its toolbar button. One pane lists the captures of every port. While device commands are off, it says so, with a Settings… button.

ColumnContents
TimeWhen the file was saved, newest first
LabelThe label as the device sent it, or the file name. Hover it for the file name
KindLog · Terminal, Log · Window 2, Graph A · .sfplot, Graph A · CSV or Data Logger
PortThe port the command came from
SizeThe file size
ButtonWhat it does
Open (or double-click, or Enter)A graph capture opens where Graphs open in: says: a new graph view, or an open graph view as a compare layer. A text capture opens in your default viewer
Open FolderExplorer on the capture folder, with the capture selected
Delete (or Del)Deletes the file, after asking
RefreshReads the folder again

The list survives a restart: the folder holds a small index, captures-index.json, and SerialFlow also looks at the files themselves, so a file without an entry still shows and a file deleted in Explorer drops out. Data Collector runs started with ~RecOn are not listed: they are in the Data Collection folder.

Example

// Keep the evidence when something goes wrong
if (motorStalled) {
    printf("~SvLog:stall\n");        // the log up to now   -> stall.txt
    printf("~{A:W:stall:B}\n");      // graph A as it is now -> stall.sfplot + stall.csv
}

// One test run, one log file
printf("~LogOn:test42\n");           // -> test42.txt (or .csv, as the Data Logger panel is set)
run_test();
printf("~LogOff\n");

Dashboards

On the product page: Dashboards →

SerialFlow has two kinds of dashboard. Both show the same live values as your graphs.

  • The HMI canvas is a free-form screen. You place widgets where you want them, on a plain colour or a picture of your bench, and colour them with thresholds.
  • The grid Signal Dashboard needs no layout. You list the signals, and SerialFlow lays the tiles out in a grid.

A widget or tile does not read the serial port itself. It reads a graph signal: a graph letter (A to Z) and the signal ID from your firmware’s ~{A:S:1:…} line. So the firmware only needs to send graph lines; the dashboards need nothing extra from your board.

Open a canvas

Choose ☰ → Tools → New Canvas Dashboard, or click the New canvas dashboard button on the toolbar.

Animation: a dark dashboard with battery, inverter and motor panels; gauges and trend lines move, a warning banner turns orange.
A canvas dashboard in run mode, with live values.

A new pane called Canvas: Canvas 1 opens, with an empty 1920 × 1080 canvas. The next one is Canvas 2, and so on. SerialFlow writes the canvas file at once (see Save, export and files). To rename a canvas, use Properties → Canvas Name.

You can have several canvases open. Like any pane, a canvas can be docked, put in a tab group or dragged out into its own window. Pop Out and Full Screen on the canvas toolbar do it in one click, for example to put an HMI on a second monitor (see Pop out and full screen).

Open a saved canvas. The canvases that were open come back, docked where they were, when SerialFlow starts (and when you switch profiles). ☰ → Tools → Open Canvas Dashboard… lists every saved canvas, newest first, also the ones whose pane you closed; one shown on screen is marked open. Open loads it, or brings it to the front. Delete removes the canvas you picked, after asking: its file goes from the canvas folder. A canvas shown on screen can’t be deleted; close its pane first. The pictures it used stay in canvas\images, because other canvases may use them too.

Edit mode and run mode

A new canvas starts in run mode: the widgets show live values and you cannot move them. Click Edit on the canvas toolbar to switch to edit mode. Click it again to go back.

Canvas editor with a widget toolbox on the left and a widget list on the right.
Edit mode: the Widget Toolbox on the left, the Widgets list on the right.

In edit mode the Widget Toolbox appears on the left and the Widgets list on the right. The widgets keep updating while you edit, so you see live values as you lay them out.

The canvas toolbar:

ButtonWhat it doesMode
EditSwitches between edit mode and run modeboth
SaveSaves the canvas to its fileboth
PropertiesOpens Canvas Properties: name, size, background colour and image, gridboth
Import/Export ▾Export and import widgets as a JSON file or as text, or the whole canvas as a .sfcanvas fileboth
+ Widget ▾Adds a widget, from a menu grouped like the toolboxedit
Align ▾Lines up the selected widgets by their left, centre or right, or their top, middle or bottom (two or more), or spaces them evenly across or down (three or more). Locked widgets stay put. One undo stepedit
Undo, RedoUndo or redo adding, deleting, moving and resizing widgetsedit
SnapSnaps dragged widgets to the gridedit
GridShows the grid in edit mode: a faint line every grid step and a stronger one every fifthedit
-, +, 1:1Zoom out, zoom in, back to 100 %both
1920 x 1080The canvas size. A * after it means unsaved changesboth
Mute, Acknowledge (n)Silence alert sounds, or stop the sounding alerts (see Alarm sounds)both
Pop Out, Full ScreenThe canvas in its own window, or in its own window maximisedboth

Add, move and arrange widgets

In edit mode:

  • Add: click a widget type in the Widget Toolbox, or pick one from + Widget ▾. The new widget appears near the top-left corner of the canvas, at its default size. Then drag it into place.
  • Move: drag the widget. With Snap on, it snaps to the grid (10 px by default). The arrow keys move the selected widget by 1 px, Shift+arrow by 10 px.
  • Select: click a widget, or click it in the Widgets list. Ctrl+click adds widgets to the selection. Click the empty canvas to clear the selection.
  • Configure: double-click the widget (this also works in run mode, except on a Control widget: there the click is for its button or box), or double-click it in the Widgets list.

Right-click a widget, or a row in the Widgets list, for these commands:

CommandWhat it does
Configure…Opens Widget Settings
DuplicateAdds a copy 20 px down and to the right
Lock / UnlockA locked widget cannot be dragged or moved with the arrow keys. The list shows 🔒
Bring to Front, Send to BackPuts the widget on top of, or behind, the others
DeleteRemoves the widget

Right-click the empty canvas for Canvas Properties…, Paste, Select All and Save Canvas.

Dragging, the arrow keys, Duplicate, Lock and Delete act on one widget: the one you clicked last. Copying, Export Selected Widgets (JSON)… and Copy as AI Text take every selected widget.

Size. A selected widget shows eight handles: four corners and four edges. Drag one to resize the widget. A left or top handle also moves it. With Snap on, the moved edge snaps to the grid. A widget keeps its type’s smallest size and cannot go past the canvas’s left or top edge. A locked widget shows no handles. Widget Settings has no size fields; in the canvas text they are Width and Height.

The 67 widget types

The toolbox lists 67 widget types in 8 groups. The Type key is the name you use in the canvas text. Beta 2 adds 32 of them (marked new) to the 35 of beta 1. Every widget only shows values, except the four of the Control group: they send to the port when you click or type (see Control widgets).

Canvas full of different widgets: gauges, charts, status indicators, a compass, level bars and send buttons.
All 67 widget types on one canvas.

“Range” means Range Min to Range Max on the Thresholds tab (0 to 100 by default). If Range Max is not above Range Min, the widget uses the lowest and highest value it has seen.

GroupWidgetType keyShows
NumericLarge Value DisplayLargeValueDisplayThe value in large digits, with its unit and the Min and Max seen so far
NumericDigital LED DisplayDigitalLedDisplayThe value in seven-segment digits
NumericPercentage BarPercentageBarA horizontal bar filled across the range, with the value
NumericRolling CounterRollingCounterThe value in a dark counter box
NumericStatistics Panel newStatisticsPanelLast, Min, Max and Avg of the signal, and how many readings it has had
NumericRate Meter newRateMeterHow many readings per second the signal brings, over the last 2 s. It falls to 0 when the signal stops
NumericTotalizer newTotalizerThe sum of every reading since Reset Stats (also the readings between two screen refreshes), and how many there were
NumericValue + Trend newValueTrendThe value, with a filled trend of its latest readings under it
NumericPeak Hold newPeakHoldThe value, the highest and lowest of the last 10 s (Widget Settings → General → Window) and how long ago the peak was. A spike between two screen refreshes counts when it sets a new record. Reset Stats starts it over
NumericDuty Cycle newDutyCycleHow much of the last 60 s (Window) the value was not 0, as a bar with the percentage, and how often it switched on in that time. A value counts until the next one arrives
GaugeArc GaugeArcGaugeAn arc that fills across the range, with the value in the middle
GaugeLinear GaugeLinearGaugeA vertical thermometer bar
GaugeRadial GaugeRadialGaugeA round dial with a needle and tick labels
GaugeTank LevelTankLevelA tank that fills from the bottom
GaugeSemicircle Gauge newSemiGaugeA half circle from Range Min on the left to Range Max on the right, with a needle and the value under the hub
GaugeSegmented Bar newSegmentedBarLED segments, like a VU meter: upright when the widget is taller than wide, else across. The lower 70 % in the primary colour, 70 to 90 % amber, the top 10 % red
GaugeBattery Level newBatteryLevelA battery filled to the value’s place in the range, with the percentage. Red below 20 %
GaugeZone Gauge newZoneGaugeA 270° arc made of coloured bands from the threshold rules, with a needle and the value. An Above rule colours from its value up to the next higher one (or Range Max), a Below rule from Range Min up to its value; the rest is the primary colour. Without rules: the primary colour to 70 %, amber to 90 %, red above
GaugeBullet Gauge newBulletGaugeA bullet chart: three grey bands at the thirds of the range, the value as a bar across them, and a target mark at Widget Settings → General → Target, or at the running average when Target is empty
StatusStatus LEDStatusLedA round lamp in the colour of the threshold reached
StatusOn/Off ToggleOnOffToggleA small lamp next to the label, coloured by the thresholds
StatusMulti-State IndicatorMultiStateIndicatorThe label and value on a tile that takes the threshold colour: one colour per state
StatusAlarm BannerAlarmBannerA ⚠ banner with the label and value, in the threshold colour
StatusTraffic Light newTrafficLightRed, amber and green lamps from the threshold rules: green while no rule is active (or there are none), red while the last rule on the Thresholds tab is active, amber while another one is. All three are dark before data
StatusAnnunciator Panel newAnnunciatorOne lamp tile per bound signal (up to 16) with its name, lit in the primary colour while its value is not 0: pump on, door open, a fault bit
StatusData Alive newDataAliveA green Receiving while the signal sends, a red No data when no new value came within the timeout (Widget Settings → General → Timeout, 2 s by default), and how long ago the last one came. Waiting before the first value
StatusAlarm Counter newAlarmCounterHow many times a threshold rule switched on since the canvas opened (or Reset Stats), the time of the last one, and how long a rule was active in all. The count takes the active rule’s colour
ChartSparklineSparklineA trend line of the latest values, with the value
ChartMulti-Signal TrendMultiSignalTrendOne trend line per bound signal, drawn over each other, with the latest values below. Each line on its own scale, or all on one
ChartLive Bar ChartLiveBarChartOne vertical bar per bound signal, side by side across the range, with the values below
ChartHistogramHistogramHow often the latest values fell into each band
ChartStep Chart newStepChartA trend of the first bound signal drawn in steps: each reading holds until the next. For on/off and state signals
ChartArea Chart newAreaChartA trend of the first bound signal with the area under the line filled
ChartRadar Chart newRadarChartOne spoke per bound signal (up to 8), clockwise from the top, all on one scale like the Live Bar Chart; the signal names at the spoke ends
ChartDonut Share newDonutShareEach bound signal’s share of the sum of the latest values (up to 8; a negative value counts as 0), with a legend of name, value and percentage
ChartState Timeline newStateTimelineA band over the latest 100 readings, one slice each: the colour of the rule active at that reading, else the primary colour while the value is not 0, else dark grey. Under it the current state, from Widget Settings → General → States like a State Text
ChartHeat Grid newHeatGridOne cell per bound signal (up to 16), blue → green → yellow → red on one scale like the Radar Chart, with the name and value. Dark grey without data
ChartTrend Grid newTrendGridOne small trend per bound signal (up to 8), with its name and value, each on its own scale
TextText LabelTextLabelFixed text: the label, in the primary colour and font size. Needs no signal
TextValue + TimestampValueTimestampThe label, value and unit, and the time the value arrived
TextSignal Info CardSignalInfoCardThe value and unit, with Min, Max and Avg
TextData TableDataTableA Signal / Value / Unit table, one row per bound signal
TextLog TickerLogTickerThe last 12 readings of the first bound signal, newest first, each with its time
TextEvent Log newEventLogA line each time a threshold rule switches on or off: the time, ON or OFF, the rule and the value, ON lines in the rule’s colour. The last 50, newest first
TextState Text newStateTextA text for each value, from Widget Settings → General → States (0=Idle, 1=Running, 2=Fault, one per line). A value with no text shows as the number
ShapePipe ConnectorPipeConnectorA grey pipe, to join panels on a synoptic
ShapeShapeShapeA rectangle filled with the primary colour, with a thin border
ShapeImageImageWidgetA picture you choose in Widget Settings → General → Picture, with its stretch. Needs no signal
ShapeGroup FrameGroupFrameA titled frame, to group widgets
ShapeArrow newArrowA filled arrow pointing right; turn it with Rotation. With a bound signal it takes the threshold colour. Needs no signal
SpecializedCompassCompassA compass needle pointing at the value, in degrees
SpecializedXY PlotXYPlotOne signal against another: the x binding across, the y binding up (without those roles, the first binding against the second). With one binding, that signal against the reading number
SpecializedDial KnobDialKnobA knob whose mark shows the value across the range (display only)
SpecializedBitfield DisplayBitfieldDisplayThe lowest 8 bits of the value, as a row of lit and dark cells
SpecializedSignal Color MapSignalColorMapA colour gradient with a marker at the value
SpecializedDelta IndicatorDeltaIndicatorAn up or down arrow and the difference between the value and its average
SpecializedClock / UptimeClockUptimeThe time since the widget was created in this session, as hh:mm:ss. Needs no signal
SpecializedMini TerminalMiniTerminalGreen text on black: the last 12 readings of the first bound signal, newest first, each with its time
SpecializedProgress RingProgressRingA ring that fills across the range
SpecializedValve / SwitchValveSwitchA ball valve, drawn open when the value reaches a threshold and closed otherwise
SpecializedFan / Pump newFanPumpA rotor that turns while the value is not 0, faster as the value rises through the range. Grey and still at 0
SpecializedAttitude Indicator newAttitudeIndicatorAn artificial horizon: the pitch and roll bindings in degrees (without those roles, the first binding is pitch and the second roll). Nose up moves the horizon down; roll turns it
SpecializedPolar Plot newPolarPlotPoints by angle and radius: the angle binding in degrees (0 at the top, clockwise) and the radius binding (without those roles, the first is the angle, the second the radius). A line through the latest 100 points, the newest marked; rings and spokes every 30°. The outer ring is the largest radius rounded up to 1, 2 or 5 × a power of ten; a negative radius is drawn at the centre
ControlSend Button newSendButtonA button with the label. A click sends its text as it is. With a bound signal, the value shows under the label. Needs no signal
ControlToggle Switch newToggleSwitchAn on / off switch with the label and ON / OFF. On sends its text, off its Off text, {value} = 1 / 0. With a bound signal the switch shows the signal (not 0 = on), so it follows the board; without one it shows what was sent last. Needs no signal
ControlSend Slider newSendSliderA slider across the range in steps (Widget Settings → Send → Step, 1 by default), with its value. It sends when you let go of the mouse button, or a moment after the arrow keys; never while you drag. With a bound signal, an amber mark shows the board’s value. Needs no signal
ControlNumber Entry newNumberEntryA number box and Send; Enter sends too. . or , both work. A number outside the range turns the box red and sends nothing. With a bound signal, the board’s value shows under the box. Needs no signal

Sparkline, Step Chart, Area Chart, Value + Trend, State Timeline, Trend Grid, Multi-Signal Trend, Histogram, XY Plot and Polar Plot keep the latest 100 readings. On Sparkline, Step Chart, Area Chart, Multi-Signal Trend, Histogram and XY Plot, Readings kept on the Chart tab changes that (see Chart axes, grid and scale); on the others, SparklineBufferSize in the canvas text. Those six charts and the Live Bar Chart have the Chart tab: a grid, values and titles on their axes.

Control widgets: send to the port

The four widgets of the Control group put the board’s commands on the canvas: a Start button, a pump switch, a speed slider, a set point box. They are the only widgets that send. Set them up on Widget Settings → Send:

FieldWhat it does
Text sent (Toggle Switch: Text when switched on)What is sent, for example SET {value}. {value} becomes the slider value or the number typed, with the widget’s Decimal Places and always a dot (12.5, never 12,5); on the Toggle Switch 1 or 0. The Send Button sends its text as it is. An empty text sends nothing
Text when switched offToggle Switch only: what switching off sends
Hex bytesThe text is bytes, as on a Quick Send button: 01 A0 FF. A hex text cannot hold {value}: the tab shows that in red, and nothing is sent
Line endingAfter the text: None, CR, LF or CRLF (the default)
PortPort of the binding (the default: the port of the widget’s signal, else the main port), or one of your ports
Ask before sendingOn by default: every send first asks Send “SET 42” + CR LF to COM5?, with the exact text, line ending and port
Range Min / MaxSend Slider and Number Entry: the values that can be sent (0 to 100 when Max is not above Min)
StepSend Slider: the slider moves in these steps from Range Min

When they send. Only in run mode, only when you click or type, and only while the port is open. While it is not, the control is greyed out and its tooltip says Port not open. In edit mode a click selects and drags the widget, as on any other. Nothing is sent when a canvas opens, when you import or paste it as text, on undo or redo, during a playback, or when a new value arrives.

After a send the status bar says Sent “Start” to COM5 and the widget lights up for a moment. If the send fails, the status bar says why and the event log keeps the details. The terminal does not show what was sent.

A bound signal is the board’s answer. A Control widget can have one binding. It shows the board’s value (the Toggle Switch takes its state from it) and never changes what is sent. Let the firmware send its state back as a graph line, and the switch shows what the board really did.

Bind a widget to a signal

A new widget from the toolbox has no signal: it shows ---. To bind it:

  1. Double-click the widget. Widget Settings opens.
  2. On the Signals tab, click Add Binding. A row appears with Role primary, Graph A and Signal 1.
  3. Type the graph letter in Graph (capital A to Z) and the signal ID in Signal. The signal ID is the number in your firmware’s signal line: 3 for ~{A:S:3:…}.
  4. Leave Port empty for the main port. If you work with several ports, type the port slot, for example port1. One canvas can mix signals from several ports.
  5. Click OK. The widget shows the value as soon as the signal has data.

If you leave Label and Unit Display empty on the General tab, the widget takes the signal’s name and unit from the firmware.

Several widgets can share one signal. Data Table, Annunciator Panel and Heat Grid (up to 16), Multi-Signal Trend, Live Bar Chart, Radar Chart, Donut Share and Trend Grid (up to 8) show every binding you add. The XY Plot uses two: Role x and y. The Attitude Indicator uses two: Role pitch and roll. The Polar Plot uses two: Role angle and radius. Without those roles, the first binding is X (pitch, angle) and the second Y (roll, radius). The other widget types use the first binding; a Control widget has at most one, and it only shows the board’s value. The × at the end of a binding row removes it.

Widget Settings

Double-click a widget, or right-click it and choose Configure…. The dialog title shows the widget type.

TabFields
GeneralLabel, Unit Display, Decimal Places (default 2), Font Size (default 24; the size of the main value in Large Value Display, Text Label, Multi-State Indicator, Rolling Counter and Clock / Uptime), Label Position (for widgets that show their label as a caption: Top, the default, Bottom, Left, Right, Inside over the top-left corner, or Hidden), Locked. An Image widget also has Picture (… to browse) and Picture Stretch, a Data Alive Timeout (seconds without a new value before it shows No data; default 2), a State Text or State Timeline States (one value=text per line, for example 2=Fault), a Bullet Gauge Target (empty: the running average), and a Peak Hold or Duty Cycle Window in seconds (default 10 and 60)
AppearancePrimary Color and Background Color as six hex digits without # (the swatch beside each shows the colour), Border (None, Thin, Medium, Thick or Rounded, and its colour: a frame around the widget), Opacity from 0 to 1, Rotation in degrees, clockwise about the widget’s centre
ChartOnly for Sparkline, Step Chart, Area Chart, Multi-Signal Trend, Live Bar Chart, Histogram and XY Plot: grid, axis values and titles, the X axis, the scale and the readings kept (see Chart axes, grid and scale)
SendOnly for the Control widgets: the text, Hex bytes, the line ending, the port, Ask before sending, the range and the slider’s step (see Control widgets)
SignalsAdd Binding; per binding Role, Graph, Signal and Port, and × to remove it
ThresholdsRange Min / Max; Add Threshold; per rule its threshold, colour, condition and sound, and × to remove it (see Thresholds)

Click OK to keep the changes: the widget redraws with them at once, even when no new value arrives. OK also takes the number in the box you were typing in. Cancel drops every change, also edits typed into a binding row.

An Image widget’s picture is copied into the canvas folder (canvas\images) on OK, like a background picture, so moving the original does not break the canvas.

Chart axes, grid and scale

A new chart widget is a plain line, bar or plot without numbers. The Chart tab in Widget Settings gives it axes. It is there for seven widgets: Sparkline, Step Chart, Area Chart, Multi-Signal Trend, Live Bar Chart, Histogram and XY Plot. Step Chart and Area Chart have the same options as the Sparkline.

FieldWidgetsWhat it does
Grid linesallA line at each step of the axes
Values on the X axisall but Live Bar ChartThe readings (the newest is 0, older ones negative), the seconds (-10s … 0s), the band values of a Histogram or the X signal of an XY Plot
Values on the Y axisallThe value scale. On a Histogram: how many readings fell into each band
X axis title, Y axis titleX: all but Live Bar ChartText under the X axis, and text written upwards beside the Y axis
X axisSparkline, Step Chart, Area Chart, Multi-Signal TrendReadings, or Time: each reading placed at the moment it was read, in seconds before the newest
Y scale (Histogram: Value scale)all but Live Bar ChartAuto follows the readings on screen, rounded out to whole steps while values or a grid show. Fixed uses Range Min / Max and cuts off what lies outside (a Histogram leaves it out of its bands). A Multi-Signal Trend also has Each trace its own scale, its default
Range Min / MaxallThe fixed scale; the same two fields as on the Thresholds tab. A Live Bar Chart always uses them
X scale, X Min / MaxXY PlotAuto, or Fixed from X Min to X Max
Readings keptall but Live Bar ChartHow many readings the chart shows, 2 to 10 000 (default 100). A shorter history keeps the newest

The steps are round numbers (1, 2 or 5 times a power of ten). The text and grid are light on a dark widget and dark on a light one.

  • A chart takes one reading per screen refresh that brings a new value, about 30 a second at most, not every sample the firmware sends. For every sample, use a graph.
  • One Y axis needs one scale: on a Multi-Signal Trend, ticking Values on the Y axis gives every trace one shared scale, and Each trace its own scale clears it.
  • In a small widget the titles go first, then the X values. Below that the chart is drawn without axes.
  • Changing a binding starts the chart over, so a new signal, or X and Y swapped, does not mix with the old readings.

Thresholds

A threshold rule gives the widget a colour while its condition holds: by default, from a value upwards. On the Thresholds tab, click Add Threshold, type the value in Threshold: and a colour in Color:. For a temperature you might add:

Thresholds tab with two colour levels.
Thresholds: amber from 72, red from 78.
ThresholdColorResult
80FFA726amber from 80 °C
100FF5252red from 100 °C

Rules are checked from top to bottom and the last active one gives the colour, so list them from the lowest value to the highest.

Which widgets change colour. Every widget that draws in its Primary Color takes the active rule’s colour: value displays, gauges, bars, the tank, the ring, sparklines and charts, the digital LED, the rolling counter, info cards and tables. With no rule active, it goes back to its primary colour. Status LED, On/Off Toggle, Multi-State Indicator and Alarm Banner light up in the rule’s colour and are grey while no rule is active, and a Valve / Switch opens. For an on/off flag that sends 0 or 1, one rule is enough: threshold 1, colour green. A Traffic Light shows the rules as three lamps, an Event Log lists each time one switches on or off, an Alarm Counter counts them, a State Timeline colours its history with them, and a Zone Gauge draws them as bands on its arc.

More than one value. The second line of each rule sets when it is active:

FieldWhat it does
When statistic Above / BelowWhat is compared: Value (the current value, the default), or the Minimum, Maximum or Average over a time window. Above = active at or above the threshold (the default), Below = at or below it
over last … sThe window for Minimum, Maximum and Average. 0 = since Reset Stats
True for … s before it triggersA hold-off: the condition must hold this long without a break. 0 = at once
HysteresisAn active rule clears only below threshold − hysteresis (a Below rule: above threshold + hysteresis), so a value that hovers at the threshold does not flicker
Sound, repeat … sA sound when the rule triggers. See Alarm sounds

Example, average above 72 °C for 10 s: threshold 72, colour red, When Average Above over last 10 s, True for 10 s.

Rules are checked on every screen refresh, about 30 times a second, also while no new value arrives, so a hold-off completes while the device is quiet. The windowed Average counts every sample. The windowed Minimum and Maximum see the value at each refresh, so a short spike between two refreshes can be missed unless it is a new all-time extreme.

A rule with only a threshold and a colour works as in beta 1: active from the threshold upwards. Canvases saved with beta 1 load unchanged.

Alarm sounds, Mute and Acknowledge

A rule can play a sound when it triggers. Give a WAV or MP3 file in its Sound box (… to browse, ▶ to play it once, even while muted). repeat plays it again every so many seconds while the rule stays active; 0 plays it once.

The canvas toolbar, and the toolbar of the grid Signal Dashboard, have two buttons that act on every canvas and dashboard:

  • Mute silences all alert sounds and stops the one that is playing. Alerts are still tracked, so repeats go on when you unmute. Mute is not saved: SerialFlow starts with sound on.
  • Acknowledge (n): n is the number of active alerts that nobody has acknowledged. It stops the sound and its repeats until the rule clears and triggers again.

Each new alert also shows in the status bar, for example Alert: Temperature: average over 10 s ≥ 72 for 10 s, with an Acknowledge button (and (muted) while muted). So you can acknowledge an alert whose canvas is behind another tab. A sound file that is missing or can’t be played is reported once in the status bar. Closing a canvas, or removing a widget, forgets its alerts. Alerts keep running in edit mode.

Canvas Properties and background images

Click Properties on the canvas toolbar, or right-click the empty canvas and choose Canvas Properties….

FieldDefaultMeaning
Canvas NameCanvas 1, Canvas 2, …The name in the pane title, Canvas: …
Canvas Size1920 x 1080Width and height in pixels. The preset buttons below set 1920 × 1080, 2560 × 1440, 3840 × 2160, 1280 × 720, 1024 × 768 or 800 × 600
Background Color (hex)1E1E1ESix hex digits
Gradient fill instead of the solid coloroffA gradient from Start color to End color; Angle (°) 0 = left to right, 90 = top to bottom
Background Image PathemptyA PNG, JPG, BMP, GIF or TIFF file. Click … to browse. Empty = no picture
Image StretchUniformUniform (the whole picture, keeps its shape), Uniform to fill (fills the canvas, keeps its shape, crops), Fill (fills the canvas, stretches), None (original size, centred)
Image Opacity10 (invisible) to 1 (solid), in steps of 0.1
Grid Size (px)10Snap distance
Snap to GridonSame as Snap on the toolbar
Show Grid in Edit ModeonSame as Grid on the toolbar

The background picture is drawn over the colour or gradient, behind all widgets. Use a photo of your bench or a PCB drawing, and place the widgets on the sensors. On OK SerialFlow copies the picture into the canvas folder (canvas\images), so moving, renaming or deleting the original does not break the canvas. A picture with the same name and content is used again; another picture with the same name gets -2, -3, …. If the stored picture is missing, the canvas says Background picture not found: … in its top-left corner: choose it again in Canvas Properties.

Animation: a canvas dashboard drawn over a picture of the MDX-400 bench, with live values changing at each sensor's leader line.
A 1920 × 1080 drawing behind a 1920 × 1080 canvas fills it exactly, so a widget’s X and Y are the picture’s pixels.

Zoom and scroll

  • - and + on the canvas toolbar zoom out and in by 10 %. 1:1 goes back to 100 %.
  • Ctrl+mouse wheel zooms too. The zoom goes from 10 % to 500 %, and the toolbar shows the level.
  • Use the scroll bars to move around a canvas that is larger than the pane. The mouse wheel scrolls up and down.

Undo and redo

Undo and Redo (Ctrl+Z, Ctrl+Y) cover adding, deleting, duplicating, pasting and importing widgets, and moving (with the mouse or the arrow keys) and resizing them. One Undo takes back a whole import, canvas hints included. The canvas keeps the last 100 steps.

Changes made in Widget Settings or Properties are not undo steps.

Save, export and where files live

Save on the canvas toolbar (or Save Canvas on the right-click menu) writes the canvas to its file. The * after the canvas size disappears.

Canvas files are in the canvas folder of SerialFlow’s main folder, normally Documents\SerialFlow\canvas\, one JSON file per canvas named after its ID. SerialFlow writes the file when you create the canvas, and again each time you save. Pictures the canvas uses (the background and Image widgets) are copied into canvas\images\. A backup copy goes to %APPDATA%\SerialFlow\backup\canvas\. The canvas files are shared by every profile; a profile remembers which canvases are open and where they are docked. A profile export does not include them: use Export Canvas (.sfcanvas)….

Reopening. The canvases that were open come back when SerialFlow starts, from their saved files. So when you close SerialFlow with unsaved canvas changes, it asks Save them before closing?: Yes saves them, No drops the changes, Cancel keeps SerialFlow open.

The Import/Export ▾ menu:

CommandWhat it does
Export Selected Widgets (JSON)…Saves the selected widgets to a .sfwidgets file
Export All Widgets (JSON)…Saves all widgets to a .sfwidgets file
Import Widgets (JSON)…Adds the widgets from a .sfwidgets file
Export Canvas (.sfcanvas)…Saves the whole canvas, with every picture it uses, in one file: to share it or move it to another PC
Import Canvas (.sfcanvas)…Opens such a file as a new canvas. Its pictures go to canvas\images\
Copy as AI TextCopies the selected widgets (or all, if none is selected) to the clipboard as text
Paste AI Text…Opens a box where you paste widget text, then Import
AI Format ReferenceShows a description of the text format, with Copy to Clipboard

Widget imports always add to what is on the canvas; they never replace it.

Write a canvas as text

The whole canvas can be written as plain Key: value lines. This is the quickest way to build a large canvas, to change sizes, or to let an AI assistant design one for you.

Canvas Widgets AI Text dialog with the MDX-400 canvas text pasted in: header, canvas hints and the first widget blocks, with Copy to Clipboard, Import and Close buttons.
Paste AI Text: a canvas written as text.

Say your firmware sends temperature and a pump flag on graph A:

~{A:S:1:F32:R:Temperature:°C:0:FF8A65}
~{A:S:2:F32:R:Pump::0:69F0AE}

This text makes a gauge, an alarm banner, a pump lamp and a trend line for them:

=== SERIALFLOW CANVAS WIDGETS ===
Description: Pump test rig, graph A

--- CANVAS HINTS ---
Width: 1280
Height: 720
BackgroundColorHex: 1A1D21

--- WIDGET: ArcGauge ---
Label: Temperature
X: 20
Y: 20
Width: 220
Height: 240
RangeMin: 0
RangeMax: 120
UnitDisplay: °C
DecimalPlaces: 1
PrimaryColorHex: FF8A65
Binding: primary=A:1

--- WIDGET: AlarmBanner ---
Label: Temperature
X: 260
Y: 20
Width: 300
Height: 50
UnitDisplay: °C
DecimalPlaces: 1
Binding: primary=A:1
Threshold: 80=FFA726
Threshold: 100=FF5252

--- WIDGET: StatusLed ---
Label: Pump
X: 260
Y: 90
Width: 60
Height: 60
Binding: primary=A:2
Threshold: 1=69F0AE

--- WIDGET: Sparkline ---
Label: Temperature trend
X: 20
Y: 280
Width: 540
Height: 100
PrimaryColorHex: FF8A65
UnitDisplay: °C
SparklineBufferSize: 200
Binding: primary=A:1

=== END WIDGETS ===

The banner is grey below 80 °C, amber from 80 °C and red from 100 °C. The pump lamp is grey at 0 and green at 1.

The rules:

  • The text starts with === SERIALFLOW CANVAS WIDGETS === and ends with === END WIDGETS ===.
  • An optional Description: line can follow the first line.
  • --- CANVAS HINTS --- is optional: Width, Height, BackgroundColorHex, GridSize and SnapToGrid. They are applied when you import into an empty canvas, and the status bar says Canvas set to 1280 x 720 from the canvas hints. A canvas that already has widgets keeps its own size and colours.
  • Each widget starts with --- WIDGET: TypeKey ---. Use a type key from the widget table, spelt exactly; a misspelt key gives a plain value box.
  • Then one Key: value per line. Only Label is needed; every other key has a default.
  • Numbers take a dot as the decimal sign (0.5), whatever your Windows language.
  • Colours are six hex digits, without #.

Widget keys:

KeyDefaultMeaning
LabelemptyThe title. Empty shows the signal’s name once data arrives
X, Y0Position of the top-left corner, in pixels
Width, Height200, 100Size in pixels. Give them for every widget: the text format does not use the toolbox sizes
PrimaryColorHex00B4D8The main colour: value, line, fill or needle
BackgroundColorHex2D2D2DThe widget’s background
BorderColorHex555555The border of a Shape, and the frame of BorderStyle
BorderStyleNoneA frame around the widget: None, Thin, Medium, Thick or Rounded
Rotation0Degrees, clockwise about the widget’s centre
RangeMin, RangeMax0, 100The range of gauges, bars, rings, Dial Knob and Signal Color Map
UnitDisplayemptyThe unit text. Empty uses the signal’s unit
DecimalPlaces2Decimals of the value
FontSize24The size of the main value (see Widget Settings)
Opacity1.00 (invisible) to 1 (solid)
ZIndex0Stacking order: higher is on top
IsLockedFalseTrue locks the widget in place
SparklineBufferSize100How many recent values the chart widgets keep
Bindingnonerole=Graph:SignalID, for example primary=A:1. The graph letter is a capital. The role is x / y on an XY Plot, pitch / roll on an Attitude Indicator, angle / radius on a Polar Plot, any name (primary, secondary) elsewhere. One line per binding
Thresholdnonevalue=colour, for example 80=FFA726. One line per threshold, lowest value first. Options can follow, each after a ; (below)
ImagePath, ImageStretchempty, UniformThe picture of an Image widget, and Uniform, UniformToFill, Fill or None
ChartGrid, ChartXValues, ChartYValuesFalseThe chart widgets’ grid lines and axis values: True or False
ChartXTitle, ChartYTitleemptyThe axis titles
ChartXAxisSamplesSparkline, Step Chart, Area Chart and Multi-Signal Trend: Samples (readings) or Time (seconds)
ChartScaleAutoAuto, Fixed (RangeMin to RangeMax) or, on a Multi-Signal Trend, PerTrace (its default)
ChartXScale, ChartXMin, ChartXMaxAuto, 0, 100XY Plot: the X scale, Auto or Fixed from ChartXMin to ChartXMax
AliveTimeout2Data Alive: seconds without a new value before it shows No data
StateTextsemptyState Text and State Timeline: the text for each value, 0=Idle; 1=Running; 2=Fault
BulletTargetemptyBullet Gauge: where the target mark sits. Empty: the running average
WindowSeconds10, 60Peak Hold (10) and Duty Cycle (60): how many seconds back the widget looks
SendTextemptyControl widgets: what is sent, with {value} (Toggle Switch: when switched on)
SendTextOffemptyToggle Switch: what switching off sends
SendHexFalseTrue: the text is hex bytes (01 A0 FF)
LineEndingCRLFControl widgets: None, CR, LF or CRLF after the text
SendPortemptyControl widgets: a port slot such as port1. Empty: the port of the binding
ConfirmSendTrueControl widgets: False sends without asking
Step1Send Slider: the step

The threshold options in text: statistic=Value|Minimum|Maximum|Average (also min, max, avg), window= seconds, hold= seconds, hysteresis=, direction=Above|Below, sound= a file path and repeat= seconds. For example Threshold: 72=FF4444; statistic=Average; window=10; hold=10; repeat=30. Options left out keep their defaults.

LabelPosition places the label of a widget that shows it as a caption: Top (default), Bottom, Left, Right, Inside or Hidden (see Widget Settings).

Write UnitDisplay:, not Unit:. Keys the reader does not know are skipped without a warning. Importing a canvas with Control widgets never sends anything.

Import it. Open a canvas, click Edit, and choose Import/Export ▾ → Paste AI Text…. If the clipboard already holds text that starts with === SERIALFLOW CANVAS WIDGETS ===, the box is filled in for you. Click Import. The status bar confirms Imported 4 widget(s). If nothing can be read, it says Could not parse AI text. Check the format.

Let an AI assistant write it. Choose Import/Export ▾ → AI Format Reference and click Copy to Clipboard. Give your assistant that description, your firmware’s ~{…:S:…} lines and a sketch of the screen in words: “an arc gauge for speed, value cards for pack voltage and charge, an alarm banner on the MOSFET, amber from 72 and red from 78”. Paste the answer into Paste AI Text…. Check that each widget’s thresholds are in rising order.

Canvas keys

These keys work while the canvas has keyboard focus: click the canvas or one of its widgets first.

KeyActionMode
DeleteDelete the selected widgetedit
Ctrl+DDuplicate the selected widgetedit
Ctrl+CCopy the selected widgets (inside the canvas only, not to the Windows clipboard)edit
Ctrl+VPaste the copied widgets, 20 px down and to the rightedit
Ctrl+ASelect all widgetsedit
EscClear the selectionedit
Arrow keysMove the selected widget by 1 pxedit
Shift+arrow keysMove it by 10 pxedit
Ctrl+Z, Ctrl+YUndo, redoboth
Ctrl+SSave the canvasboth
F5Switch edit and run modeboth
Ctrl+mouse wheelZoomboth

While the canvas has focus, these keys win over the app shortcuts on the same keys: F5 switches the mode instead of Toggle Connection, Ctrl+S saves the canvas instead of the profile, and Ctrl+A, Ctrl+C and Esc act on the widgets instead of the terminal. Keys the canvas does not use still reach the app. With the focus elsewhere, the app shortcuts apply.

Keys you type into a Number Entry box stay in the box: Ctrl+Z undoes the typing, Delete deletes a character. A Send Slider you clicked keeps the arrow keys, Page Up / Page Down (ten steps), Home and End in run mode.

Grid Signal Dashboard

The grid Signal Dashboard is for when you want the numbers without designing anything. Each dashboard is a pane named Dashboard D1 to Dashboard D9, with 1 to 6 columns of tiles.

Grid of tiles with arc gauges, numbers and small trend lines.
A grid Signal Dashboard.

Create one:

  1. Choose ☰ → Tools → Panel Configuration…. The Panel Configuration Manager opens.
  2. Click + Dashboard. A preset D1 (or the next free number) appears in the list.
  3. Under Dashboard Layout, pick the number of Columns.
  4. Click + Add Widget once per tile, and fill in each row (see below).
  5. Click Create Now. The dashboard pane opens.
  6. Click OK to keep the preset in your profile. OK also updates a dashboard that is already open.

To have the dashboard ready every time the profile loads, tick Auto-Create on Load under Behavior (with Enabled ticked, and Enable Panel Configuration on). Without it, the dashboard does not come back after a restart until you click Create Now again. Visible on Creation decides whether the pane is shown when it is created.

Pick the signals. Each tile row has these fields:

FieldMeaning
Graph:The graph letter, A to Z
Sig:The signal ID from the firmware’s ~{A:S:id:…} line
Type:The tile type (table below)
XRemoves the tile
Label:The title. New rows get Widget 1, Widget 2, …; clear it to show the signal’s own name
Unit:The unit. Empty uses the signal’s unit
Color:Six hex digits, for the value, bar or line
Size:Font size of the value on a NumericDisplay
Min:, Max:The range of a ProgressBar or RadialGauge
Dec:Decimals
Value:Last, Min, Max or Average: which value the tile shows
Min/MaxAdds a Min / Max row under a NumericDisplay
Span: … cols × … rowsHow many columns and rows the tile covers. A span wider than the grid is cut to the number of columns
+ ThresholdAdds a threshold rule to the tile, with the same fields as on a canvas: threshold, colour, condition, hold-off, hysteresis and sound (see Thresholds). X on a rule removes it

The 8 tile types, as the Type: list shows them:

TypeShows
NumericDisplayThe value in large digits with its unit, and optionally a Min / Max row
ProgressBarA horizontal bar across Min to Max, with the value on it
RadialGaugeAn arc gauge across Min to Max, with the value in the middle
TextLabelOne compact line: Label: value unit
ColorIndicatorA bar with the value, coloured by thresholds
SparklineA small trend line of the last 50 values, with the value
LedIndicatorA lamp, the label and the value; the lamp is coloured by thresholds
StatisticsPanelLast, Min, Max and Avg in four rows

Presets. Each dashboard is a preset in the Panel Configuration Manager, stored in your profile. Dup copies the selected preset to the next free ID, - removes it. You can have up to nine (D1 to D9).

Thresholds work as on a canvas: rules are checked from top to bottom and the last active one gives the colour, so list them lowest first. Every tile type takes the colour; ColorIndicator and LedIndicator light up in it and are grey while no rule is active. Here the compared Value is the one the tile shows (its Value: choice). OK saves the rules and updates open dashboards.

Spans. Tiles fill the grid in reading order. Each tile goes to the first free place at or after the one before it; a tile too wide for the rest of a row starts the next row, and the gap stays empty.

On the dashboard pane: Columns: changes the number of columns for this session, and Reset Stats starts Min, Max and Avg again. Reset Stats resets them for every signal, so canvases and other dashboards that show Min, Max or Avg start again too. + Widget adds a fixed tile for graph A, signal 1 that is not saved; add tiles in the Panel Configuration Manager instead. Mute and Acknowledge (n) act on the alert sounds of every dashboard and canvas (see Alarm sounds). Pop Out and Full Screen open the dashboard in its own window.

Tools for the wire

On the product page: Wire →

These tools help when the link itself is the problem: lines that arrive broken, and checksums you want to work out by hand.

RX Error Collector

The RX Error Collector lists every graph line that SerialFlow rejected, and says why. It runs from the moment SerialFlow starts, whether its window is open or not, so earlier errors are already there when you open it. It checks graph command lines, the ones that start with ~{; plain text and status-window lines are not checked.

Table of rejected frames with categories and reasons.
The RX Error Collector.

Open it with ☰ → Tools → RX Error Collector…. The window stays on top of other windows.

Watch the status bar. Err: counts the rejected graph lines. It is grey at 0 and red above 0.

At the top, a summary bar counts the errors since SerialFlow started (or since you last clicked Clear): Total, CRC, Structure, Command, Format, Other, and Displayed, the number of rows in the list. A rough guide: mostly CRC means bits change on the wire; mostly Structure means lines are cut short.

ColumnContents
#Running number of the error
TimestampLocal time, HH:mm:ss.fff
GraphThe graph letter, or ? if the letter itself is broken
CategoryCRC, Structure, Command, Format or Other, each in its own colour
Error ReasonWhat was wrong (table below)
Raw StringThe command as it arrived, ~{…}, with its *XX CRC if it had one

The reasons and their categories:

Error ReasonCategoryWhat happened
CRC mismatch (expected 0xB4, got 0xC7)CRCThe CRC-8 after * does not match the line. Expected is the CRC that came with the line, got is the CRC of what arrived. The line is dropped
Missing closing braceStructureThe line has no }: it was cut short
Content too short (2 chars, need >= 3)StructureFewer than three characters between the braces
Missing colon separator at position 1StructureThe character after the graph letter is not :
Invalid graph ID 'b' (not A-Z)StructureThe first character is not a capital letter
Unknown command code 'p'CommandThe command letter is not one SerialFlow knows
Format error: no colon after command codeFormatSomething other than : follows the command letter

Other is for any reason not in this list; the current checks do not use it.

The collector checks the frame of each line, not the numbers in it. A line without a CRC that has a wrong digit in a value still reaches the graph. Protect important lines with a CRC (see the graph chapter).

The buttons:

  • Clear empties the list and sets all counters to 0.
  • Copy All copies the list to the clipboard as tab-separated text, with a header row, ready for a spreadsheet or a bug report. There is no file export; paste the text where you need it.
  • Auto-Scroll keeps the newest row in view.

When you open the window it shows the newest 200 rejected lines; the counters keep counting beyond that. Statistics → RX HEALTH → CRC Rejects counts the CRC failures of all ports too.

CRC Calculator

The CRC Calculator works out a checksum or hash while you type. Use it to check a CRC your firmware sends, or to find the CRC-8 to put after a graph line.

Three checksum calculator panels: the algorithm list, a CRC-8 result and a SHA-256 result.
The CRC Calculator: algorithms, a CRC-8 and a SHA-256.

Open it with ☰ → View → CRC Calculator, or the CRC calculator panel button on the toolbar. It is a pane, so you can dock it beside the log.

  1. Pick an algorithm in Algorithm:. The default is CRC-32.
  2. Type or paste into Input Data:.
  3. Read the result in Hex:, Dec: and Bin:. It updates with every key you press.

Text or hex input. Without Hex Input, SerialFlow takes the bytes of the text as you typed it (UTF-8), with no line ending added. With Hex Input pressed, type the bytes as hex pairs: 01 03 00 00 00 0A. Spaces and dashes are ignored, and a leading 0x is allowed. An odd number of digits, or a character that is not hex, shows Invalid hex input.

Results. Hex: shows the value most significant byte first: CRC-32 of 123456789 is 0xCBF43926. Dec: and Bin: show values up to 4 bytes; for MD5 and the SHA hashes they say (too large).

The 12 algorithms. The check value is the result for the text 123456789; use it to see if your firmware matches.

AlgorithmDetailsCheck value
CRC-8Polynomial 0x07, start 0x00, no reflection. The same CRC-8 as SerialFlow’s graph lines0xF4
CRC-16-CCITTPolynomial 0x1021, start 0xFFFF, no reflection (CRC-16/CCITT-FALSE)0x29B1
CRC-16-ModbusPolynomial 0x8005 reflected, start 0xFFFF0x4B37
CRC-16-XMODEMPolynomial 0x1021, start 0x00000x31C3
CRC-32The common CRC-32 of zlib, ZIP and Ethernet: polynomial 0x04C11DB7 reflected, start and final XOR 0xFFFFFFFF0xCBF43926
LRCThe two’s complement of the byte sum (as in Modbus ASCII)0x23
XORAll bytes XOR-ed together0x31
Sum8Sum of the bytes, lowest 8 bits0xDD
Sum16Sum of the bytes, lowest 16 bits0x01DD
MD5128-bit hash0x25F9E794…
SHA-1160-bit hash0xF7C3BC1D…
SHA-256256-bit hash0x15E2B0D3…

Check a graph line. Pick CRC-8 and type the line from { to }, both braces included. For {A:1:3000:3004.9} the result is 0x7E, so the firmware sends ~{A:1:3000:3004.9}*7E.

Modbus tip. Modbus RTU sends its CRC low byte first. The calculator shows 0x4B37; on the wire that is 37 4B.

Doc & Code Gen

☰ → Tools → Doc & Code Gen (or the Documentation & code gen toolbar button) opens the Documentation & Code Generator window: a built-in reference for what your firmware can print, with a C example for each command.

TabContents
Quick ReferenceEvery command in a searchable table (Search:, Category:). Select one to see its syntax, a C example and notes
ANSI ColorsThe 16 standard colours, the 256-colour table and a TrueColor mixer with R:, G:, B:. Pick a colour to get its escape code and C string, then Copy
Custom CommandsThe screen, line and cursor commands, such as WRITE_LINE and GOTO, each with a printf example (see Other escape sequences)
Multi-WindowThe ten text windows (0 is the main terminal, 1 to 9 are extra windows) and the short prefixed command forms, such as ~WrLi

Other tools in the ☰ menu

The other items in the Tools section, and the tool panes in View, are described in their own chapters:

ItemWhat it is forChapter
☰ → Tools → Add Window, Clear TerminalExtra text windows; clear the logThe terminal
☰ → Tools → Send File…Send a file over the portSend File
☰ → Tools → Port Details…Adapters, drivers and COM portsPort Info and Port Details
☰ → Tools → Signal Manager…Units, conditioning and computed signalsSignals and units
☰ → Tools → Graph Styles…Your own graph stylesGraph styles
☰ → Tools → Panel Configuration…Graph, window and dashboard presetsGrid Signal Dashboard
☰ → Tools → New Canvas Dashboard, Open Canvas Dashboard…A new HMI canvas, or a saved oneDashboards
☰ → Tools → Reset Layout, Reset All to DefaultsPut panes back; reset the profileProfiles
☰ → View → Search Panel, Hex View, Keyword Highlighter, Bookmarks, StatisticsLook into the logFind, keywords and bookmarks
☰ → View → Data Logger, Data CollectorWrite data to diskLogging to a file, Recording
☰ → View → Saved CapturesThe files the firmware saved with device commandsThe Saved Captures pane
☰ → View → Graph Bookmarks, Graph MarkersWork with graphsWorking with graphs
☰ → View → Signal LinesThe port’s modem lines: CTS, DSR, DCD, RI, and DTR / RTS to setDTR, RTS and modem lines
☰ → View → Macros, Auto-Reply, Quick Send Buttons, Quick Send Bar, Transmit PanelSend and automateSending data
☰ → View → Port InfoThe open port at a glancePort Info and Port Details
☰ → Test → Load Test File, Delayed PlaybackReplay a recorded log without hardwareTry it without hardware

Make it yours

On the product page: Customise →

Colours, toolbar, menu, keys and every setting live in a profile. Change them, and the active profile keeps the changes. Make a second profile, and you can switch your whole setup in one step.

Colour profiles

A colour profile sets the colours of the terminal, the search highlights, the panels, the dock tabs and the status colours. SerialFlow has 26 built-in colour profiles. The default is VS Dark.

Six SerialFlow windows showing the same log in different colour themes.
Six of the 26 colour profiles.
GroupColour profiles
NeutralDark, VS Dark, Carbon, High Contrast Dark
LightLight, VS Light, Solarized Light
Editor classicsSolarized Dark, Monokai, Dracula, One Dark, Nord, Gruvbox Dark
Modern darkTokyo Night, Catppuccin Mocha, GitHub Dark, GitHub Dimmed, Night Owl, Material Ocean, Palenight, Ayu Mirage, Cobalt2, Synthwave 84
TerminalPowerShell, Green on Black, Amber on Black

Pick one. Open ☰ → Settings → Terminal & Data → Color Profile and choose a name in Profile:. The Live Preview on the right, a copy of the main window at real size, repaints at once. Click Apply or OK to use it.

Edit the colours. Click a colour box to open a palette, or type a hex value. The colours are in five groups:

GroupColours
Terminal ColorsForeground:, Background:, Selection:
Search ColorsMatch FG:, Match BG: (every match), Active FG:, Active BG: (the current match)
Application UIText:, Accent:, Panel Surface:, Panel Border:
Docking TabsActive Tab:, Inactive Tab:
Status ColorsWarning:, Error:, Success:

Small samples under each group, and the Live Preview, show the result before you apply it.

ButtonWhat it does
Save As…Saves the colours shown as a new colour profile with your own name. Built-in names cannot be used
DeleteDeletes one of your own colour profiles (not a built-in one) and goes back to VS Dark
ResetBrings back the shipped colours of a built-in profile you edited

If you edit a built-in profile and click OK, SerialFlow keeps your colours under the same name. Reset undoes that. The ? buttons on the page explain each part.

Graphs follow the colour profile. Each built-in colour profile has a graph style with the same name and matching colours. A graph whose style list (in the graph’s toolbar) is on (Global Default) paints itself from the active colour profile, including colours you edited. So one change retints the log and every graph. To keep one graph in another style, pick that style in its list. To make your own graph styles, use ☰ → Tools → Graph Styles… (see the graph chapter).

Colours that the firmware sends with ANSI codes stay as the device sent them. Very light or very dark device colours can be hard to read on some profiles.

The toolbar

Open ☰ → Settings → Interface → Toolbar. Every toolbar button, list and separator is a row in the list.

ControlWhat it does
Preset:Picks a ready-made toolbar, or User (my layout) (table below)
Copy to User LayoutMakes the preset shown your own layout, to build on
Copy from Profile…Takes the toolbar of another saved profile
PreviewShows the toolbar as it will look
Toolbar StyleBackground: and Icon tint: for the whole bar, each with Use theme
Visible columnUntick to hide a button. The tick in the header shows or hides all
Background, Icon Color columnsColours for one button
Move Up, Move DownMove the selected row (Alt+Up, Alt+Down)
Reset SelectedClears the visibility and colour changes on the selected row
Show All, Hide AllShow or hide every button at once
Import…, Export…Load or save the layout as a text file (.txt or .toolbar)
Copy Format Reference, View…Copy, or first read, the description of that text format, for example for an AI assistant
Reset to DefaultsEvery button visible, no colours

The Menu (hamburger) button cannot be hidden or moved, so you can always reach the ☰ menu.

Presets. Trying a preset does not lose your own layout: it stays saved as User (my layout), and the page says so while a preset is active.

PresetShows
FullEverything except the test buttons
Simple TerminalPort, baud, connect, refresh, Transmit panel, Quick Send bar, clear, auto scroll, Settings
Minimal☰, port, baud and connect
Graphing & DashboardsThe connection buttons, graph bookmarks and markers, Data Collector, Quick Send bar, clear, auto scroll, Signal Manager, new canvas, profile list, Settings
Logging & AnalysisThe connection buttons, Search, Hex, Statistics, Data Logger, Keyword Highlighter, Bookmarks, Data Collector, Saved Captures, Port Info, clear, auto scroll, raw display, profile list, Settings
Developer / TestEverything, including the test-file buttons

Click OK or Apply to use the new toolbar.

The ☰ menu

The ☰ menu is one list in six sections: Profile, Connection, View, Tools, Test and Settings. In this manual, ☰ → Tools → RX Error Collector… means the item RX Error Collector… under the Tools heading.

Open ☰ → Settings → Interface → Hamburger Menu to change it. The page works like the toolbar page:

ControlWhat it does
Preset:, Copy to User Layout, Copy from Profile…As on the toolbar page; the presets are listed below
PreviewThe menu as it will look, one column per section
Menu StyleSeven colours for the whole menu: Text:, Background:, Highlight Bg:, Checkmark:, Separator:, Section Header:, Header Bg:, each with Use theme
Section / Item listOne row per section (▣) and, under it, one row per item
Visible columnHide a whole section, or one item
Background, Text columnsColours for one section header or one item
Move Up, Move DownReorder sections, or items within their own section (Alt+Up, Alt+Down)
Reset SelectedClears the visibility, colour and name changes on the selected row
Show All, Hide AllShow or hide every section and item
Import…, Export…Load or save the menu layout as a text file (.txt or .hamburger)
Copy Format Reference, View…The text format, for hand-editing or an AI assistant
Reset to DefaultsThe shipped menu

Rename a section by typing a new name in its row; the shipped name shows there until you do. Items cannot be renamed. Items cannot move to another section.

The Settings section and its Settings item cannot be hidden or moved, so you can always get back to this page.

Presets:

PresetShows
FullEvery section except Test
Simple TerminalConnect, Disconnect, Refresh Ports; Transmit Panel, Search Panel, Quick Send Bar, Auto Scroll, Raw Display; Settings
MinimalConnect, Disconnect and Settings
Graphing & DashboardsProfile and Connection; Graph Bookmarks, Graph Markers, Data Collector, Saved Captures, Signal Lines, Auto Scroll; Signal Manager…, Graph Styles…, New Canvas Dashboard, Open Canvas Dashboard…, Panel Configuration…; Settings
Logging & AnalysisProfile and Connection; Search Panel, Hex View, Statistics, Data Logger, Keyword Highlighter, Bookmarks, Data Collector, Saved Captures, Port Info, Auto Scroll, Raw Display; Clear Terminal, Port Details…, Send File…, RX Error Collector…; Settings
Developer / TestEverything, including Test with Load Test File and Delayed Playback

The layout as text. An exported menu layout is plain text that starts with format: serialflow-hamburger-1. Each section is a [section:id] block with an optional name = "…" line (to rename it), visible or hidden, and an [items] list with one item ID per line. Copy Format Reference gives the full format with every ID.

Keyboard shortcuts

SerialFlow has 16 app shortcuts. You can change every one of them.

Keyboard shortcuts table.
Settings → Shortcuts.
CategoryActionDefault
SearchOpen SearchCtrl+F
SearchFind NextF3
SearchFind PreviousShift+F3
SearchClose SearchEsc
TerminalCopy SelectionCtrl+C
TerminalSelect AllCtrl+A
TerminalToggle BookmarkCtrl+B
TerminalClear TerminalCtrl+L
NavigationToggle Auto-ScrollCtrl+End
NavigationJump to EndCtrl+Shift+End
ApplicationOpen SettingsCtrl+,
ApplicationToggle ConnectionF5
ApplicationToggle Raw DisplayCtrl+R
ApplicationKeyboard Shortcut HelpF1
ApplicationToggle Always on TopCtrl+T
ApplicationSave ProfileCtrl+S

Change a shortcut. Open ☰ → Settings → General → Shortcuts, select a row and press the new key combination. If the keys belong to another action, the page names that action. The new key is set anyway, so change the other action too. Reset to Defaults restores all 16. Click OK to keep the changes.

See them all. Press F1 for the Keyboard Shortcuts window, with a filter box. Esc or F1 closes it.

While you type in a text box, only the search keys, F1 and Toggle Always on Top work as shortcuts; the others type as usual.

Graph keys are in a separate table. Click a graph and press Ctrl+G for Graph View Settings, then open the Keyboard tab. Those keys work only while a graph has keyboard focus, and there they come first: they never clash with the 16 app shortcuts. The mouse and wheel bindings are on the same window (see the graph chapter).

Canvas keys are fixed (see Canvas keys). While a canvas has keyboard focus, its keys come first, like a graph’s.

Macro shortcuts are set per macro (see Macros). They can’t take a key combination that one of the 16 app shortcuts uses.

Settings

Open Settings with ☰ → Settings → Settings, the Settings button on the toolbar, or Ctrl+,. In this manual, ☰ → Settings → General → Shortcuts means the Shortcuts page in the General group of the dialog.

The pages are on the left, in six groups. The pill at the bottom left names the active profile: every change goes into that profile. OK applies the changes and closes, Apply applies them and keeps the dialog open, Cancel throws them away. The ? buttons open help for that part of the page.

GroupPageWhat it holds
ProfilesProfilesThe profile list and all profile actions (see Profiles)
GeneralGeneralMain Folder (Change…, Open) and its size; Backup & Recovery: the backup folder, the last backup, Restore from Backup
GeneralBehaviorWindow Behavior: Always on Top, Confirm on Exit (asks Exit SerialFlow? and says how many ports will close), Show Line Numbers, Color Panel Chrome by Port, Raw Display Mode, Local Echo. Auto-Connect: on Startup, on Profile Load. Recovery: Auto-reconnect on disconnect, Auto-detect USB port changes. Echo Colors. Quick Send Bar: Line Ending and what Enter, Ctrl+Enter and Shift+Enter do
GeneralShortcutsThe 16 app shortcuts
ConnectionPortPort, Refresh, Port Details…, Baud Rate and Max:, Data Bits, Parity, Stop Bits, Handshake, DTR Enable, RTS Enable. FTDI Latency Timer. Timeouts & Reconnection: Read, Write, Non-blocking reads, Max Retries, Retry Delay
ConnectionCommunicationTX Line Ending, RX Line Ending, Encoding, Auto Scroll
Terminal & DataTerminalFont Family, Font Size, Max Lines (with a memory estimate), Show Timestamps, Timestamp Fmt, ANSI Color Enabled
Terminal & DataColor ProfileThe colour profile and its colours, with a Live Preview (see Colour profiles)
Terminal & DataData LoggerEnable Long-Term Logging Mode with Retention Mode, Retention (min) and Memory Limit; Auto-log all data to disk with Log Directory, Max File Size and Max Log Files
Terminal & DataData CollectionRecording formats (SQLite, CSV with delimiter, JSON Lines), output folder, content, automatic start and stop, queue and batch sizes
Terminal & DataDevice CapturesWhether the firmware may save captures and start or stop logging, and the Capture Folder (see Device commands)
InterfaceToolbarThe toolbar layout (see The toolbar)
InterfaceHamburger MenuThe ☰ menu layout (see The ☰ menu)
SystemEvent LoggingEnable event logging, log folder, log level per area, file rotation, extra details, an expression filter
SystemDiagnosticsError Display: (Minimal, Normal, Verbose), Port Dropdown: (Minimal, Normal, Extensive), Show Port Info panel on startup
SystemPerformanceUI Update Throttling: Update Mode (Unlimited, RateLimited, IterationLimited), Rate (ms), Every N iterations
SystemAboutVersion; links to Report a problem, Licence, Third-party notices, Privacy and Product page; Check for updates on startup; Send anonymous usage counts; Use software rendering (draws without the graphics card, for a PC where SerialFlow’s window stays blank; from the next start); Update Folder (a developer option; leave it empty)

The other chapters explain the pages for connecting, the terminal, logging and recording.

Profile or PC? Almost everything belongs to the active profile. A few things belong to the PC, so switching profiles does not change them:

SettingStored inBelongs to
Check for updates on startup, Send anonymous usage counts, Use software rendering (About)app-config.json in the main folderThis PC
Which profile is activeapp-config.json in the main folderThis PC
The Main Folder location (General)%APPDATA%\SerialFlow\bootstrap.jsonThis Windows user
Canvas dashboardscanvas\ in the main folderAll profiles; not in a profile export. Which canvases are open belongs to the profile’s layout
Every other setting, the toolbar, the ☰ menu, colour and graph styles, shortcuts, presets, macros and rules, window size and layoutprofiles\<name>\ in the main folderThe profile

The main folder is Documents\SerialFlow unless you moved it on the General page.

Profiles

A profile is a complete copy of every setting, plus the window layout: which panes are open and where. Make one profile per board or bench, and switch between them in one step.

Settings dialog on the Profiles page: a profile list, and buttons for New, Save As New, Import, Duplicate, Rename and Export.
Settings → Profiles.

What a profile holds: all settings pages except the PC choices above; the toolbar and ☰ menu; colour profiles, including your own and your edits; graph styles and graph view settings; the 16 shortcuts; graph, window and dashboard presets; signal units and conditioning; macros, auto-reply rules, Quick Send buttons, keyword highlights and bookmarks; the window size and position; and the dock layout.

Where it lives: Documents\SerialFlow\profiles\<name>\, as profile.json and layout.xml. The folder name is the profile name. SerialFlow keeps backup copies in %APPDATA%\SerialFlow\backup.

Saving. OK and Apply in Settings, ☰ → Profile → Save Profile, Ctrl+S and closing SerialFlow all save into the active profile. Make a new profile before you experiment.

The profile actions:

ActionWhereWhat happens
SwitchThe profile list on the toolbar; ☰ → Profile → Switch Profile ▶; Settings → Profiles → Switch to This ProfileSerialFlow saves the current profile, then loads the other one. Settings asks first, and drops changes you have not applied
NewSettings → Profiles → New Profile…Makes a profile with factory settings and switches to it, after asking
Save As New☰ → Profile → Save As New Profile…; Settings → Profiles → Save As New Profile…Saves the current setup, including unapplied changes in the Settings dialog, under a new name, and makes it active. The profile you started from stays as it was
DuplicateSettings → Profiles → Duplicate…Copies the selected profile under a new name, without switching
RenameSettings → Profiles → Rename…Renames the selected profile
DeleteSettings → Profiles → DeleteDeletes the selected profile, after asking. The active profile cannot be deleted
DescribeSettings → Profiles → Description, Save DescriptionA note shown with the profile
Export☰ → Profile → Export Profile… (the active profile); Settings → Profiles → Export… (the selected one)Writes one .sfprofile file: every setting plus the window layout
Import☰ → Profile → Import Profile…Adds the profile from a .sfprofile file and switches to it
ImportSettings → Profiles → Import…Adds the profile without switching. Use Switch to This Profile when you want it
Manage☰ → Profile → Manage Profiles…Opens Settings on the Profiles page

If an imported profile has a name you already use, SerialFlow asks for a new one. Import accepts an exported .sfprofile file, or a profile.json copied from a profile folder.

Share a setup. Export the profile and send the .sfprofile file. Canvas dashboards are not in it: export each with Import/Export ▾ → Export Canvas (.sfcanvas)… (see Save, export and files).

Reset.

CommandWhat it resets
☰ → Tools → Reset Layout (or the Reset layout toolbar button)Only the pane layout
Settings → Profiles → Reset Active Profile to Defaults…Every setting of the active profile back to factory values, and the pane layout. It asks first. Other profiles are not touched
☰ → Tools → Reset All to DefaultsThe same as Reset Active Profile to Defaults…. It asks first too

Both resets keep the window size and position, the canvas list and the event logging settings. The active profile stays active.

Troubleshooting and known limits in beta 2

Common problems

Windows says “Windows protected your PC”. The pre-release installer is not code-signed yet. Click More info, then Run anyway. Only download it from the product page or from github.com/Lizerd/SerialFlow-Releases.

Windows says “Smart App Control blocked an app that may be unsafe”. This pre-release is not code-signed, and Smart App Control offers no way past that. Read Install before you turn Smart App Control off: it affects every program on the PC and often cannot be turned on again. The safe choice is to wait for a signed version.

SerialFlow’s window stays blank or white. On some PCs the graphics driver draws nothing in the window. Start SerialFlow once with software rendering: add --software after the program in a shortcut’s Target, or set the environment variable SERIALFLOW_SOFTWARE_RENDERING=1. If that helps, tick Settings → About → Use software rendering: from the next start, SerialFlow always draws that way on this PC.

My port is not in the list.

  • SerialFlow lists the ports Windows has. If the device is not under Ports (COM & LPT) in Windows Device Manager, install its driver (CH340, CP210x, FTDI, …) or try another cable; some cables carry power only.
  • Press Refresh Ports. Port Details (☰ → Tools → Port Details…) shows everything Windows reports.
  • With an empty list, Connect does nothing.

“Connection failed: COM5 is in use by another program”. Another program has the port open: another terminal, an IDE’s serial monitor, or a second copy of SerialFlow. Close it and press Connect again. For the full error text in a dialog, set Settings → Diagnostics → Error Display to Verbose.

“Connection failed: COM5 does not exist or was unplugged”. The device was unplugged, or Windows gave it a new COM number. Press Refresh Ports and pick it again. A device with a USB serial number is followed to its new COM number (see Follow a device by its serial number).

“Connection failed: Invalid port configuration”. The data bits and stop bits don’t go together (Port settings).

The text is garbled.

  • The baud rate is the usual cause: it must match the device exactly. Then check Data Bits, Parity and Stop Bits.
  • Wrong accented letters or symbols (° for °) point to Settings → Communication → Encoding.
  • To see the bytes as they arrive, open Hex View, or turn on Raw Display (Ctrl+R).

All lines run together. Your device ends lines with CR only. Set Settings → Communication → RX Line Ending to CR. With the default, Auto, a lone CR returns to the start of the line, as on a real terminal, so a progress bar redraws in place. LF ignores CR altogether, as beta 1 did.

Graph lines show up as text in the log, like ~{A:1:23.5:67.2}.

  • Raw Display is on: it switches all commands off. Press Ctrl+R.
  • The line holds more than one command: put one ~{…} on each line.
  • Text came before the ~ on the same line. A command must start its line. After a pause of 100 ms or more, a command may follow text that is already on the line, such as a prompt.
  • If Err: in the status bar is above 0, ☰ → Tools → RX Error Collector… lists the rejected lines with the reason.

“RX data dropped by driver backpressure (… bytes) — see Statistics panel”. The PC did not keep up: each port has a receive queue of 8 MiB, and it stayed full for a second, so data was thrown away. Statistics → RX HEALTH → Dropped Chunks and Dropped Bytes count it. The message stays until the next one. Please report it, with your baud rate and what was open.

“RX processing error (… total) — some received data may not have been rendered”. SerialFlow hit an error while handling received data, and some of it may be missing from the screen. Please report it, with the event log (Report a problem).

The device keeps reconnecting, or gives up. See Unplug, reconnect and sleep. Raise Max Retries in Settings → Port (0 = no limit), or disconnect and connect by hand.

The FTDI latency setting makes no difference. SerialFlow needs administrator rights to change it (FTDI latency timer). Without them, the status bar shows a warning after Connect instead of the new latency.

RX: 0 B while a demo file plays. RX counts the bytes that came in over a port, and a file is not a port. Statistics → Parsed shows the bytes per second SerialFlow reads from every source, test files and playback included.

The toolbar is cut off. Pick a shorter preset in Settings → Toolbar → Preset (The toolbar).

A pane has gone, or the layout is a mess. Use the pane’s toolbar button or ☰ → View item, or ☰ → Tools → Reset Layout.

My settings look gone.

  • Check the profile list on the toolbar: you may be in another profile.
  • Settings → General → Restore from Backup brings back the newest backup (Where SerialFlow keeps its files).
  • Don’t run two copies of SerialFlow at once. Both use the same profile, and each saves its own state when it closes, so the copy closed last wins. To use two ports, use Add Port.

No update is offered. Settings → About → Check for updates on startup must be ticked, and the PC must be online at start-up. SerialFlow checks only when it starts.

Known limits in beta 2

SerialFlow 0.9.0 beta 2 has one known limit, and it is by design:

AreaWhat you may notice
Graph commandsOne command per line: only the first ~{…} on a line is executed, and a ~{…} after other text on the same line is shown as text (by design)

Report a problem

Settings → About → Report a problem opens the issue list on GitHub; a free GitHub account is enough. Please include:

  • the SerialFlow version (Settings → About, or the right end of the status bar)
  • your Windows version
  • your serial adapter: Port Details → Port Detail → Copy All copies its details
  • a few lines of the serial output that cause the problem
  • if it helps, SerialFlow’s event log: Settings → Event Logging → Open shows the folder (%LocalAppData%\SerialFlow\logs)

Command cheat sheet

Every graph command, with its fields and one example. G is the graph letter, A to Z. Any line can end with an optional *XX CRC-8.

CommandFieldsWhat it doesExample
Iname:buffer:mode:xtype:xdisplay[:xlabel:xunit:xprefix]Create a graph, or start it over~{A:I:Sensors:500:S:T:R:Sample::0}
Sid:type:format:name:unit:prefix[:colour:visible]Add or update signal 1–32~{A:S:1:F32:R:Temperature:°C:0:FF6644}
1v1:v2:…Data, X = next value of the auto-X counter~{A:1:23.5:67.2}
0x:v1:v2:…Data with its own X~{B:0:1.5:3.31}
F(none)Frame mode: show the staged frame, restart auto-X~{C:F}
C[id]Clear all data, events and notes; with an id, only that signal’s data~{A:C} · ~{A:C:2}
P(none)Pause: drop data until R~{A:P}
R(none)Resume after P~{A:R}
X(none)Close the graph and delete its data. Only the bare X does this~{A:X}
XR:min:maxFix the X range, in every mode~{C:X:R:-1.2:1.2}
XAAutomatic X again~{C:X:A}
XL:label[:unit]X axis label~{B:X:L:Time:min}
XE:1/0Equal axes (1:1) on or off~{C:X:E:1}
Vid:0/1Hide or show a signal (0 = all)~{A:V:3:0}
YR:min:maxFix the Y range~{A:Y:R:-10:100}
YAAuto-scale Y again~{A:Y:A}
YL:label[:unit]Y axis label~{A:Y:L:Voltage:mV}
Lvisible[:position:size:alpha]Legend on or off, position, size, opacity~{A:L:1:TR:12:200}
Hid:y[:colour:style:label]Horizontal limit line; id alone removes it, 0 removes all~{A:H:1:30:FF4444:D:High temp}
Mid:x[:colour:style:label]Vertical marker line (X not scaled); removal as H~{A:M:1:250:FFFFFF:S:Calibration}
Eid:x[:label:colour:style]Event marker; removal as H~{A:E:1:500:Motor start:00FF00:S}
Tid:x:y:text[:colour:size:rotation]Note on the plot; removal as H~{A:T:1:100:50:Peak:FF0000:14:0}
Bx:label[:comment:colour]Bookmark, listed in Graph Bookmarks; a bare B removes them all~{A:B:100:Peak:Max voltage:FF0000} · ~{A:B}
W[label[:P/C/B]]Save the graph’s data: .sfplot, CSV or both. Needs device commands on~{A:W:spike}

Styles for H, M and E: S solid, D dashed (default), T dotted, A dash-dot. Colours are six hex digits, RRGGBB. SerialFlow 0.9.0 beta 1 reads every X line as “close the graph”, also X with a sub-command.

Packed binary frames carry data only (like 1 and 0); see Packed binary mode.

Device commands (see Device commands): they must start their line, and run only when Settings → Device Captures allows them.

CommandWhat it doesExample
~SvLog[W][:label]Save the main terminal’s text, or status window W (1 to 9)~SvLog:boot · ~SvLog2
~LogOn[:label], ~LogOffStart and stop the Data Logger, on a file in the capture folder~LogOn:run7
~RecOn[:name], ~RecOffStart and stop a Data Collector run~RecOn:soak