Data Waveform
The Data Waveform plots one or more values over time as line charts. Several channels can be overlaid in one display area, or each channel can take its own lane. Lanes make it easier to compare the trends of different signals.
A typical use is watching a live waveform from a sensor or device. You can freeze the data in review mode to examine it closely. You can also open a CSV or ZIP file here to browse saved data.
Data Requirements
- The number of values must be at least the number of channels. The first value goes to the first channel, the second value to the second channel, and so on. The order follows the channels in Channel Settings from top to bottom.
- If there are too few values, the update is skipped entirely (general rule in the Plugins Overview). Extra values are ignored.
- If a single value cannot be converted to a number, only that channel has a missing value at that point in time. Its curve breaks there, and the other channels are still drawn.
- The plugin does not convert units. The Data scale factor affects only the display, exported files, and recordings. See Channel Settings.
Data Source
The general rules for data sources are described in the Plugins Overview. The Data Waveform supports two data sources, Text Split and Variable Rendering. They are mutually exclusive, so turning on one turns off the other. Text Split is the default.
Text Split (Default)
Click the Text button on the toolbar to open the Text split settings window. Check Enable text mode to turn it on. The window has these settings:
- Prefix: Only data that starts with this text is processed. The prefix is removed before splitting. If the field is empty, no check is made. Data that does not match is ignored.
- Separator: The character that separates values. It defaults to the English comma
,. If the field is empty, the update is skipped. - Preview: Read-only. It shows an example of the format, based on the prefix and separator.
Text Split maps the values in order to Channel 1, Channel 2, and so on. A part that cannot be converted to a number becomes a missing value, and only its channel is affected.
Example: the prefix is $WAVE,, the separator is ,, and there are two channels.
- Received
$WAVE,1.5,2.0: Channel 1 is 1.5, and Channel 2 is 2.0. - Received
$WAVE,1.5,abc: Channel 1 is 1.5, and Channel 2 has a missing value at that point. - Received
$ECHO,1.5,2.0: The prefix does not match, so the data is ignored.
Variable Rendering
Click the Variable button to open the Variable rendering settings window. Check Enable variable mode to turn it on. The plugin then reads the current value of each checked variable directly and no longer parses the received text.
- The list shows numeric variables only. Boolean and string variables are not listed. At least one variable must be checked before you can turn variable mode on.
- While variable mode is on, the list is locked. Turn off Enable variable mode before you change the checked variables.
- The channel order follows the variable list from top to bottom.
- Each channel name changes to the variable name, and the name field is read-only. You can still change the color, unit, Show this channel, and data scale.
- The number of channels equals the number of checked variables. You cannot add or remove channels in Channel Settings, and the 1 to 10 limit does not apply.
- Refresh mode has two options:
- Refresh on receive (default): Reads the variables each time data is received. The timestamp is the time the device received the data.
- Timed refresh: Reads the variables at the refresh interval, which ranges from 10 to 99999 ms and defaults to 100 ms. The timestamp is the system time when the variables are read.
Channel Settings
Click the Channels button to open the Channel Settings window. The list on the left shows the channels, and the Add and Delete buttons change the number of channels. The panel on the right edits the selected channel.
- The number of channels ranges from 1 to 10. The default is one channel, named "Channel 1". When the maximum or minimum is reached, the matching button is disabled.
- Name: If the field is empty, the channel is shown as "Channel N".
- Unit: Shown in the legend and lane titles in the form "name (unit)".
- Color: The color of the curve and its legend entry. Click Select color to change it.
- Visibility: Clear Show this channel to hide the channel. A hidden channel is marked "(hidden)" in the list. It is not drawn and does not take a lane, but it still receives and records data. When you show it again, its full history is visible.
- Data scale: The value is multiplied by this factor before it is shown, exported, or recorded. The range is 0.001 to 1000, and the default is 1.0. Scaling does not change the stored raw values, and it takes effect immediately. Values already written to a recording keep the factor that was applied when they were written.
- The Data Waveform has no range settings. The Y axis scales to the data automatically. For manual adjustment, see Zoom, Pan, and Follow.
- Values are matched to channels by position. When you add a channel, the new column in the existing history is filled with missing values. When you remove a channel, the last column in the history is dropped, and all Y axes return to auto-scaling.
Display
The display area shows the curves, axes, and status information.
- Overlay mode (default): A legend appears at the top left of the display area, with one entry per channel in the form "name (unit)". Hidden channels are drawn in a faded color.
- Lane mode: There is no legend. Each lane shows its channel name and unit in its top left corner.
- The Y axis scales to the data in the visible time window by default, with a 10% margin above and below.
- Time axis tick labels adjust to the width of the time window. When the window spans two dates, the labels show the month and day.
- When there is no data, "No data" appears in the center of the display area.
Toolbar
From left to right, the toolbar contains these buttons.
| Icon | Button | Description |
|---|---|---|
| Import | Choose a CSV, TXT, or ZIP file and import it. The plugin then enters review mode and shows the imported data. See CSV Import and Export. | |
| Export | Opens a menu with Export all data… or Export visible range…, then saves the data as a CSV file. The exported values are scaled values. | |
| Record | Opens a menu with Save CSV in real time… or Save and compress to ZIP in real time… to start recording. While recording, the menu shows only Stop recording, and the button stays selected. See Live Recording. | |
| Channels | Opens the Channel Settings window to edit each channel's name, unit, color, visibility, and data scale. | |
| Points | Checkable. When selected, data points are drawn on the curves. See Data Points. | |
| Lanes | Checkable. When selected, the plugin switches to lane mode, and each visible channel gets its own lane. Click again to return to overlay mode. See Lane Mode. | |
| Follow | Checkable. When selected, the time window stays at the latest data, and it jumps there immediately. Dragging or zooming away from the latest data clears the selection. Not available in review mode. | |
| Review | Checkable. When selected, the current data is frozen and no new data is received. You can still zoom and pan. Click again to leave review mode. See Review Mode. | |
| Reset | In live mode, the time window returns to the latest 30 seconds and follows the newest data. In review mode, the time window shows all data. In both modes, the Y axes return to auto-scaling. | |
| Clear | Clears the live data. While imported data is shown, it closes the imported data and returns to live mode. | |
| Time Base | Checkable. When selected, Δt mode is active. Click to open the Time axis mode window, where you can choose Receive time (default) or Δt mode, and set Milliseconds per cell. See Time Axis Mode. | |
| Variable | Checkable. When selected, variable rendering is on. Click to open the Variable rendering settings window. See Variable Rendering. | |
| Text | Checkable. When selected, text split is on. Click to open the Text split settings window. See Data Source. | |
| Help | Opens this plugin's online help page in your browser. |
The toolbar also has one control that is not a button:
- Control: The time range slider between Record and Channels. It covers the full time range of the data and is used to position and zoom the time window. See Zoom, Pan, and Follow.
Time Axis Mode
The Time Base button is selected when Δt mode is active. Click the button to open the Time axis mode window. It has these options.
- Receive time (default): The X axis shows the date and time when the device received the data.
- Δt mode: Each data point takes one cell. The X axis shows milliseconds equal to "point index × milliseconds per cell", and "ms" is labeled at the bottom left of the axis. Milliseconds per cell defaults to 1.0. The range is 0.000001 to 10000, with up to 6 decimal places. Changing it updates the axis immediately, and existing data is kept. Use Δt mode when packets arrive so densely that data points at the same moment overlap and distort the waveform.
Keep these rules in mind.
- Switching the mode clears the current data.
- You cannot switch the mode, or change Milliseconds per cell, while recording or reviewing.
- When variable rendering is on, only Receive time can be used. If you turn on variable rendering in Δt mode, the plugin switches back to receive time, clears the data, and stops recording. A message explains the change.
Zoom, Pan, and Follow
- Zoom in time: Scroll the mouse wheel over the display area. The time window zooms around the time under the cursor.
- Zoom the Y axis: Scroll over the Y-axis area, which is the scale area on the left of the display area. This zooms the axis under the cursor. In lane mode, only the lane under the cursor is affected.
- Pan: Hold the left mouse button and drag. Horizontal dragging pans the time window. Vertical dragging pans the Y range of the lane where you pressed. When the Y axis is auto-scaling, the vertical movement must exceed 4 pixels before the axis starts to pan.
- Auto-scale: After you zoom or pan a Y axis, that axis uses a fixed range and no longer follows the data. Click Reset to restore auto-scaling.
- Slider: The time range slider on the toolbar covers the full time range of the data. Drag either handle to move that edge of the window. Drag the middle area to move the whole window. Scroll the wheel over the slider to zoom the window. Hovering over a handle shows the time at that position, and the month and day appear when the data spans several days. Double-clicking a handle does not open a value input box, because the slider shows times instead of numbers.
- Follow: When the right edge of the window is at the latest data, the window follows new data. Dragging or zooming so that the right edge leaves the latest data pauses following. In live mode, click Follow or Reset to resume. Following is always off in review mode.
Cursor
When the mouse moves over the display area, a dashed vertical line appears and snaps to the nearest data point. The card next to the line shows the time of that point on its first line, as "t = X ms" in Δt mode. Each visible channel gets its own line with its scaled value and unit. A missing value appears as --. When the card would run past the right edge, it moves to the left of the line.
Data Points
Click Points to draw a marker on each data point. Markers are drawn only when neighboring points are far enough apart. They are not drawn when there is too much data to show individual points.
Lane Mode
Click Lanes to switch to lane mode.
- Each visible channel takes its own lane. Each lane has its own Y axis, and all lanes share one X axis. Hidden channels do not take a lane.
- The lanes divide the display area's height evenly. When there are many channels, the lanes get shorter, and the tick labels and titles shrink to fit. Each lane is at least about 24 pixels tall. If the channels do not fit even at that height, the plugin area shows a vertical scroll bar.
- Switching the display mode returns all Y axes to auto-scaling.
- Click Lanes again to return to overlay mode.
Review Mode
Click Review to freeze the current data. The plugin stops receiving new data, but you can still zoom and pan. A badge at the top right of the display area reads "Review (receiving paused)". Click Review again to leave review mode and resume receiving data.
Importing a file enters review mode automatically, and the badge reads "Review (imported data)". While imported data is shown, Follow, Variable, Text, and Record are unavailable. Clear closes the imported data and returns to live mode. The channel settings then go back to what they were before the import.
CSV Import and Export
Export
- Click Export, then choose Export all data… or Export visible range….
- Choose a save location. The default file name is
chart_yyyyMMdd_HHmmss.csv. - When the export finishes, a message shows the number of rows and the file path.
The exported file has the following format.
- The encoding is UTF-8 with a BOM.
- The first column is time. In receive time mode, the header is
时间(the Chinese word for "time"), and the values look like2026-11-04 09:30:12.345. In Δt mode, the header isΔt(ms), and the value is "point index × milliseconds per cell" with 6 fixed decimal places. A file uses only one time format. - Each channel has one more column. The header is
Name(unit), and the brackets are omitted if the unit is empty. If the data scale is not 1,[x factor]is added to the header, for example温度(℃)[x0.1]. - Values are the scaled values. A missing value is an empty cell.
Import
- Click Import, then choose a CSV, TXT, or ZIP file.
- For a ZIP file, the plugin extracts the first CSV or TXT file in the archive to a temporary folder and deletes it after the import. If the archive contains several CSV files, a message says that only the first one was imported.
- After the import, the plugin enters review mode and shows the imported data. Channels come from the columns in the file. Names and units come from the header, and colors are assigned automatically.
- Close review mode or click Clear to return to live mode. The channel settings then go back to what they were before the import.
The plugin detects the delimiter automatically. It checks comma, semicolon, and tab, and picks the one that appears most often in the first line. A tie goes to the comma. It then decides whether the first column is a time column:
- The header contains "Δt" or "dt(ms)": Import in Δt mode. Milliseconds per cell is the difference between the first column of the first two rows. If there is only one row, or the difference is not positive, it is 1.0. This rule takes priority over the value rules below.
- The first value is at least 1e11: read as Epoch milliseconds. At least 1e9: read as Epoch seconds.
- The header has a separate ms unit, such as "时间(ms)", and the value is less than 1e9: Import in Δt mode.
- The header contains "时间", "time", or "date", or equals "ts", and the value is less than 1e9: read as seconds since midnight of the current day.
- The text looks like
yyyy-MM-dd HH:mm:ss[.zzz]orHH:mm:ss[.zzz]: read as a date and time. For a time without a date, the value moves on to the next day after midnight. - None of the above: the first column is treated as a normal value channel.
If the file has no time column, each row gets a time 100 ms after the previous row.
An import reads at most 1,000,000 frames. Any extra data is cut off, and the message after the import says so.
Live Recording
Click Record and choose a method from the menu. While recording, the menu shows only Stop recording, and the button stays selected.
- Save CSV in real time…: Data is appended to a CSV file as it arrives, in the same format as export. The default file name is
chart_record_yyyyMMdd_HHmmss.csv. - Save and compress to ZIP in real time…: Data is first written to a temporary
.csv.tmpfile with the same base name as the ZIP. When the file is full, or recording stops, the file is compressed in the background into the ZIP. After a successful compression, the.csv.tmpfile is deleted. If compression fails, the.csv.tmpfile is kept and a message appears. - Compression level: Fast (1), Standard (6, default), or Best (9). A higher level makes a smaller file but takes longer. The level applies the next time recording starts.
- Stop recording: Ends recording, and the Record button is deselected.
Other rules for recording are listed below.
- Recording runs on a background thread, so the interface is not affected. Values are written after they are multiplied by the data scale.
- A recording is not limited by the 1,000,000-frame cache, but each file holds at most 1,000,000 frames. When a file is full, a new file starts. The frame number of its first frame is added to the file name before the extension, for example
data.csv,data_1000001.csv, anddata_2000001.csv. In ZIP mode the names aredata.zip,data_1000001.zip, and so on. Each file has its own header row. - If you add a channel during recording, the file gets a new column and an updated header. Earlier rows have an empty value in that column. Removing a channel does not remove its column, and later rows leave it empty.
- Time Base and Milliseconds per cell are locked during recording.
- While in review mode, the plugin receives no data, so no rows are added. You cannot start recording while imported data is shown.
- When free disk space drops below 1 GB, recording stops automatically. Data already written is kept, and in ZIP mode the file is still compressed. If free space is already below 1 GB when recording starts, recording does not start.
- When you exit the program, the plugin waits for background compression to finish.
Notes
- All data is kept in memory, up to the most recent 1,000,000 frames. When the limit is reached, the oldest data is discarded, and the window moves left with the data. To keep the full history, use Record.
- When there is far more data than pixels, each pixel column draws only its minimum and maximum value. This keeps zooming smooth with a large amount of data, and peaks are not lost.
- Entering variable mode sets the number of channels to the number of checked variables, and extra channels are deleted. When you leave variable mode, channels beyond the number you had before are deleted, and deleted channels are not restored.
- If both Text Split and Variable Rendering are off, the plugin splits the received text by English commas.
