Overview

DIPanel is a standalone desktop application that connects to a running CoreEngine and monitors or injects values directly into its coredb — the ICD-generated shared memory database produced by DBSimGenerator. It attaches over shared memory to a specific CoreEngine instance, selected from a live picker, and works the same whether that instance is running locally or is being mirrored in through the Reflector app.

Because DIPanel talks to shared memory rather than to a specific machine, it doesn't need to know or care whether the CoreEngine it's attached to is local or reflected from a remote system.

What you can do with it:

  • Watch any ICD element live, in decimal, hexadecimal, binary or as an enum name.
  • Inject a fixed value, or a value calculated from a formula of other elements, into the running engine.
  • Plot elements in graph windows and look at image buffers in image windows.
  • Control the engine (Reset, Init, Play / Pause, Step) and see its state.
  • Record selected blocks and play them back step by step in the Recording Viewer.
  • Diagnose with the report, profiler and state windows.

Main Window

The top bar holds the engine picker, the diagnostic windows, the engine control and the data and recording tools:

ControlPurpose
Engine pickerLists the CoreEngine instances running on this computer (or reflected in). Pick the one DIPanel attaches to; its project's ICD (LRU-*.json in the engine's setups folder) is loaded. Kill terminates the selected engine.
StatusOpens the Reports window (errors, warnings, info).
ProfilerOpens the Profiler window.
States StatusOpens the States Status window.
Core StatesOpens the Core States window (models and drivers).
Engine flowA state light and tick counter (Reset, Initialized, Running, Step, Paused) with the buttons Reset, Init, Play / Pause and Step. They send the matching control: command to the selected engine.
Data Inject MonitoringOpen (add elements), Find, Clear, Open Graph, Open Image: see Monitoring & Injection and Graphs & Images.
Recording panelRecord / Stop, the ▼ selection list, Play and Open: see Recording. It is enabled when an engine is selected.

File menu: Open... / Save... an element list (.dinj), Open Image (show an image file), Theme, About (version), Exit. When the window is narrower than about 1580 pixels the toolbar folds into a menu bar: File, Sim Control (Reset, Init, Play, Step, Stop), Data Injection, Recording and Misc, with the engine state and the recording panel underneath.

Press Ctrl + N to start another DIPanel window, for example to watch a second engine. Window position and size, the theme and the column layout of the grid are remembered. .dinj, .dimg, .digr and .dirz files are associated with DIPanel: opening one starts DIPanel with it.
If the ICD file in the engine's setups folder is not the version the engine was built with, DIPanel reports a coredb version mismatch when you select the engine: regenerate or copy the right LRU-*.json before trusting the values.

1. Monitoring & Data Injection

The main panel is a live grid of ICD elements, one row per element. It is refreshed at the engine's refresh rate. Use Open (Add Elements to DI) to pick elements: choose the LRU and block, tick the elements (the list shows each element's units) and press Add. One add is limited to 2000 elements; a larger selection asks whether to cut it.

ColumnPurpose
Inject (Raw / Eng)Two independent check boxes per element: inject the raw wire value, the engineering (scaled / converted) value, or both. They are written into the engine as long as they are ticked.
LRUThe LRU the element belongs to.
BlockThe block name. It is a button: click it to open the block properties (below).
TypeThe ICD data type of the element.
Pos / SizeRaw byte position and size, as position:bytes (bits).
ElementThe element name (arrays: one row per array index).
UnitsThe element's units, in brackets.
ValueThe live value. Type a new value to inject it; an enum element is a drop-down list of its names.

Columns can be resized and reordered by dragging the header; the layout is saved when DIPanel closes. Large elements stored as one buffer (for example an image) are shown in a byte viewer inside the row instead of a text box.

Injecting a value

  1. Type the value in the Value box (a name from the list for an enum).
  2. Tick Eng to inject the engineering value, Raw to inject the raw value, or both. From then on DIPanel writes the value to the engine on every refresh and the box is no longer overwritten by the live value.
  3. Untick to go back to monitoring. A value the element cannot take is cleared and the box turns light blue.

A 🛠 button appears next to the value of a ticked element: it opens the formula injection dialog.

Display formats and properties

Right-click a value to choose how it is shown:

  • Decimal, Hexadecimal (1Ah) and Binary (00011010b) display, padded to the element's size in bits.
  • Enum number display (enum elements): show the enum's number instead of its name.
  • Refresh display (Ctrl + R): redraw every value, for example after changing the format.
  • Properties: the block properties window (same as clicking the block name).

