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
| Windows | Windows 11, 64-bit (x64). Windows 10 (64-bit) should work, but has not been tested yet |
| .NET | Nothing to install. The .NET 8 runtime is built into SerialFlow |
| Download | SerialFlow-win-Setup.exe, about 79 MB |
| Administrator rights | Not needed to install or run. Only the optional FTDI latency-timer setting needs them (FTDI latency timer) |
| Serial hardware | Anything 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 |
| Screen | The window opens at 800 × 600 pixels and can shrink to 400 × 500 |
| Price | Free to use, for personal and commercial work |
Install
Download
SerialFlow-win-Setup.exefrom the product page or from github.com/Lizerd/SerialFlow-Releases. Don’t download it from anywhere else.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.exein 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.
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:
- 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. - 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).
- 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:
- Start it once with
--software: press Win+R and run"%LocalAppData%\SerialFlow\current\SerialFlow.App.exe" --software. - 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
| Folder | What 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%\SerialFlow | bootstrap.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%\SerialFlow | The 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 active | Every port and its settings (baud, data bits, FTDI latency, names, colours) |
| Check for updates on startup | Terminal, colours, toolbar, ☰ menu, shortcuts |
| Send anonymous usage counts, and the counts not sent yet | Quick Send buttons, macros, auto-reply rules, keyword rules |
| Whether the demo files have been copied | Graph, signal and dashboard settings |
| Use software rendering | Window 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:
| Button | What happens |
|---|---|
| Install and restart | The update is downloaded from GitHub and installed, and SerialFlow restarts. The status bar shows Downloading SerialFlow … meanwhile. Your profiles and settings are kept |
| Not now | Nothing. 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:
| Sent | Example |
|---|---|
| App version | 0.9.0-beta.2 |
| Windows version, major only | win11, win10 or other |
| Release channel | beta |
| 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 ever | true / 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
The parts of the window
From top to bottom:
| Part | What it is |
|---|---|
| Toolbar | One row of buttons and lists, starting with ☰ (The toolbar) |
| Port strip | One chip per open port. It appears only when two or more ports are open (Several ports at once) |
| Document area | The Terminal tab (the main log) and the Window 1 to Window 9 tabs |
| Panes | Tool windows such as Transmit, Search and the graphs, docked around the document area (Panes) |
| Quick Send Bar | A one-line send box with a > prompt. On by default; ☰ → View → Quick Send Bar hides or shows it |
| Status bar | Connection, 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.
| Button | What 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 / Disconnect | Opens 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 Ports | Reads 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 Captures | Show or hide that pane |
| Quick Send Bar | Shows or hides the one-line send box above the status bar |
| Add Auxiliary Window | Opens the next free terminal window, Window 1 to Window 9 |
| Clear Terminal | Clears the log and Window 1–9 of the active port (Ctrl+L) |
| Auto Scroll | Keeps 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 Generator | Opens a reference window with the commands, the ANSI colours and the terminal windows |
| Panel Configuration Manager | Opens Panel Configuration for graph and dashboard presets |
| Signal Manager | Opens the Signal Manager (units, computed signals, value-range rules) |
| New Canvas Dashboard | Opens a new, empty canvas dashboard |
| Application Profile (list) | Switches to another profile. SerialFlow saves the current one first |
| Reset Layout | Puts the panes back in the standard arrangement |
| Settings | Opens Settings (Ctrl+,) |
| Load RX Test File | Same as ☰ → Test → Load Test File (Try it without hardware) |
| Start Delayed Playback / Stop Playback | Same 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 Output | Developer 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.
| Section | Item | What it does |
|---|---|---|
| Profile | Save Profile | Saves 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 | |
| Connection | Connect | Opens the port chosen in the toolbar |
| Disconnect | Closes the active port | |
| Add Port | Opens a new, empty port workspace | |
| Refresh Ports | Reads the COM port list again | |
| View | Transmit 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 Buttons | Show or hide that pane |
| Auto Scroll | Keeps the log scrolled to the newest line | |
| Raw Display | Shows 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 | |
| Tools | Add Window | Opens the next free terminal window (Window 1–9) |
| Clear Terminal | Clears the log and Window 1–9 of the active port | |
| Reset Layout | Puts the panes back in the standard arrangement | |
| Reset All to Defaults | Resets 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 Gen | Opens 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 Dashboard | Opens a new canvas dashboard | |
| Open Canvas Dashboard… | Lists the saved canvas dashboards, newest first, and opens or deletes the one you pick | |
| Test | Load Test File | Feeds a file in as if it had arrived from the port (Try it without hardware) |
| Delayed Playback | Plays a file line by line; choose it again to stop | |
| Settings | Settings | Opens 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).
| Pane | Open it with | One per port or shared |
|---|---|---|
| Transmit | toolbar, ☰ → View → Transmit Panel | per port |
| Search | toolbar, ☰ → View → Search Panel | per port |
| Hex View | toolbar, ☰ → View → Hex View | per port |
| Statistics | toolbar, ☰ → View → Statistics | per port |
| Macros | toolbar, ☰ → View → Macros | per port |
| Quick Send | toolbar, ☰ → View → Quick Send Buttons | per port |
| Data Logger | toolbar, ☰ → View → Data Logger | per port |
| Auto-Reply | toolbar, ☰ → View → Auto-Reply | per port |
| Bookmarks | toolbar, ☰ → View → Bookmarks | per port |
| Graph Bookmarks, Graph Markers | toolbar, ☰ → View | per port |
| Signal Lines | ☰ → View → Signal Lines | per port (DTR, RTS and modem lines) |
| Graphs | opened by the firmware’s graph lines, or Panel Configuration | per port |
| Keyword Highlighter | toolbar, ☰ → View → Keyword Highlighter | shared: its rules apply to every terminal |
| CRC Calculator | toolbar, ☰ → View → CRC Calculator | shared |
| Port Info | toolbar, ☰ → View → Port Info | shared |
| Data Collector | toolbar, ☰ → View → Data Collector | shared: one recording covers every port |
| Saved Captures | toolbar, ☰ → View → Saved Captures | shared: 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:
| Item | What it does |
|---|---|
| Pop Out | Turns the pane into its own window, in one click (Pop out and full screen) |
| Pop Out Full Screen | The same, and maximizes that window on its screen |
| Float | Turns the pane into its own window |
| Dock | Docks a floating pane again |
| Dock as Document | Moves the pane into the document area, as a tab beside the Terminal |
| Auto Hide | Folds the pane into a tab at the window edge; it slides out when you point at it |
| Hide | Hides 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 View | Closes 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.

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.
| Field | What it shows |
|---|---|
| ● dot | Green: connected. Amber: connecting, reconnecting or disconnecting. Red: not connected, or an error |
COM4: 115200 | The port and baud rate of the active workspace. It reads No Port after a disconnect, or when no port has been chosen |
| Red text | The 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) |
| Message | The 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: … /s | Bytes received per second |
v0.9.0-beta.2 | The 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:

- Settings → Toolbar → Preset → Simple Terminal (or Minimal), then OK.
- Hide the panes you don’t need with their ✕. ☰ → View brings any of them back.
- 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.
- 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.
- 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
- 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). - Pick the baud rate in the Baud Rate list. It must match your device.
- 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.

| Setting | Choices | Default |
|---|---|---|
| Port | The same list as the toolbar, with Refresh and Port Details… | — |
| Baud Rate | 9 600 to 3 000 000, up to Max | 115 200 |
| Max | 921 600, 1 500 000, 2 000 000, 3 000 000 | 3 000 000 |
| Data Bits | 5, 6, 7, 8 | 8 |
| Parity | None, Odd, Even, Mark, Space | None |
| Stop Bits | One, Two, OnePointFive | One |
| Handshake | None, XOnXOff, RequestToSend, RequestToSendXOnXOff | None |
| DTR Enable | Raise DTR when the port opens | off |
| RTS Enable | Raise RTS when the port opens | off |
| Override Latency Timer, Value (ms), Restore original on close | See FTDI latency timer | off, 16, on |
| Read (ms) | 100–30 000 | 500 |
| Write (ms) | 100–30 000 | 500 |
| Non-blocking reads (faster response, higher CPU) | When off, each read collects more data, which suits high baud rates and USB adapters | on |
| Max Retries | Reconnect attempts after the device is lost; 0 = no limit | 5 |
| Retry Delay | 50–5 000 ms before the first retry | 100 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:
| Setting | Choices | Default |
|---|---|---|
| TX Line Ending | None, CR, LF, CRLF: what is added to each line you send | CRLF |
| RX Line Ending | Auto, CR, LF, CRLF: how received CR and LF end a line (Line endings) | Auto |
| Encoding | UTF-8, ASCII, Latin-1: how received bytes become text | UTF-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.

| Setting | What it does |
|---|---|
| Auto-reconnect on disconnect | Tries to reopen a port whose device was lost |
| Auto-detect USB port changes | Checks 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.
- Start SerialFlow as administrator: right-click it in the Start menu, More → Run as administrator.
- In Settings → Port → FTDI Latency Timer, tick Override Latency Timer and set Value (ms), 1–255.
- Leave Restore original on close ticked to put the old value back when the port closes.
- 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.

| Button | What it does |
|---|---|
| Refresh | Scans the ports again |
| Details… | Opens Port Details |
| Use Selected Port | Puts 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:
| Tab | What it shows |
|---|---|
| All Ports | Every 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 Detail | All properties of one port. Copy All copies them, handy for a bug report |
| FTDI Devices | The 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 Info | How 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:
- Press Add Port (new terminal) on the toolbar, choose ☰ → Connection → Add Port, or right-click the Terminal tab and choose Open New Port / Terminal.
- 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.
- 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.

The port strip appears under the toolbar as soon as two or more ports are open. Each chip shows:
| Part | Meaning |
|---|---|
| Coloured bar | The port’s indicator colour, if you set one |
| ● dot | Green connected, amber busy, red not connected (the colours follow the colour profile) |
| Name | The 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:
| Item | What it does |
|---|---|
| Connect / Disconnect | This 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 name | Goes 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 | |
|---|---|---|
| Toolbar | Load RX Test File | Start Delayed Playback |
| Files offered | .txt, .bin, .ans (or all files) | .txt (or all files) |
| How it feeds the file | The whole file at once, byte for byte. Graphs, log and windows fill instantly | One line at a time, so you watch it arrive |
| Clears first | Nothing | The log and Window 1–9 of the active port. Graphs stay, so playback can continue a loaded run |
| Status bar | Test 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.