The block properties window shows the block's enum values, its stream block properties and the properties of the stream that carries it (from streams.json). Send Once asks the engine to send the block through its stream one time, for example to push injected values out to the device without waiting for the stream's own rate.

Element lists

  • Find (Ctrl + F) — search the grid by element name, case sensitive or not, with Find Prev / Find Next.
  • Clear — remove the selected rows (Ctrl + click, Ctrl + A), or every row when none is selected. Like Delete, it also switches off the injection of the removed rows in the engine.
  • Drag and drop a saved .dinj file onto the panel to load its element list directly.
  • Save the current element list (and the injection settings) to a .dinj file with Ctrl + S or File → Save..., and reload it later with File → Open.... A list opened before the engine has started waits for it (a dialog lets you stop waiting).
Selected rows copied with Ctrl+C can be pasted directly into a DBSim defaults setup text file — the loader strips DIPanel's injection-type prefix automatically.

2. Formula Injection

Instead of one fixed value, an injected element can follow a formula: DIPanel evaluates it on every refresh and injects the result. Tick Raw or Eng for the element, then press its 🛠 button.

  1. Write the expression, for example sin(freq) * 5 + offset or rnd(0:1). The editor completes function and variable names.
  2. Every name that is not a function becomes a variable in the list under the editor. Pick an ICD element for each one: its live engineering value is read from the engine and used in the formula.
  3. The dialog checks the expression and the variables (Valid, All variables assigned); OK is enabled when both are fine.
FunctionsMeaning
Abs Acos Asin Atan Cos Sin TanAbsolute value and trigonometry (radians)
Ceiling Floor Round TruncateRounding
Exp Pow Sqrt Max MinPowers, roots, larger / smaller of two
Rnd(min:max)A new random number between min and max on every evaluation (for noise)
The formula runs inside DIPanel, so the value is injected only while DIPanel is open, the element's box is ticked and the engine is selected. The result is written as an integer for integer elements.

3. Keyboard & Mouse Shortcuts

A plain click on a row does not mark it. Mark rows with Ctrl + click, or Ctrl + A for all rows; marked rows are the ones copy, cut and delete act on.

ShortcutAction
Ctrl + FOpen the Find dialog.
Ctrl + SSave the current element list to a .dinj file.
Ctrl + RRefresh the display of every value.
Ctrl + AMark all rows.
Ctrl + DUnmark all rows.
DeleteRemove the marked rows from the grid.
Ctrl + CCopy the marked rows.
Ctrl + XCut the marked rows.
Ctrl + VPaste rows from the clipboard.
Ctrl + NStart another DIPanel window.
Ctrl + click a rowToggle that row's mark.
Ctrl + mouse wheelMake the grid text larger or smaller.
Right-click a valueDisplay format, refresh, properties.
Drag & drop a fileLoad a .dinj element list onto the panel.

4. Graphs & Images

Open Graph and Open Image in the toolbar pick elements with the same element picker as Add Elements to DI and open a dedicated Graph window (live time-series plot, several elements in one plot) or, for image-type elements, an Image window (live rendered view).

Recorded playback: the same Graph and Image views work against a played-back recording, not just a live engine — open a recorded element from the Recording Viewer to plot its recorded history on a graph, or step through its recorded frames in an image viewer, exactly as you would while watching it live.

Graph window: File → Open... / Save... keeps the layout (which elements are shown, window position) in a .digr file; Reset clears the plot, an auto scale option fits the vertical range, Buffer Array Size sets how many samples are kept and Sampling interval (ms) how often a sample is taken.

Image window toolbar: Type = how the element's bytes are read: grayscale 2 / 8 / 16 bits, 16 bits (565), YUV422_8 (grey or colour), 24 / 32 bits, Mono8 (1 byte per pixel), Mono16 (16-bit little endian), YU12 (planar YUV 4:2:0, I420); Width / Height = the image size in the buffer (the window shows up to 512 x 512 of it). Stretch spreads the pixel values from the darkest to the brightest of the shown image over black..white: use it when an image looks flat grey because its values use only a small part of the range (e.g. a 16-bit sensor with 12-bit data). Save writes a .dimg file with the element, the window, the Type, format, size and Stretch; opening it restores all of them (older .dimg files keep only the bit depth). File → Open Image in the main window shows an image file from disk.

5. Recording

The recording panel controls capturing and replaying simulation data. It is enabled when an engine is selected:

CommandDescription
Record / StopStart / stop recording the selected items to disk. The text beside it shows Idle, Recording... and the recorded size.
▼ (Select)Open the recording selection list (choose what to record): search for an LRU or block and pick it.
PlayPlay back a recording through the engine.
OpenOpen an existing recording in the Recording Viewer.