Start here:
- ☰ → 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. - ☰ → Test → Delayed Playback →
Demo→showcase_live.txt. The run continues live for about 1 min 50 s.
| File | Use with | What it shows |
|---|---|---|
README.txt | Notepad | The same guide as this section |
showcase_preload.txt | Load Test File | The whole run so far: four graphs, the log, Window 1 and Window 2 |
showcase_live.txt | Delayed Playback, after the preload | The run continues live, with a second overcurrent trip (about 1 min 50 s) |
showcase_hero_live.txt | Delayed Playback, after the preload | Every pane moving at once: speed steps, a rolling scope trace, the log and the Drive window (about 40 s) |
showcase_text.txt | Delayed Playback | Text only: boot log and run log at full speed, with live status windows (about 50 s) |
showcase_theme_text.txt | Load Test File | A still boot log, for comparing colour profiles in Settings → Color Profile |
showcase_scope_live_c.txt | Delayed Playback, after the preload | Live oscilloscope frames on graph C, Phase Currents (about 16 s) |
showcase_scope_live_d.txt | Delayed Playback, after the preload | The live αβ current vector on graph D (about 16 s) |
showcase_features.txt | Load Test File, on its own | Graph 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.txt | Load Test File, on its own | Run 2 · heatsink v2: the same run with better MOSFET cooling (peak 68.1 °C instead of 82.6 °C) |
showcase_rx_errors.txt | Delayed Playback, after the preload | The 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.txt | A canvas dashboard | A 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.txt | Delayed Playback, with that canvas open | Drives the canvas live through graph F (about 19 s) |
motor_bench_run.sfplot | A graph | A saved plot session of Thermal & Battery. With any graph shown, right-click the plot → Open Session in New View… |
run2_heatsink_v2.sfplot | A graph | Run 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
.binfiles 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 arrives | What you see |
|---|---|
| Plain text | The 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 on | The 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.

| Code | Effect |
|---|---|
0, or nothing (ESC[m) | Reset: default colours, no style |
1 | Bold |
3 | Italic |
4 | Underline |
9 | Strikethrough |
22 | Bold off |
23 | Italic off |
24 | Underline off |
29 | Strikethrough off |
30 to 37 | Text colour, standard colours 0 to 7 |
90 to 97 | Text colour, bright colours 8 to 15 |
38;5;n | Text colour from the 256-colour palette, n = 0 to 255 |
38;2;r;g;b | Text colour, 24-bit (TrueColor), each part 0 to 255 |
39 | Default text colour |
40 to 47 | Background, standard colours 0 to 7 |
100 to 107 | Background, bright colours 8 to 15 |
48;5;n | Background from the 256-colour palette |
48;2;r;g;b | Background, 24-bit |
49 | Default background |
2, 5, 7, 8 and their resets 25, 27, 28 | Accepted, but they change nothing on screen: no dim, blink, reverse or hidden text |
The 16 standard and bright colours:
| n | Colour | Hex | n | Colour | Hex |
|---|---|---|---|---|---|
| 0 | Black | #000000 | 8 | Bright black (grey) | #555753 |
| 1 | Red | #CC0000 | 9 | Bright red | #EF2929 |
| 2 | Green | #4E9A06 | 10 | Bright green | #8AE234 |
| 3 | Yellow | #C4A000 | 11 | Bright yellow | #FCE94F |
| 4 | Blue | #3465A4 | 12 | Bright blue | #729FCF |
| 5 | Magenta | #75507B | 13 | Bright magenta | #AD7FA8 |
| 6 | Cyan | #06989A | 14 | Bright cyan | #34E2E2 |
| 7 | White | #D3D7CF | 15 | Bright 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(or1;91for 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.
| Sequence | What SerialFlow does |
|---|---|
ESC[2J, ESC[J, ESC[3J (any J) | Clears the whole terminal, including the scrollback |
ESC[K, ESC[0K | Clears the line from the cursor to its end |
ESC[1K | Blanks the line from its start up to and including the cursor |
ESC[2K | Clears the whole line; the cursor stays where it is |
ESC[H, ESC[row;colH, ESC[row;colf | Moves to that row and column of the scrollback (row 1 is the oldest line kept, column 1 the first) |
ESC[nA, ESC[nB | Moves n rows up or down |
ESC[nC, ESC[nD | Moves n columns right or left |
ESC[s, ESC[u | Saves and restores the cursor position |
Any other ESC[… with a letter at the end | Ignored |
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:
| Tag | Colour |
|---|---|
<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:
| Encoding | Use it for |
|---|---|
UTF-8 (default) | Almost all firmware. Bytes that are not valid UTF-8 show as � |
ASCII | 7-bit devices. Bytes from 0x80 up show as ? |
Latin-1 | Devices 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 Ending | A line ends at | A lone CR |
|---|---|---|
| Auto (default), CRLF | LF or CR LF | Goes back to the start of the line |
| CR | CR (an LF right after it is skipped), or a lone LF | Ends the line. For devices that end their lines with CR only |
| LF | LF | Is 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
| What | Where to switch it on | Looks like |
|---|---|---|
| Timestamps | ☰ → Settings → Terminal → Show Timestamps | [19:53:47.384] in front of each line |
| Line numbers | ☰ → Settings → Behavior → Show Line Numbers | 28 │ in front of each line, counted from 1 |

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 Fmt | Example |
|---|---|
HH:mm:ss.fff (default) | 14:23:08.042 |
HH:mm:ss | 14:23:08 |
yyyy-MM-dd HH:mm:ss | 2026-11-04 14:23:08 |
mm:ss.ffffff | 23: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.

For runs that last days, keep the newest lines by age or by memory instead. In ☰ → Settings → Data Logger:
| Setting | What it does | Default |
|---|---|---|
| Enable Long-Term Logging Mode | Turns on the options below | off |
| Retention Mode | LineCount: keep the newest Max Lines lines (the same as without long-term logging). TimeBased: keep the last minutes. MemoryBased: stay under a memory limit | LineCount |
| Retention (min) | With TimeBased: how many minutes to keep, 1 to 10 080 (one week) | 30 |
| Memory Limit | With MemoryBased: the most memory the scrollback may use, 1 to 500 MB | 50 MB |
| Auto-log all data to disk | Writes 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_ALLor~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:

- 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
| Keys | Action |
|---|---|
| Ctrl+F | Open or close the find box |
| F3 / Shift+F3 | Next / previous match (also Enter / Shift+Enter in the find box) |
| Esc | Close the find box |
| Ctrl+C | Copy the selection |
| Ctrl+A | Select all |
| Ctrl+B | Add or remove a bookmark on the line you last clicked |
| Ctrl+L | Clear Terminal |
| Ctrl+End | Turn Auto Scroll on or off |
| Ctrl+Shift+End | Jump to the newest line |
| Ctrl+R | Raw 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
- Press Ctrl+F. A find box opens at the top right of the terminal.
- Type. Every match is highlighted, the view jumps to the first one, and the counter shows
1 / 12, or0 results. - 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.
- Press Esc, Ctrl+F or the ✕ button to close the box. This also removes the highlights.
| Button | What it does |
|---|---|
| Aa | Match 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 button | Opens ☰ → 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.

- Open ☰ → View → Keyword Highlighter.
- Make sure Enable Keyword Highlighting at the top is ticked (it is by default).
- Click Add. A rule
keywordappears, with a bright text colour and the terminal background. - Double-click the keyword, type your own, then click elsewhere to apply it.
- Click the FG swatch for the text colour and the BG swatch for the background.
| Column | Meaning |
|---|---|
| On | The rule is active |
| Keyword | The text to mark |
| FG | Text colour |
| BG | Background colour |
| Aa | Match case. Without it, trip also marks TRIP |
| W | Whole 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+)? |
| Button | What it does |
|---|---|
| All On / All Off | Switch every rule on or off |
| Add / Delete | Add a rule, or delete the selected one |
| Up / Down | Move the selected rule |
| Save As | Save the rules as JSON File (.json) or Text File (.txt) |
| Load | Load 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 (
OCmarks theOCinCLOCK), 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.

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:
| Column | Meaning |
|---|---|
| Line | The line’s number in the terminal when you set the bookmark, as in the gutter. A bookmark from before beta 2 shows — |
| Content | The text of the line when you bookmarked it |
| Annotation | Your 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
- Open ☰ → View → Data Logger.
- Pick the format:
txt,csvorbinary. Fortxt, tick Time to start each line with the time it arrived. - 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. - Press Start. The status bar says Logging started: bench.txt, and the panel’s status line reads
Status: Logging | Logged: 2.9 KBand counts up. - 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:run7from the device starts the Data Logger on a new file in the capture folder, and~LogOffstops it (Device commands). They work only when device commands are switched on.
What goes into the file
| Format | Each line in the file | File encoding |
|---|---|---|
txt | The line’s text, as the terminal shows it. With Time ticked: [19:56:21.469] in front | UTF-8 with BOM, CR LF line ends |
csv | A 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 |
binary | The line’s text followed by LF. Despite the name, this is text, not the raw received bytes | UTF-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
\ris 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:
| Column | Content |
|---|---|
time | The PC’s local time when the line arrived, yyyy-MM-dd HH:mm:ss.fff: the time the terminal’s timestamp shows |
n | The line’s number in this file, counted from 1 |
text | The 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.
- Open ☰ → Settings → Data Logger.
- Tick Enable Long-Term Logging Mode, then Auto-log all data to disk.
- Set the options below and press OK.
| Setting | What it does | Default |
|---|---|---|
| Log Directory | The folder for the log files | empty: the logs folder in your Main Folder, normally Documents\SerialFlow\logs |
| Max File Size | When a file reaches this size, a new one starts. 1 to 500 MB | 50 MB |
| Max Log Files | When a file is full and the next one starts, the oldest files are deleted so that at most this many remain. 1 to 100 | 10 |
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-log | Data Collector | |
|---|---|---|
| Records | The text lines of one port’s terminal | Every graph sample from every connected port, plus events |
| Formats | txt, csv | SQLite, CSV, JSON Lines |
| Use it for | Keeping the device’s log | Analysing 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.
- Type in the text box.
- Press Enter or click Send.
| Control | What it does |
|---|---|
| Send | Sends the text and empties the box |
| CR+LF | Adds the line ending from ☰ → Settings → Communication → TX Line Ending (CR LF by default). Untick it to send the text exactly as typed |
| Hex | Sends 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:
| Setting | Choices | Default |
|---|---|---|
| Line Ending | Use TX Setting, None, CR, LF, CRLF | Use TX Setting |
| Enter | Send + Line Ending + Clear, Send + Line Ending, Send Raw + Clear, Send Raw | Send + Line Ending + Clear |
| Ctrl+Enter | The same, or Disabled | Send Raw |
| Shift+Enter | The same, or Disabled | Disabled |
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
| Where | Line ending |
|---|---|
| Transmit panel | TX Line Ending (☰ → Settings → Communication: None, CR, LF, CRLF; default CRLF), when CR+LF is ticked |
| Quick Send Bar | Its own Line Ending setting, Use TX Setting by default |
| Quick Send button | The button’s own Line Ending, added after every line |
| Macro | The macro’s Line ending, added after every text Send step. Use TX setting by default |
| Auto-reply | The 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-reply | None |
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:
| Where | Allowed besides digits and spaces | Odd number of digits | Line ending added |
|---|---|---|---|
| Transmit panel and Quick Send Bar (Hex ticked) | nothing else | the last digit is dropped | no |
| Quick Send button (Hex ticked) | - and 0x | a 0 is added in front | yes |
| Macro Send step (Hex ticked) | - | the last digit is dropped | no |
Auto-reply (Hex pattern, or a hex reply) | -, and 0x at the start | the rule editor does not accept it | no |
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.
| Field | What 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.
- Open ☰ → View → Quick Send Buttons. The panel is called Quick Send.
- Click +, or right-click an empty spot → Add Button. A button
Btn 1appears. - Right-click the button → Edit… to open Edit Quick Send Button.
- 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.
| Section | Field | What it does |
|---|---|---|
| Identity | Label: | The text on the button |
| Tooltip: | Shown when you point at the button | |
| Data | Text box | What to send. Each line is sent separately |
| + Delay | Inserts a delay:100 line at the cursor | |
| ? | Short help | |
| Send Options | Hex | Each 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 lines | A pause between all lines, in ms. Default 100 | |
| Appearance | Text Color: / BG Color: | The button’s colours |
| Font Size: / Bold | The 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.

- Open ☰ → View → Macros.
- Click Add. A macro
New Macroappears, already selected. Click Edit, or double-click the macro. - In Edit Macro, fill in the fields and add steps (below). Press OK.
- Select the macro and click Run, or press its shortcut. Stop cancels a running macro.
| Field | What 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.
| Type | Data | Delay / Timeout (ms) | Hex |
|---|---|---|---|
Send | The text to send, plus the line ending | not used | Send the hex bytes in Data instead, with no line ending |
Delay | not used | How long to wait | not used |
WaitFor | Text the device must answer with | How long to wait for it; 0 means 5 s | must 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:
| Type | Data | Delay / Timeout (ms) |
|---|---|---|
Send | run 1500 | |
WaitFor | speed 1500 rpm | 5000 |
Delay | 5000 | |
Send | stop |
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.

- Open ☰ → View → Auto-Reply.
- Tick Enable Auto-Reply. No rule runs without it; it is off by default.
- 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 Rule | What 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 sensitive | Match 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:
| Column | Meaning |
|---|---|
| On | The rule is active. Tick it here; the other columns change in the editor |
| Name, Pattern, Type, Response | As set in the editor |
| Matches | How 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 |
| Button | What it does |
|---|---|
| Add / Edit / Delete | Add a rule, edit the selected one, or delete it |
| Up / Dn | Move the selected rule: rules are tried top to bottom |
| All On / All Off | Switch every rule on or off |
| Reset | Set the Matches counters to 0 |
| Import | Load rules from a JSON file. This replaces the whole list |
| Export | Save the rules as a JSON file (autoreply-rules.json) |
Match types:
| Type | A line matches when … | Example pattern |
|---|---|---|
PlainText | it contains the pattern | WDT ping |
Hex | its text, as UTF-8 bytes, contains the pattern’s bytes | 42 4D 53 3F (BMS?) |
Regex | the .NET regular expression finds a match | Overcurrent 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 withUse TX setting.
The JSON file. Export writes, and Import reads, a list of rules with these fields:
| JSON field | Meaning | Default |
|---|---|---|
name | Name | New Rule |
pattern | Match | |
patternType | PlainText, Hex or Regex | PlainText |
response | Reply. In JSON, \r\n gives a real CR LF | |
responseIsHex | true: the reply is hex bytes, such as "06" | false |
responseLineEnding | UseTxSetting, None, CR, LF or CRLF: added after a text reply | UseTxSetting |
delayMs | Wait this many ms before replying | 0 |
isEnabled | On | true |
isOneShot | true: the rule switches itself off after its first reply | false |
caseSensitive | true: match case | false |
id | A unique ID. Leave it out and SerialFlow makes one; never give two rules the same ID | new |
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 ~:

~WrLi1:0:DRIVE STATUS
~WrLi1:2:Speed 2594 rpm
~WrLi1:3:Torque 7.42 Nm
~WrLi1:2:Speed 2594 rpmwrites the textSpeed 2594 rpmto 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.
| Command | Format | What 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:
| Command | What 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
| Part | Meaning |
|---|---|
~ | 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 |
WrLi | The 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:xis read as window 1, row 2, text5: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:textoverwrites 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\x88in 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.


Long forms
Older SerialFlow firmware may use long command names. They work for the main terminal (window 0) only:
| Long form | Short 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,HOMEandENDmust be alone on their line. A log line that is exactlyENDis 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:datais 15 bytes,UPDATE_LINE:3:datais 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
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
- Create the graph. Print one init line: graph letter,
I, then the graph’s settings. - Add the signals. Print one signal line (
S) per signal: its number, type, name, unit and colour. - 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
| Part | Meaning |
|---|---|
~{ | Start of a graph command |
G | Graph letter, A to Z (capital letters only). Each port has its own set |
C | Command letter, such as I, S or 1. Capitals only. See the cheat sheet |
field… | The command’s fields, separated by : |
} | End of the command |
*XX | Optional CRC-8: * and two hex digits |
| line feed | Ends 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 ast=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, not23,5. No thousands separators.1.2e-3is 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
0x00bytes 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 line | What happens |
|---|---|
| Is a valid command | It 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 CRC | It 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 40 | It is dropped without a message. Check the field tables below |
| Names a graph that does not exist yet | Dropped, 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}
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | name | Title of the graph tab | Text | Required (may be empty) |
| 2 | buffer | Streamer: 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 used | Whole number above 0 | 1000 if empty, 0 or not a number |
| 3 | mode | How the graph keeps data. See Graph modes | S streamer, L logger, F frame | Required. Any other value gives a streamer |
| 4 | X type | Time or value axis. Stored with the graph and in saved sessions; it does not change how the axis is drawn | T time, V value | Required (may be empty: T) |
| 5 | X display | Raw or formatted numbers. Stored with the graph; both look the same | R raw, F formatted | Required (may be empty: R) |
| 6 | X label | Text under the X axis. X:L can change it later | Text | Empty |
| 7 | X unit | Shown after the X label as [unit] | Text | Empty |
| 8 | X SI prefix | Power of ten applied to every X value you send. See Units and SI scaling | Whole number, for example -3 | 0 |
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
Iagain 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 theSlines again after it. - On the PC, ☰ → Tools → Panel Configuration… can keep the data when the firmware sends
Iagain (Preserve Data on Re-Init), and can ignoreC,Pand the bareX(close) from the firmware.
Graph modes
The mode (field 3 of I) decides what the graph keeps and how its X axis moves.


Streamer S | Logger L | Frame F | |
|---|---|---|---|
| Use it for | Watching live values | Recording a whole run | Oscilloscope views, spectra, XY shapes |
| What it keeps | The newest buffer points per signal; older points drop off | Every point, up to 1 000 000 per signal by default | Only the last complete frame |
| Buffer size | Points kept, and the visible X width | Not used | Most points per frame, per signal |
| X axis | Follows the newest point; the window is as wide as buffer points | Shows the whole run, from the first point to the newest | Fits each new frame |
| Fixed X range | X:R stops the following | X:R shows only that range | X:R stops the fitting |
| Screen update | As data arrives | As data arrives | Only on the flush line ~{G:F} |
| Best data command | 1 (auto-X) or 0 | 0 (explicit X, such as time) or 1 | 0 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}
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | id | Signal number. Data values go to the signals in rising id order | 1 to 32 | Required. Other numbers: line dropped |
| 2 | type | Value type. In text lines it only matters for hex formats (sign); the packed binary packet carries its own type | u8 i8 u16 i16 u32 i32 u64 i64 f32 f64 (any case) | i32 if empty or unknown |
| 3 | format | How the value is written in data lines. Capital letters only | D U R Fn H Hn, see below | D if empty or unknown |
| 4 | name | Name in the legend and signal lists | Text | Required (may be empty) |
| 5 | unit | Shown after the name as [unit]. Text only: it does not convert anything | Text | Required (may be empty) |
| 6 | SI prefix | Power of ten applied to every value of this signal. See Units and SI scaling | Whole number | Required (may be empty: 0) |
| 7 | colour | Trace colour, RRGGBB | Six hex digits, such as FF6644 | Empty: next colour of the graph style’s palette |
| 8 | visible | Shown at start | 1 shown, 0 hidden | Shown |
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:
| Format | Reads | Examples | Note |
|---|---|---|---|
R | Real number | 23.5, -0.004, 1.2e-3, NaN | The only format for numbers with decimals. NaN leaves a gap in the trace |
D | Signed whole number | 1500, -42 | 23.5 reads as 0 |
U | Unsigned whole number | 1500 | A minus sign reads as 0 |
Fn | Zero-padded whole number, n digits | F6: 001500 | Read like D; the width is not checked |
H | Hex number | 5DC | No 0x prefix |
Hn | Zero-padded hex, n digits | H4: 05DC | Read 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:
| Type | Meaning | Type | Meaning |
|---|---|---|---|
u8 | Unsigned 8-bit | i8 | Signed 8-bit |
u16 | Unsigned 16-bit | i16 | Signed 16-bit |
u32 | Unsigned 32-bit | i32 | Signed 32-bit |
u64 | Unsigned 64-bit | i64 | Signed 64-bit |
f32 | 32-bit float | f64 | 64-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
Sagain 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.
| Prefix | Name | Multiplier | Example |
|---|---|---|---|
-9 | nano | 0.000000001 | ns → s |
-6 | micro | 0.000001 | µs → s |
-3 | milli | 0.001 | mV → V, ms → s |
0 | none | 1 | as sent |
3 | kilo | 1 000 | kHz → Hz |
6 | mega | 1 000 000 | MHz → 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:
| Prefix | Applies 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 scaled | Auto-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,TandYare 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,TandBare in the units you send, like the data X. An event at 3 s is~{B:E:1:3000:Start}, in milliseconds. Mis 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 of0, as in most graphs, all of these are the same.
Send data: 1 and 0
| Command | Line | X 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
Rsignal, sendNaN. - 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
1and0on 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:

~{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:
- Every signal’s displayed points are replaced by its staged points, in one step.
- The staging buffers are emptied and the frame count goes up by one (the graph’s status strip shows
Frame # n). - The auto-X counter starts again at 0, so each frame sent with
1starts at X = 0.
Rules:
- Points beyond the buffer size (per signal) before the
Fare dropped. - A signal that got no points in a frame is empty after the flush.
Fhas no effect on streamer and logger graphs.- While the graph is paused, data lines and
Fare 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-command | Fields | What it does |
|---|---|---|
R range | min, max (numbers) | Fixes the Y axis from min to max and stops auto-scaling. Use min < max |
A auto | none | Auto-scales Y to the data again (the default) |
L label | label (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-command | Fields | What it does |
|---|---|---|
R range | min, 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 auto | none | X moves as the mode makes it move again (the default) |
L label | label (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 axes | 1 on, 0 off | One 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]"
minandmaxare 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}
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | visible | Show the legend | 1 show, 0 hide | Required |
| 2 | position | Corner of the plot | TL TC TR BL BC BR (top/bottom, left/centre/right) | TR; also for an unknown value |
| 3 | size | Font size | Number | 12. Empty reads as 0, drawn at the smallest size, 8 |
| 4 | alpha | Background opacity | 0 (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/1wins over Show legend on the New View Defaults tab of Graph View Settings…. Without anLline, 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
Lline 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.

~{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)
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | id | Line number. Sending the same id again moves or relabels the line | Whole number, 1 or more | Required |
| 2 | position | H: Y value, in the units the graph shows. M: X value, used as sent (not scaled by the X SI prefix) | Number | Required to add a line |
| 3 | colour | Line and label colour, RRGGBB | Six hex digits | H: CCCCCC grey; M: FFFF00 yellow |
| 4 | style | Line style | S solid, D dashed, T dotted, A dash-dot | D |
| 5 | label | Text drawn at the line | Text | None |
~{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
Hlabel sits at the left end of its line, anMlabel at its top. - A line with only an id removes it; id
0removes them all. Do not use id 0 for a line you want to keep. ~{G:C}(clear) keepsHandMlines. They belong to the set-up, not to the data.- In stacked lanes,
Hlines 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
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | id | Event number. The same id again moves or relabels it | Whole number, 1 or more | Required |
| 2 | x | X position, scaled by the X SI prefix like data X | Number | Required to add |
| 3 | label | Text at the top of the line | Text | None |
| 4 | colour | RRGGBB | Six hex digits | 00FF00 green |
| 5 | style | S solid, D dashed, T dotted, A dash-dot | D |
~{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
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | id | Note number. The same id again moves or changes it | Whole number, 1 or more | Required |
| 2 | x | X position, scaled by the X SI prefix | Number | Required to add |
| 3 | y | Y position, in the units the graph shows | Number | Required to add |
| 4 | text | The note | Text | Required to add |
| 5 | colour | RRGGBB | Six hex digits | FFFFFF white |
| 6 | size | Font size | Number | 12. Empty reads as 0, drawn at the smallest size, 8 |
| 7 | rotation | Degrees, clockwise, around the anchor point | Number | 0 |
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
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | x | X position, scaled by the X SI prefix | Number | Required |
| 2 | label | Short name in the bookmark list | Text | Required |
| 3 | comment | Longer description | Text | None |
| 4 | colour | Flag colour, RRGGBB | Six hex digits | The 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
Bline 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
| Line | Command | What it does |
|---|---|---|
~{G:C} | Clear | Empties 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 signal | Empties only signal id. Auto-X and everything else stay |
~{G:P} | Pause | Drops data lines and F until R. Other commands still work. The graph’s Pause button turns into Resume |
~{G:R} | Resume | Accepts data again. Data sent while paused is not replayed |
~{G:V:id:1} | Show signal | Shows signal id; 0 as id means all signals |
~{G:V:id:0} | Hide signal | Hides signal id (0 = all). A hidden signal keeps recording |
~{G:X} | Destroy | Closes the graph and deletes its data. Its values also leave the dashboards. A new I creates it again |
~{G:X:…} | X axis | With a sub-command, X sets the X axis and closes nothing: see X axis |
~{G:W…} | Save | Saves 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
| # | Field | Meaning | Values | Default |
|---|---|---|---|---|
| 1 | label | The file name. Blanks and characters a file name can’t hold become _; at most 60 characters | Text | Empty: graphA-0001 and so on, numbered with all other captures |
| 2 | format | What to write | P .sfplot session, C CSV, B both, from the same moment | P |
if (overcurrent) printf("~{A:W:overcurrent}\n"); /* overcurrent.sfplot, then overcurrent-2.sfplot, ... */
- Off until you allow it.
Wruns 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,EandTlines 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
capturesin the SerialFlow folder (normallyDocuments\SerialFlow\captures). An existing file is never overwritten: the name gets-2,-3and so on. - The Saved Captures pane lists every capture and opens it in a graph view: see Saved Captures.
- A
Wfor 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.

~{A:1:3000:3004.9}*7E
The rules:
- Polynomial
0x07(x⁸ + x² + x + 1), start value0, 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 text123456789is0xF4. - It covers every character from
{to}, both braces included. The~and the*XXare 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. WritedegC,uAand so on. - The CRC is optional, per line. A line without
*XXis accepted unchecked. So is a line where the*is not followed by two hex digits. It works on every command, not only data lines.
| Line | CRC over | Result |
|---|---|---|
~{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:
| Category | Reason shown | Typical cause |
|---|---|---|
| CRC | CRC 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 |
| Structure | Missing closing brace | The line was cut short |
| Structure | Content too short (1 chars, need >= 3) | Nothing useful between the braces |
| Command | Invalid graph ID 'b' (not A-Z) | The graph letter changed, or is lower case |
| Command | Unknown command code 'p' | The command letter changed, or is lower case |
| Format | Format error: no colon after command code | A : changed or is missing |
| Structure | Missing colon separator at position 1 | No : 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
| Part | Size | Meaning |
|---|---|---|
| Start | 1 byte | 0x00 |
| Length | 2 bytes | Number of COBS-encoded bytes, low byte first. 1 to 1 024 |
| Packet | 1–1 024 bytes | The packet below, COBS-encoded, so it holds no 0x00 |
| End | 1 byte | 0x00 |
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:
| Byte | Field | Values |
|---|---|---|
| 0 | Magic | 0xBD |
| 1 | Graph | 0 = A, 1 = B, … 25 = Z |
| 2 | Command | 0x01 auto-X, 0x02 explicit X |
| 3 | Flags | Bit 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 |
| 4 | Signal count | 1 to 32: values per row |
| 5 | Value type | 0 to 9, see below. Must be valid even when bit 1 is clear |
| 6, 7 | Row count | Only with the batch flag: number of rows, low byte first |
| then | Rows | Row after row, see below |
| last | CRC-8 | Over every byte before it (byte 0 to the end of the last row). Same CRC as text lines |
A row:
| Flags | Row layout |
|---|---|
| Bit 0 set | 8-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:
| Code | Type | Bytes | Code | Type | Bytes |
|---|---|---|---|---|---|
0 | u8 | 1 | 5 | i32 | 4 |
1 | i8 | 1 | 6 | u64 | 8 |
2 | u16 | 2 | 7 | i64 | 8 |
3 | i16 | 2 | 8 | f32 | 4 |
4 | u32 | 4 | 9 | f64 | 8 |
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 of | Bytes per row | Rows per frame (packet ≤ 1 000 bytes) |
|---|---|---|
| 2 × f32, auto-X | 8 | 123 |
| 4 × f32, auto-X | 16 | 61 |
| 2 × i16, auto-X | 4 | 247 |
| 1 × f32, explicit X | 12 | 82 |
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)
doubleis 4 bytes, sosf_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
| Line | Bytes with \r\n | 115 200 baud | 921 600 baud |
|---|---|---|---|
~{A:1:3000:3004.9} | 20 | ≈ 576 lines/s | ≈ 4 600 lines/s |
~{A:1:3000:3004.9}*7E | 23 | ≈ 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. UseDand 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
SfLinehelper does it on Arduino.
Troubleshooting
| What you see | Likely cause |
|---|---|
| No graph tab appears | The 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 trace | No 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 0 | A decimal value in a D or U signal; a lower-case format (r); or a comma as decimal point |
| Values land on the wrong signal | Values 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 text | The 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 nothing | One 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 back | X went backwards: the signal is now drawn in arrival order. Clear the graph (~{G:C}) and keep X rising |
| A frame graph never changes | No ~{G:F}; the graph is not in mode F; or it is paused |
| A frame is cut off | It has more points than the buffer size |
| Good-looking CRC lines are all rejected | A non-ASCII character in the line, or the CRC does not cover exactly { … } |
~{G:L:0} does not hide the legend | The legend was toggled with G in this view: that choice wins until SerialFlow restarts. See Legend |
~{G:W} saves nothing | Device 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 appear | The 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
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.

| Toolbar item | What it does |
|---|---|
| Pause / Resume | Stops or restarts taking new samples into this graph. See Pause. |
| Clear | Deletes all stored samples of this graph. Limit lines, events and notes stay. |
| AutoScale | Fits the axes to the data and turns live follow back on. Same as a double-click on the plot. |
| Fit | Fits all stored data, imported layers included, into view. Does not turn live follow back on. |
| Points | Shows a dot at every sample on all signals. |
| Overlay / Stacked | Switches between one shared plot area and stacked lanes. The label shows the current layout. |
| Bookmark | Adds a bookmark in the middle of the view. Bookmarks are listed in ☰ → View → Graph Bookmarks. |
| Signals | Shows the sidebar’s Signals tab. Press it again to hide the sidebar. |
| Stats | Shows 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. |
| Image | Saves the plot as a PNG image. |
| Save Session | Saves 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 Screen | Opens 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 box | Display averaging, and the bucket width. See Display averaging. |
| Style list | The 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:
| Field | What it does |
|---|---|
| Lane | Which lane the signal is drawn in when the layout is Stacked: 0 to 7. |
| Width | Line width, 0 to 10. 0 uses the graph style’s default. |
| Scale / Offset | Draws the signal as value × Scale + Offset. See the note below. |
| Style | Line pattern: Solid, Dashed, Dotted, DashDot, or empty for the graph style’s default. |
| Marker | Size of the dot drawn at each sample, 0 to 16 pixels. 0 = no dots (unless Points is on). |
| Smooth | Draws a smooth curve through the samples instead of straight segments. |
| Points | The number of stored points (read-only). |
| Shape | Dot shape: Circle, OpenCircle, Square, Triangle, Diamond, Cross or None. |
| X-Offs, Opacity, Remove Layer | Imported 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 %.

- Press Signals and expand each signal.
- Type a Lane number. Signals with the same number share a lane. Lane
0is at the top. - 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:
| Mode | What follow shows |
|---|---|
| Streamer | The newest samples, one buffer wide, at the right edge. |
| Logger | The whole run, growing as data arrives. |
| Frame | The 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).
| Mouse | Action |
|---|---|
| Left-drag | Pan. Y moves in the lane where you started. |
| Right-drag | Zoom to the box you draw. |
| Right-click | The plot menu. |
| Double-click | Auto-scale and follow the data again. |
| Alt+left-drag, or middle-drag | Mark 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 line | Move it. |
| Hold Ctrl | Vertical cursor line: every signal’s value at that X. |
| Hold Ctrl+Shift | Horizontal cursor line: a Y level, with differences and crossings. |
| Wheel | Action |
|---|---|
| Wheel | Zoom X, 25 % per notch, around the pointer. |
| Shift+wheel | Zoom Y of the lane under the pointer. |
| Ctrl+wheel | Zoom 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.
| Key | Action |
|---|---|
| F | Fit all data |
| Home | Auto-scale and follow |
| Y | Reset 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 |
| Z | Zoom to the marked region |
| Esc | Clear the marked region |
| Ctrl+N | New view from the marked region |
| C | Cursor line: none → vertical → horizontal → none, without holding a key |
| X | Add an X marker at the pointer |
| Ctrl+Y | Add a Y marker at the pointer |
| Ctrl+B | Add a bookmark at the pointer |
| Space | Pause / resume |
| P | Dots at every sample on / off |
| L | Overlay ↔ stacked |
| G | Legend on / off |
| B | Sidebar on / off |
| Ctrl+P | Save the plot as a PNG image |
| Ctrl+G | Graph 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.
| Tab | What you set there |
|---|---|
| Mouse | One 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 & Zoom | Which 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. |
| Keyboard | The key table above. Click a shortcut box and press the new keys; Delete clears it. |
| Pan & Selection | Drag 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 & Rendering | Redraw period (33 ms ≈ 30 frames per second), how many dots are drawn, margins, lane gap, tick spacing. |
| New View Defaults | How 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 Menu | Which 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.

Right-click the plot for what to do with the region:
| Menu item | What it does |
|---|---|
| Zoom to Selection | Zooms X to the region (Z). |
| New View from Selection | Opens 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 Selection | Deletes every sample outside the region, on all signals of this graph. |
| Delete Selected Range | Deletes every sample inside the region. |
| Clear Selection | Removes 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.
- 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. - Drag a marker line to move it.
- 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:
| Pair | Values |
|---|---|
| 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 button | What it does |
|---|---|
| Graph | The graph the buttons below act on: the first graph by default. Selecting a marker picks its graph. |
| Add X / Add Y | A marker in the middle of the view. |
| At Max / At Min | An X and a Y marker at the maximum or minimum of the chosen signal in the current view. |
| Remove, Toggle, Go To | Delete, hide or show, or centre the graph on the selected marker. |
| Pair / Unpair | Make or break a pair. |
| Show All, Hide All, Clear All | All 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.

- 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.
| Statistic | Label | Meaning |
|---|---|---|
| Current value | Cur | The newest sample. Shown large at the top by default. |
| Minimum ✓ | Min | Lowest value |
| Maximum ✓ | Max | Highest value |
| Peak to peak ✓ | P-P | Max − min |
| Average ✓ | Avg | The average chosen under AVERAGE: mean, RMS, median or EMA |
| Arithmetic mean | Mean | Sum ÷ count |
| RMS ✓ | RMS | Root mean square |
| Median | Med | Middle value |
| Standard deviation ✓ | Std | Spread around the mean |
| Variance | Var | Standard deviation squared |
| Sample count ✓ | N | Number of points |
| Sum | Sum | Sum of the values |
| Integral | ∫ | Area under the curve |
| Slope | Slope | Least-squares slope, dY/dX |
| Delta | Δ | Last − first |
| First / Last | First, Last | First and last value in the range |
| X of min / X of max | X@Min, X@Max | Where the minimum and maximum are |
| X span | ΔX | Width of the range in X |
| Sample rate | Rate | Samples per X unit |
| Absolute peak | |Max| | Largest absolute value |
| Crest factor | Crest | Peak ÷ RMS |
✓ = shown by default.
| Setting | Choices |
|---|---|
| VALUES SHOWN | Tick, untick and order (▲ ▼) the rows. |
| HEADER VALUE | Which statistic is shown large, its Font size, Show unit. |
| AVERAGE | Mode: Arithmetic mean, RMS, Median or Exponential moving average (with EMA α). |
| HOW MANY POINTS ARE INCLUDED | Window: Last N points (Points, default 100), Visible range, or All stored points. |
| NUMBERS | Format: Significant digits, Fixed decimals, Scientific or Engineering (SI); Digits (5); Unit on every row. |
| VIEW | Second 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.

| Display mode | One point per interval, drawn at its centre |
|---|---|
| Raw | Off: every stored sample (default) |
| Average | Mean of the samples |
| Minimum | Lowest sample |
| Maximum | Highest sample |
| Rms | Root mean square |
| Sum | Sum of the samples |
| Count | Number of samples (the Y axis then counts samples) |
| First | First sample |
| Last | Last 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.
| Field | Choices |
|---|---|
| X | CommandX (the X from the data line), SampleIndex (0, 1, 2, … per signal), ArrivalSeconds (when the sample arrived on the PC) |
| Emit | EveryPoint, FixedXInterval (one point per Width in X units), FixedTimeInterval (one point per Width seconds), EveryNth (one point per N samples) |
| Agg | How the stored point is made: Average, Minimum, Maximum, Sum, Count, Rms, First, Last |
| Keep | Most 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
Aon COM3 and graphAon 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.

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.
- 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.
- Give it a Profile Name and change what you want:
| Group | Settings |
|---|---|
| Figure & Data Area | Figure and data backgrounds |
| Grid | Major and minor grid colour, major grid width, show major / minor grid |
| Axes | Label, tick label, tick and frame colours; label and tick font sizes |
| Legend | Show legend, background, text colour, outline, font size |
| Signal Defaults | Default line width and pattern, anti-alias |
| Bookmarks & Markers | Bookmark colour and width, reference line colour, marker line width, pair shading and label colours |
| Interaction Overlays | Selection accent colour |
| Signal Color Palette | Colours for signals without their own; + Add Color, x to remove |
- 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.

- On the graph’s toolbar, press Compare… (or Import…: it is the same).
- Pick one or more files: a
.sfplotsession, a Data Collector.sqlitedatabase, CSV, TSV, JSON Lines or JSON. For a database, pick the run in Select Recorded Run (runs that did not finish are marked ⚠). - 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:
| Field | What it does |
|---|---|
| X-Offs | Shifts the whole layer along X. Use it to line up, say, the motor start of both runs. |
| Opacity | 0.1 to 1.0. Dim the old run so the differences stand out. |
| Remove Layer | Takes 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
Lline; 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
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:
| Tab | What it does |
|---|---|
| Incoming Signals | Scale, offset, unit, name and colour for each signal the firmware sends |
| Computed Signals | New signals worked out from one or two others, such as power = voltage × current |
| Overrides | Rules 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.

- 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.
- Select a signal. Under UNIT CONVERSION, fill in what you need:
| Field | What it does |
|---|---|
| Name | Shown instead of the firmware’s name. Empty keeps the firmware’s name. |
| Unit | Shown instead of the firmware’s unit. |
| Scale | The received value is multiplied by this. |
| Offset | Added after scaling. |
| Color | Recolours the signal on the graph, dashboards and statistics, straight away. |
| Note | Your own reminder, shown as Description in the list. |
- Tick the row’s check box, or press Enable All. New rows start unticked: a pass-through.
- 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.
- On Computed Signals, press a template under Templates:, or + Add for a blank one.
- Under SIGNAL IDENTITY, set Name, Unit and Color.
- Choose the Operation.
- 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.
- Set Target: Graph (the graph that shows the result) and tick Show on Graph. The ID is shown beside it.
- Result shows the calculation with the latest values, for example
52.091 × 12.124 = 631.57.
| Operation | Result |
|---|---|
| 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) |
| Maximum | The larger of the two |
| Minimum | The 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 |
| Template | Makes |
|---|---|
| Power (V×I) | Multiply, named Power, unit W |
| Efficiency (%) | Percentage, Efficiency, unit % |
| Difference (Δ) | Subtract, Difference |
| Sum (+) | Add, Sum |
| Average | Average, Average |
| Ratio (÷) | Divide, Ratio |
| Scale+Offset | Scale + Offset, Scaled |
| Rate of Change | Delta, 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
/sunit 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:

| Section | What it does |
|---|---|
| Graph Gating | Which 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 Definitions | A 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 Overrides | Replace 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 Filters | Per signal: Accept (normal), Reject (drop its data) or InitOnly (keep the signal, drop its data). Signal 0 = all signals of the graph. |
| Value Range Rules | Per signal: what to do with a value outside Min to Max. |
| Decimation | Per 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 mode | For each window of Factor samples, it stores… |
|---|---|
| NthSample | the last sample of the window |
| Average | the mean of the window, at the X of its last sample |
| MinMax | the 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 action | A value outside the range… |
|---|---|
| Discard | is dropped: not drawn, not stored, not recorded. |
| Clamp | is set to Min or Max. |
| Hold | is 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
Tor ValueV), Display (RawRor FormattedF), 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,ForFn,HorHn, 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:
| Way | What you get | Best for |
|---|---|---|
| Data Collector | Every sample of every graph on every open port, as SQLite, CSV and/or JSON Lines | Long runs, Python, records |
| Export… | One graph as CSV, TSV, JSON Lines, JSON or .sfplot | A spreadsheet of one graph |
| Save Session | One graph view as a .sfplot file: data, notes and look | Reopening, 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.

- ☰ → View → Data Collector opens the panel.
- Type a Run name (optional).
- Press ● Record. The status reads ● RECORDING.
- Run your test.
- Press ■ Stop. The run is listed under RECENT RUNS (THIS SESSION) with its length, samples, signals and formats. Open Folder shows its files.
| Panel item | Meaning |
|---|---|
| Elapsed | Time since ● Record |
| Samples | Samples recorded |
| Rate | Samples per second |
| Signals | Signals seen in this run |
| Events | Events recorded (see below) |
| Queue | Samples waiting to be written |
| Dropped | Samples lost because the disk could not keep up. Shown in red, only when it is not 0. |
| STORAGE | One 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:

| Setting | Default | What it does |
|---|---|---|
| SQLite database (single file, queryable — recommended) | on | Writes to an SQLite database. |
| One database for all runs (off = one file per run) | on | On: 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) | off | Writes two CSV files per run. |
| Delimiter: | Comma | Comma, Semicolon or Tab. Use Semicolon for Excel with a decimal comma. |
| JSON Lines stream (data.ndjson per run) | off | Writes one JSON object per line. |
| Output Folder | empty | Where runs are written. Empty = <Main Folder>\recordings, normally Documents\SerialFlow\recordings. |
| Include computed (derived) signals | on | Records computed signals too. |
| Record events (bookmarks, markers, graph init/clear, port connect/disconnect) | on | Records events next to the samples. |
| Start recording automatically when a port connects | off | Starts an unnamed run when a port connects and nothing is recording. |
| Stop recording when the last port disconnects | off | Stops the run when no port is connected any more. |
| Queue Capacity | 65 536 samples | Room between the serial ports and the disk (1 024 to 1 048 576). |
| Batch Size | 2 048 samples / transaction | Samples written at once (64 to 16 384). |
| Flush Interval | 250 ms | How 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
xfor 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 view | Columns |
|---|---|
runs | run_id, run_key, name, started_utc_ticks, ended_utc_ticks, app_version, profile, ports, notes, sample_count, dropped_count |
signals | run_id, signal_key, port_slot, port, session_id, graph_id, signal_id, name, unit, color, value_type, is_computed |
samples | run_id, signal_key, t_utc_ticks, x, y |
events | run_id, t_utc_ticks, port, graph_id, kind, label, x, detail |
v_samples | run_id, run_name, port, graph_id, signal_id, signal_name, unit, is_computed, t_utc, t_utc_ticks, x, y |
v_events | run_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).
| File | Columns |
|---|---|
samples.csv | timestamp_utc, port, graph, signal_id, signal_name, unit, is_computed, x, y |
events.csv | timestamp_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 type | Contents |
|---|---|
| CSV wide format | First 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 format | Columns series, the X column (named as above, or x) and y: one row per sample, series = name [unit]. |
| TSV | Wide format, separated by tabs. |
JSON Lines (.ndjson) | A {"type":"series",…} line per signal (id, name, unit, colour), then {"s":…,"x":…,"y":…} per sample. |
| JSON | One 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
.sfplotthen 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.

| A session holds | A session does not hold |
|---|---|
| Every signal’s stored points | Measurement markers |
The firmware’s limit lines, marker lines, event markers and notes (H, M, E, T) | The marked region |
| Bookmarks, with their saved views | The 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.
| File | How it is read |
|---|---|
.sfplot | Every 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, .txt | Comma, 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, .jsonl | Data 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. |
.json | SerialFlow’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:
| Setting | Default | What it does |
|---|---|---|
| Allow device commands that save captures and start or stop logging | off | Lets the commands below run |
| Capture Folder | empty | Where 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.
| Command | What it does | Example |
|---|---|---|
~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 |
~LogOff | Stops 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 |
~RecOff | Stops 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/1writesmotor_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. ~SvLogsaves 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.
| Column | Contents |
|---|---|
| Time | When the file was saved, newest first |
| Label | The label as the device sent it, or the file name. Hover it for the file name |
| Kind | Log · Terminal, Log · Window 2, Graph A · .sfplot, Graph A · CSV or Data Logger |
| Port | The port the command came from |
| Size | The file size |
| Button | What 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 Folder | Explorer on the capture folder, with the capture selected |
| Delete (or Del) | Deletes the file, after asking |
| Refresh | Reads 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.

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.

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:
| Button | What it does | Mode |
|---|---|---|
| Edit | Switches between edit mode and run mode | both |
| Save | Saves the canvas to its file | both |
| Properties | Opens Canvas Properties: name, size, background colour and image, grid | both |
| Import/Export ▾ | Export and import widgets as a JSON file or as text, or the whole canvas as a .sfcanvas file | both |
| + Widget ▾ | Adds a widget, from a menu grouped like the toolbox | edit |
| 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 step | edit |
| Undo, Redo | Undo or redo adding, deleting, moving and resizing widgets | edit |
| Snap | Snaps dragged widgets to the grid | edit |
| Grid | Shows the grid in edit mode: a faint line every grid step and a stronger one every fifth | edit |
| -, +, 1:1 | Zoom out, zoom in, back to 100 % | both |
1920 x 1080 | The canvas size. A * after it means unsaved changes | both |
| Mute, Acknowledge (n) | Silence alert sounds, or stop the sounding alerts (see Alarm sounds) | both |
| Pop Out, Full Screen | The canvas in its own window, or in its own window maximised | both |
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:
| Command | What it does |
|---|---|
| Configure… | Opens Widget Settings |
| Duplicate | Adds a copy 20 px down and to the right |
| Lock / Unlock | A locked widget cannot be dragged or moved with the arrow keys. The list shows 🔒 |
| Bring to Front, Send to Back | Puts the widget on top of, or behind, the others |
| Delete | Removes 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).

“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.
| Group | Widget | Type key | Shows |
|---|---|---|---|
| Numeric | Large Value Display | LargeValueDisplay | The value in large digits, with its unit and the Min and Max seen so far |
| Numeric | Digital LED Display | DigitalLedDisplay | The value in seven-segment digits |
| Numeric | Percentage Bar | PercentageBar | A horizontal bar filled across the range, with the value |
| Numeric | Rolling Counter | RollingCounter | The value in a dark counter box |
| Numeric | Statistics Panel new | StatisticsPanel | Last, Min, Max and Avg of the signal, and how many readings it has had |
| Numeric | Rate Meter new | RateMeter | How many readings per second the signal brings, over the last 2 s. It falls to 0 when the signal stops |
| Numeric | Totalizer new | Totalizer | The sum of every reading since Reset Stats (also the readings between two screen refreshes), and how many there were |
| Numeric | Value + Trend new | ValueTrend | The value, with a filled trend of its latest readings under it |
| Numeric | Peak Hold new | PeakHold | The 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 |
| Numeric | Duty Cycle new | DutyCycle | How 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 |
| Gauge | Arc Gauge | ArcGauge | An arc that fills across the range, with the value in the middle |
| Gauge | Linear Gauge | LinearGauge | A vertical thermometer bar |
| Gauge | Radial Gauge | RadialGauge | A round dial with a needle and tick labels |
| Gauge | Tank Level | TankLevel | A tank that fills from the bottom |
| Gauge | Semicircle Gauge new | SemiGauge | A half circle from Range Min on the left to Range Max on the right, with a needle and the value under the hub |
| Gauge | Segmented Bar new | SegmentedBar | LED 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 |
| Gauge | Battery Level new | BatteryLevel | A battery filled to the value’s place in the range, with the percentage. Red below 20 % |
| Gauge | Zone Gauge new | ZoneGauge | A 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 |
| Gauge | Bullet Gauge new | BulletGauge | A 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 |
| Status | Status LED | StatusLed | A round lamp in the colour of the threshold reached |
| Status | On/Off Toggle | OnOffToggle | A small lamp next to the label, coloured by the thresholds |
| Status | Multi-State Indicator | MultiStateIndicator | The label and value on a tile that takes the threshold colour: one colour per state |
| Status | Alarm Banner | AlarmBanner | A ⚠ banner with the label and value, in the threshold colour |
| Status | Traffic Light new | TrafficLight | Red, 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 |
| Status | Annunciator Panel new | Annunciator | One 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 |
| Status | Data Alive new | DataAlive | A 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 |
| Status | Alarm Counter new | AlarmCounter | How 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 |
| Chart | Sparkline | Sparkline | A trend line of the latest values, with the value |
| Chart | Multi-Signal Trend | MultiSignalTrend | One trend line per bound signal, drawn over each other, with the latest values below. Each line on its own scale, or all on one |
| Chart | Live Bar Chart | LiveBarChart | One vertical bar per bound signal, side by side across the range, with the values below |
| Chart | Histogram | Histogram | How often the latest values fell into each band |
| Chart | Step Chart new | StepChart | A trend of the first bound signal drawn in steps: each reading holds until the next. For on/off and state signals |
| Chart | Area Chart new | AreaChart | A trend of the first bound signal with the area under the line filled |
| Chart | Radar Chart new | RadarChart | One 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 |
| Chart | Donut Share new | DonutShare | Each 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 |
| Chart | State Timeline new | StateTimeline | A 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 |
| Chart | Heat Grid new | HeatGrid | One 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 |
| Chart | Trend Grid new | TrendGrid | One small trend per bound signal (up to 8), with its name and value, each on its own scale |
| Text | Text Label | TextLabel | Fixed text: the label, in the primary colour and font size. Needs no signal |
| Text | Value + Timestamp | ValueTimestamp | The label, value and unit, and the time the value arrived |
| Text | Signal Info Card | SignalInfoCard | The value and unit, with Min, Max and Avg |
| Text | Data Table | DataTable | A Signal / Value / Unit table, one row per bound signal |
| Text | Log Ticker | LogTicker | The last 12 readings of the first bound signal, newest first, each with its time |
| Text | Event Log new | EventLog | A 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 |
| Text | State Text new | StateText | A 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 |
| Shape | Pipe Connector | PipeConnector | A grey pipe, to join panels on a synoptic |
| Shape | Shape | Shape | A rectangle filled with the primary colour, with a thin border |
| Shape | Image | ImageWidget | A picture you choose in Widget Settings → General → Picture, with its stretch. Needs no signal |
| Shape | Group Frame | GroupFrame | A titled frame, to group widgets |
| Shape | Arrow new | Arrow | A filled arrow pointing right; turn it with Rotation. With a bound signal it takes the threshold colour. Needs no signal |
| Specialized | Compass | Compass | A compass needle pointing at the value, in degrees |
| Specialized | XY Plot | XYPlot | One 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 |
| Specialized | Dial Knob | DialKnob | A knob whose mark shows the value across the range (display only) |
| Specialized | Bitfield Display | BitfieldDisplay | The lowest 8 bits of the value, as a row of lit and dark cells |
| Specialized | Signal Color Map | SignalColorMap | A colour gradient with a marker at the value |
| Specialized | Delta Indicator | DeltaIndicator | An up or down arrow and the difference between the value and its average |
| Specialized | Clock / Uptime | ClockUptime | The time since the widget was created in this session, as hh:mm:ss. Needs no signal |
| Specialized | Mini Terminal | MiniTerminal | Green text on black: the last 12 readings of the first bound signal, newest first, each with its time |
| Specialized | Progress Ring | ProgressRing | A ring that fills across the range |
| Specialized | Valve / Switch | ValveSwitch | A ball valve, drawn open when the value reaches a threshold and closed otherwise |
| Specialized | Fan / Pump new | FanPump | A rotor that turns while the value is not 0, faster as the value rises through the range. Grey and still at 0 |
| Specialized | Attitude Indicator new | AttitudeIndicator | An 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 |
| Specialized | Polar Plot new | PolarPlot | Points 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 |
| Control | Send Button new | SendButton | A 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 |
| Control | Toggle Switch new | ToggleSwitch | An 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 |
| Control | Send Slider new | SendSlider | A 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 |
| Control | Number Entry new | NumberEntry | A 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:
| Field | What 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 off | Toggle Switch only: what switching off sends |
| Hex bytes | The 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 ending | After the text: None, CR, LF or CRLF (the default) |
| Port | Port of the binding (the default: the port of the widget’s signal, else the main port), or one of your ports |
| Ask before sending | On by default: every send first asks Send “SET 42” + CR LF to COM5?, with the exact text, line ending and port |
| Range Min / Max | Send Slider and Number Entry: the values that can be sent (0 to 100 when Max is not above Min) |
| Step | Send 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:
- Double-click the widget. Widget Settings opens.
- On the Signals tab, click Add Binding. A row appears with Role
primary, GraphAand Signal1. - Type the graph letter in Graph (capital
AtoZ) and the signal ID in Signal. The signal ID is the number in your firmware’s signal line:3for~{A:S:3:…}. - 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. - 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.
| Tab | Fields |
|---|---|
| General | Label, 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) |
| Appearance | Primary 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 |
| Chart | Only 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) |
| Send | Only 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) |
| Signals | Add Binding; per binding Role, Graph, Signal and Port, and × to remove it |
| Thresholds | Range 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.
| Field | Widgets | What it does |
|---|---|---|
| Grid lines | all | A line at each step of the axes |
| Values on the X axis | all but Live Bar Chart | The 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 axis | all | The value scale. On a Histogram: how many readings fell into each band |
| X axis title, Y axis title | X: all but Live Bar Chart | Text under the X axis, and text written upwards beside the Y axis |
| X axis | Sparkline, Step Chart, Area Chart, Multi-Signal Trend | Readings, 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 Chart | Auto 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 / Max | all | The fixed scale; the same two fields as on the Thresholds tab. A Live Bar Chart always uses them |
| X scale, X Min / Max | XY Plot | Auto, or Fixed from X Min to X Max |
| Readings kept | all but Live Bar Chart | How 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:

| Threshold | Color | Result |
|---|---|---|
80 | FFA726 | amber from 80 °C |
100 | FF5252 | red 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:
| Field | What it does |
|---|---|
| When statistic Above / Below | What 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 … s | The window for Minimum, Maximum and Average. 0 = since Reset Stats |
| True for … s before it triggers | A hold-off: the condition must hold this long without a break. 0 = at once |
| Hysteresis | An 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 … s | A 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….
| Field | Default | Meaning |
|---|---|---|
| Canvas Name | Canvas 1, Canvas 2, … | The name in the pane title, Canvas: … |
| Canvas Size | 1920 x 1080 | Width 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) | 1E1E1E | Six hex digits |
| Gradient fill instead of the solid color | off | A gradient from Start color to End color; Angle (°) 0 = left to right, 90 = top to bottom |
| Background Image Path | empty | A PNG, JPG, BMP, GIF or TIFF file. Click … to browse. Empty = no picture |
| Image Stretch | Uniform | Uniform (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 Opacity | 1 | 0 (invisible) to 1 (solid), in steps of 0.1 |
| Grid Size (px) | 10 | Snap distance |
| Snap to Grid | on | Same as Snap on the toolbar |
| Show Grid in Edit Mode | on | Same 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.

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:
| Command | What 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 Text | Copies 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 Reference | Shows 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.

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,GridSizeandSnapToGrid. 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: valueper line. OnlyLabelis 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:
| Key | Default | Meaning |
|---|---|---|
Label | empty | The title. Empty shows the signal’s name once data arrives |
X, Y | 0 | Position of the top-left corner, in pixels |
Width, Height | 200, 100 | Size in pixels. Give them for every widget: the text format does not use the toolbox sizes |
PrimaryColorHex | 00B4D8 | The main colour: value, line, fill or needle |
BackgroundColorHex | 2D2D2D | The widget’s background |
BorderColorHex | 555555 | The border of a Shape, and the frame of BorderStyle |
BorderStyle | None | A frame around the widget: None, Thin, Medium, Thick or Rounded |
Rotation | 0 | Degrees, clockwise about the widget’s centre |
RangeMin, RangeMax | 0, 100 | The range of gauges, bars, rings, Dial Knob and Signal Color Map |
UnitDisplay | empty | The unit text. Empty uses the signal’s unit |
DecimalPlaces | 2 | Decimals of the value |
FontSize | 24 | The size of the main value (see Widget Settings) |
Opacity | 1.0 | 0 (invisible) to 1 (solid) |
ZIndex | 0 | Stacking order: higher is on top |
IsLocked | False | True locks the widget in place |
SparklineBufferSize | 100 | How many recent values the chart widgets keep |
Binding | none | role=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 |
Threshold | none | value=colour, for example 80=FFA726. One line per threshold, lowest value first. Options can follow, each after a ; (below) |
ImagePath, ImageStretch | empty, Uniform | The picture of an Image widget, and Uniform, UniformToFill, Fill or None |
ChartGrid, ChartXValues, ChartYValues | False | The chart widgets’ grid lines and axis values: True or False |
ChartXTitle, ChartYTitle | empty | The axis titles |
ChartXAxis | Samples | Sparkline, Step Chart, Area Chart and Multi-Signal Trend: Samples (readings) or Time (seconds) |
ChartScale | Auto | Auto, Fixed (RangeMin to RangeMax) or, on a Multi-Signal Trend, PerTrace (its default) |
ChartXScale, ChartXMin, ChartXMax | Auto, 0, 100 | XY Plot: the X scale, Auto or Fixed from ChartXMin to ChartXMax |
AliveTimeout | 2 | Data Alive: seconds without a new value before it shows No data |
StateTexts | empty | State Text and State Timeline: the text for each value, 0=Idle; 1=Running; 2=Fault |
BulletTarget | empty | Bullet Gauge: where the target mark sits. Empty: the running average |
WindowSeconds | 10, 60 | Peak Hold (10) and Duty Cycle (60): how many seconds back the widget looks |
SendText | empty | Control widgets: what is sent, with {value} (Toggle Switch: when switched on) |
SendTextOff | empty | Toggle Switch: what switching off sends |
SendHex | False | True: the text is hex bytes (01 A0 FF) |
LineEnding | CRLF | Control widgets: None, CR, LF or CRLF after the text |
SendPort | empty | Control widgets: a port slot such as port1. Empty: the port of the binding |
ConfirmSend | True | Control widgets: False sends without asking |
Step | 1 | Send 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.
| Key | Action | Mode |
|---|---|---|
| Delete | Delete the selected widget | edit |
| Ctrl+D | Duplicate the selected widget | edit |
| Ctrl+C | Copy the selected widgets (inside the canvas only, not to the Windows clipboard) | edit |
| Ctrl+V | Paste the copied widgets, 20 px down and to the right | edit |
| Ctrl+A | Select all widgets | edit |
| Esc | Clear the selection | edit |
| Arrow keys | Move the selected widget by 1 px | edit |
| Shift+arrow keys | Move it by 10 px | edit |
| Ctrl+Z, Ctrl+Y | Undo, redo | both |
| Ctrl+S | Save the canvas | both |
| F5 | Switch edit and run mode | both |
| Ctrl+mouse wheel | Zoom | both |
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.

Create one:
- Choose ☰ → Tools → Panel Configuration…. The Panel Configuration Manager opens.
- Click + Dashboard. A preset
D1(or the next free number) appears in the list. - Under Dashboard Layout, pick the number of Columns.
- Click + Add Widget once per tile, and fill in each row (see below).
- Click Create Now. The dashboard pane opens.
- 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:
| Field | Meaning |
|---|---|
| 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) |
| X | Removes 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/Max | Adds a Min / Max row under a NumericDisplay |
| Span: … cols × … rows | How many columns and rows the tile covers. A span wider than the grid is cut to the number of columns |
| + Threshold | Adds 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:
| Type | Shows |
|---|---|
NumericDisplay | The value in large digits with its unit, and optionally a Min / Max row |
ProgressBar | A horizontal bar across Min to Max, with the value on it |
RadialGauge | An arc gauge across Min to Max, with the value in the middle |
TextLabel | One compact line: Label: value unit |
ColorIndicator | A bar with the value, coloured by thresholds |
Sparkline | A small trend line of the last 50 values, with the value |
LedIndicator | A lamp, the label and the value; the lamp is coloured by thresholds |
StatisticsPanel | Last, 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
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.

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.
| Column | Contents |
|---|---|
| # | Running number of the error |
| Timestamp | Local time, HH:mm:ss.fff |
| Graph | The graph letter, or ? if the letter itself is broken |
| Category | CRC, Structure, Command, Format or Other, each in its own colour |
| Error Reason | What was wrong (table below) |
| Raw String | The command as it arrived, ~{…}, with its *XX CRC if it had one |
The reasons and their categories:
| Error Reason | Category | What happened |
|---|---|---|
CRC mismatch (expected 0xB4, got 0xC7) | CRC | The 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 brace | Structure | The line has no }: it was cut short |
Content too short (2 chars, need >= 3) | Structure | Fewer than three characters between the braces |
Missing colon separator at position 1 | Structure | The character after the graph letter is not : |
Invalid graph ID 'b' (not A-Z) | Structure | The first character is not a capital letter |
Unknown command code 'p' | Command | The command letter is not one SerialFlow knows |
Format error: no colon after command code | Format | Something 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.

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.
- Pick an algorithm in Algorithm:. The default is CRC-32.
- Type or paste into Input Data:.
- 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.
| Algorithm | Details | Check value |
|---|---|---|
| CRC-8 | Polynomial 0x07, start 0x00, no reflection. The same CRC-8 as SerialFlow’s graph lines | 0xF4 |
| CRC-16-CCITT | Polynomial 0x1021, start 0xFFFF, no reflection (CRC-16/CCITT-FALSE) | 0x29B1 |
| CRC-16-Modbus | Polynomial 0x8005 reflected, start 0xFFFF | 0x4B37 |
| CRC-16-XMODEM | Polynomial 0x1021, start 0x0000 | 0x31C3 |
| CRC-32 | The common CRC-32 of zlib, ZIP and Ethernet: polynomial 0x04C11DB7 reflected, start and final XOR 0xFFFFFFFF | 0xCBF43926 |
| LRC | The two’s complement of the byte sum (as in Modbus ASCII) | 0x23 |
| XOR | All bytes XOR-ed together | 0x31 |
| Sum8 | Sum of the bytes, lowest 8 bits | 0xDD |
| Sum16 | Sum of the bytes, lowest 16 bits | 0x01DD |
| MD5 | 128-bit hash | 0x25F9E794… |
| SHA-1 | 160-bit hash | 0xF7C3BC1D… |
| SHA-256 | 256-bit hash | 0x15E2B0D3… |
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.
| Tab | Contents |
|---|---|
| Quick Reference | Every command in a searchable table (Search:, Category:). Select one to see its syntax, a C example and notes |
| ANSI Colors | The 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 Commands | The screen, line and cursor commands, such as WRITE_LINE and GOTO, each with a printf example (see Other escape sequences) |
| Multi-Window | The 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:
| Item | What it is for | Chapter |
|---|---|---|
| ☰ → Tools → Add Window, Clear Terminal | Extra text windows; clear the log | The terminal |
| ☰ → Tools → Send File… | Send a file over the port | Send File |
| ☰ → Tools → Port Details… | Adapters, drivers and COM ports | Port Info and Port Details |
| ☰ → Tools → Signal Manager… | Units, conditioning and computed signals | Signals and units |
| ☰ → Tools → Graph Styles… | Your own graph styles | Graph styles |
| ☰ → Tools → Panel Configuration… | Graph, window and dashboard presets | Grid Signal Dashboard |
| ☰ → Tools → New Canvas Dashboard, Open Canvas Dashboard… | A new HMI canvas, or a saved one | Dashboards |
| ☰ → Tools → Reset Layout, Reset All to Defaults | Put panes back; reset the profile | Profiles |
| ☰ → View → Search Panel, Hex View, Keyword Highlighter, Bookmarks, Statistics | Look into the log | Find, keywords and bookmarks |
| ☰ → View → Data Logger, Data Collector | Write data to disk | Logging to a file, Recording |
| ☰ → View → Saved Captures | The files the firmware saved with device commands | The Saved Captures pane |
| ☰ → View → Graph Bookmarks, Graph Markers | Work with graphs | Working with graphs |
| ☰ → View → Signal Lines | The port’s modem lines: CTS, DSR, DCD, RI, and DTR / RTS to set | DTR, RTS and modem lines |
| ☰ → View → Macros, Auto-Reply, Quick Send Buttons, Quick Send Bar, Transmit Panel | Send and automate | Sending data |
| ☰ → View → Port Info | The open port at a glance | Port Info and Port Details |
| ☰ → Test → Load Test File, Delayed Playback | Replay a recorded log without hardware | Try 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.

| Group | Colour profiles |
|---|---|
| Neutral | Dark, VS Dark, Carbon, High Contrast Dark |
| Light | Light, VS Light, Solarized Light |
| Editor classics | Solarized Dark, Monokai, Dracula, One Dark, Nord, Gruvbox Dark |
| Modern dark | Tokyo Night, Catppuccin Mocha, GitHub Dark, GitHub Dimmed, Night Owl, Material Ocean, Palenight, Ayu Mirage, Cobalt2, Synthwave 84 |
| Terminal | PowerShell, 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:
| Group | Colours |
|---|---|
| Terminal Colors | Foreground:, Background:, Selection: |
| Search Colors | Match FG:, Match BG: (every match), Active FG:, Active BG: (the current match) |
| Application UI | Text:, Accent:, Panel Surface:, Panel Border: |
| Docking Tabs | Active Tab:, Inactive Tab: |
| Status Colors | Warning:, Error:, Success: |
Small samples under each group, and the Live Preview, show the result before you apply it.
| Button | What it does |
|---|---|
| Save As… | Saves the colours shown as a new colour profile with your own name. Built-in names cannot be used |
| Delete | Deletes one of your own colour profiles (not a built-in one) and goes back to VS Dark |
| Reset | Brings 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.
| Control | What it does |
|---|---|
| Preset: | Picks a ready-made toolbar, or User (my layout) (table below) |
| Copy to User Layout | Makes the preset shown your own layout, to build on |
| Copy from Profile… | Takes the toolbar of another saved profile |
| Preview | Shows the toolbar as it will look |
| Toolbar Style | Background: and Icon tint: for the whole bar, each with Use theme |
| Visible column | Untick to hide a button. The tick in the header shows or hides all |
| Background, Icon Color columns | Colours for one button |
| Move Up, Move Down | Move the selected row (Alt+Up, Alt+Down) |
| Reset Selected | Clears the visibility and colour changes on the selected row |
| Show All, Hide All | Show 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 Defaults | Every 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.
| Preset | Shows |
|---|---|
| Full | Everything except the test buttons |
| Simple Terminal | Port, baud, connect, refresh, Transmit panel, Quick Send bar, clear, auto scroll, Settings |
| Minimal | ☰, port, baud and connect |
| Graphing & Dashboards | The connection buttons, graph bookmarks and markers, Data Collector, Quick Send bar, clear, auto scroll, Signal Manager, new canvas, profile list, Settings |
| Logging & Analysis | The 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 / Test | Everything, 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:
| Control | What it does |
|---|---|
| Preset:, Copy to User Layout, Copy from Profile… | As on the toolbar page; the presets are listed below |
| Preview | The menu as it will look, one column per section |
| Menu Style | Seven colours for the whole menu: Text:, Background:, Highlight Bg:, Checkmark:, Separator:, Section Header:, Header Bg:, each with Use theme |
| Section / Item list | One row per section (▣) and, under it, one row per item |
| Visible column | Hide a whole section, or one item |
| Background, Text columns | Colours for one section header or one item |
| Move Up, Move Down | Reorder sections, or items within their own section (Alt+Up, Alt+Down) |
| Reset Selected | Clears the visibility, colour and name changes on the selected row |
| Show All, Hide All | Show 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 Defaults | The 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:
| Preset | Shows |
|---|---|
| Full | Every section except Test |
| Simple Terminal | Connect, Disconnect, Refresh Ports; Transmit Panel, Search Panel, Quick Send Bar, Auto Scroll, Raw Display; Settings |
| Minimal | Connect, Disconnect and Settings |
| Graphing & Dashboards | Profile 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 & Analysis | Profile 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 / Test | Everything, 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.

| Category | Action | Default |
|---|---|---|
| Search | Open Search | Ctrl+F |
| Search | Find Next | F3 |
| Search | Find Previous | Shift+F3 |
| Search | Close Search | Esc |
| Terminal | Copy Selection | Ctrl+C |
| Terminal | Select All | Ctrl+A |
| Terminal | Toggle Bookmark | Ctrl+B |
| Terminal | Clear Terminal | Ctrl+L |
| Navigation | Toggle Auto-Scroll | Ctrl+End |
| Navigation | Jump to End | Ctrl+Shift+End |
| Application | Open Settings | Ctrl+, |
| Application | Toggle Connection | F5 |
| Application | Toggle Raw Display | Ctrl+R |
| Application | Keyboard Shortcut Help | F1 |
| Application | Toggle Always on Top | Ctrl+T |
| Application | Save Profile | Ctrl+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.
| Group | Page | What it holds |
|---|---|---|
| Profiles | Profiles | The profile list and all profile actions (see Profiles) |
| General | General | Main Folder (Change…, Open) and its size; Backup & Recovery: the backup folder, the last backup, Restore from Backup |
| General | Behavior | Window 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 |
| General | Shortcuts | The 16 app shortcuts |
| Connection | Port | Port, 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 |
| Connection | Communication | TX Line Ending, RX Line Ending, Encoding, Auto Scroll |
| Terminal & Data | Terminal | Font Family, Font Size, Max Lines (with a memory estimate), Show Timestamps, Timestamp Fmt, ANSI Color Enabled |
| Terminal & Data | Color Profile | The colour profile and its colours, with a Live Preview (see Colour profiles) |
| Terminal & Data | Data Logger | Enable 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 & Data | Data Collection | Recording formats (SQLite, CSV with delimiter, JSON Lines), output folder, content, automatic start and stop, queue and batch sizes |
| Terminal & Data | Device Captures | Whether the firmware may save captures and start or stop logging, and the Capture Folder (see Device commands) |
| Interface | Toolbar | The toolbar layout (see The toolbar) |
| Interface | Hamburger Menu | The ☰ menu layout (see The ☰ menu) |
| System | Event Logging | Enable event logging, log folder, log level per area, file rotation, extra details, an expression filter |
| System | Diagnostics | Error Display: (Minimal, Normal, Verbose), Port Dropdown: (Minimal, Normal, Extensive), Show Port Info panel on startup |
| System | Performance | UI Update Throttling: Update Mode (Unlimited, RateLimited, IterationLimited), Rate (ms), Every N iterations |
| System | About | Version; 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:
| Setting | Stored in | Belongs to |
|---|---|---|
| Check for updates on startup, Send anonymous usage counts, Use software rendering (About) | app-config.json in the main folder | This PC |
| Which profile is active | app-config.json in the main folder | This PC |
| The Main Folder location (General) | %APPDATA%\SerialFlow\bootstrap.json | This Windows user |
| Canvas dashboards | canvas\ in the main folder | All 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 layout | profiles\<name>\ in the main folder | The 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.

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:
| Action | Where | What happens |
|---|---|---|
| Switch | The profile list on the toolbar; ☰ → Profile → Switch Profile ▶; Settings → Profiles → Switch to This Profile | SerialFlow saves the current profile, then loads the other one. Settings asks first, and drops changes you have not applied |
| New | Settings → 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 |
| Duplicate | Settings → Profiles → Duplicate… | Copies the selected profile under a new name, without switching |
| Rename | Settings → Profiles → Rename… | Renames the selected profile |
| Delete | Settings → Profiles → Delete | Deletes the selected profile, after asking. The active profile cannot be deleted |
| Describe | Settings → Profiles → Description, Save Description | A 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 |
| Import | Settings → 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.
| Command | What 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 Defaults | The 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:
| Area | What you may notice |
|---|---|
| Graph commands | One 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.
| Command | Fields | What it does | Example |
|---|---|---|---|
I | name:buffer:mode:xtype:xdisplay[:xlabel:xunit:xprefix] | Create a graph, or start it over | ~{A:I:Sensors:500:S:T:R:Sample::0} |
S | id:type:format:name:unit:prefix[:colour:visible] | Add or update signal 1–32 | ~{A:S:1:F32:R:Temperature:°C:0:FF6644} |
1 | v1:v2:… | Data, X = next value of the auto-X counter | ~{A:1:23.5:67.2} |
0 | x: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} |
X | R:min:max | Fix the X range, in every mode | ~{C:X:R:-1.2:1.2} |
X | A | Automatic X again | ~{C:X:A} |
X | L:label[:unit] | X axis label | ~{B:X:L:Time:min} |
X | E:1/0 | Equal axes (1:1) on or off | ~{C:X:E:1} |
V | id:0/1 | Hide or show a signal (0 = all) | ~{A:V:3:0} |
Y | R:min:max | Fix the Y range | ~{A:Y:R:-10:100} |
Y | A | Auto-scale Y again | ~{A:Y:A} |
Y | L:label[:unit] | Y axis label | ~{A:Y:L:Voltage:mV} |
L | visible[:position:size:alpha] | Legend on or off, position, size, opacity | ~{A:L:1:TR:12:200} |
H | id:y[:colour:style:label] | Horizontal limit line; id alone removes it, 0 removes all | ~{A:H:1:30:FF4444:D:High temp} |
M | id:x[:colour:style:label] | Vertical marker line (X not scaled); removal as H | ~{A:M:1:250:FFFFFF:S:Calibration} |
E | id:x[:label:colour:style] | Event marker; removal as H | ~{A:E:1:500:Motor start:00FF00:S} |
T | id:x:y:text[:colour:size:rotation] | Note on the plot; removal as H | ~{A:T:1:100:50:Peak:FF0000:14:0} |
B | x: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.
| Command | What it does | Example |
|---|---|---|
~SvLog[W][:label] | Save the main terminal’s text, or status window W (1 to 9) | ~SvLog:boot · ~SvLog2 |
~LogOn[:label], ~LogOff | Start and stop the Data Logger, on a file in the capture folder | ~LogOn:run7 |
~RecOn[:name], ~RecOff | Start and stop a Data Collector run | ~RecOn:soak |