See the Recording guide for the CoreEngine-side recording configuration.

Recordings split over several drives: open the session folder of drive 0; the Recording Viewer finds the other drives (also when the folders were copied together to another place) and shows the items merged. Export / Import (.dirz) includes the other drives, and the LRU-*.json is searched in the recording folder or the folders above it. A message warns when the LRU-*.json is not the version the recording was made with, or when a drive folder is missing. See Playing a copied recording.

6. Recording Viewer

The Recording Viewer opens a recording without a running engine. Start it with the recording panel's Open, with File → Open folder (the session folder), or by opening a .dirz file. It has:

  • a list of the recorded items with a time graph next to it: one row per item, a mark for every recorded record. Mouse wheel zooms around the pointer, a double-click moves the current time there;
  • a time slider with step buttons ◀ ▶ (one record per click; hold a button for 1 second and the time keeps moving, about 20 records a second, until you let go) and the times Current, Delta (to the previous record) and Next;
  • the element panel showing the values of the selected record (Graph and Image windows can be opened from its rows, as in the live panel);
  • a raw / hex viewer with the bytes of the selected record.
CommandDescription
🔍 FindJump to the next record of the selected item where a condition is true (that record itself, even when it is in the same millisecond as the current one), wrapping at the end: an Element (an ICD element) or Raw bytes (position, size) that Is true for an expression in x (for example x > 10) or When changed. A message tells when nothing was found.
ExportPack a recording into one .dirz file. The folder picker opens in the session shown now. A list of the files to pack follows, all checked: uncheck what to leave out (Select all / Select none; the ICD LRU-*.json and directory.json are always packed). The ICD is the one the viewer is using; when the recording is under its folder, the other .json files there (for example streams.json) are offered too. Items whose files you left out are removed from the packed directory.json, so the unpacked recording opens without them. Files the viewer has open are packed too. A failed export leaves no partial file.
ImportUnpack a .dirz into a folder you choose and open it. Opening a .dirz file from the file manager unpacks it into a temporary folder that is deleted when the Recording Viewer closes.
Dump → Export to CSVWrite the recorded elements to CSV.
Dump → Dump Current time InfoSave the recording slice information at the current time to a .json file (default name dumpSlice.json).
Dump → Generate reader codeCreate a small project that reads the recording from your own program: choose C++ or C# and an output folder. The project comes with the ICD of the recording, and a MATLAB / Octave reader (RecordingReader.m and RecordingReaderExample.m) is created next to it for either choice.

Keyboard

The keys work while the focus is anywhere in the Recording Viewer, except in a text box. Hold a key down to repeat it.

KeyDoes
← / →Previous / next record, the same as the ◀ ▶ buttons.
Home / EndFirst / last record of the selected item (the start / end of the recording when no item is selected).
↑ / ↓Previous / next item in the list of recorded items.

A step always moves by one record, also when several records fall in the same millisecond: the slider then stays on that millisecond while the record changes. Moving the slider or double-clicking the time graph goes to the record nearest to that time.

7. Reports

The Reports window (the Status button) displays the CoreEngine's runtime reports as they're generated — errors, warnings, and info messages — with each category color-coded. The Filter menu turns each category (Info, Warnings, Errors, States, Tests) on or off so you can focus on just the errors, or see everything at once; Find searches the text and File → Save writes the report to a file.

8. Profiler

The Profiler window shows live performance metrics for CoreEngine components (models, drivers, tasks); Reset restarts the measurements in the engine:

ColumnMeaning
NameThe profiled component or task.
CurrentMost recent measured duration.
Min / MaxLowest and highest duration observed.
AverageRunning average duration.

The recorder and the StorageDriver publish their own rows (Recording ..., Playback ..., Storage <stream> ...) with rates, ring fill and drop counts in these columns: see Runtime performance report. Yellow = a new problem (drops, late data), red = write errors.

9. States Status

The States Status window gives a graphical, color-coded view of every state controller's activity, organized into tabs. Each entry is colored by what it represents:

  • Switch to — a state transition (green)
  • Waiting for — a state waiting on a condition (yellow highlight)
  • Warning — a state-reported warning (yellow)
  • Error — a state-reported error (red highlight)
  • Info — general informational messages (blue)

10. Core States

The Core States window shows the health of the CoreEngine's own Models and Drivers at a glance:

Models tableDrivers table
Model Name, Version, Minor Frame rate, Active, Priority, Cores Stream Name, Driver Name, Version, Active (OK / Fail), Report (last error message)
A driver reporting Fail is highlighted in red along with its last reported error, making connectivity problems with hardware or the driver API layer immediately visible.