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.
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:
| Control | Purpose |
|---|---|
| Engine picker | Lists 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. |
| Status | Opens the Reports window (errors, warnings, info). |
| Profiler | Opens the Profiler window. |
| States Status | Opens the States Status window. |
| Core States | Opens the Core States window (models and drivers). |
| Engine flow | A 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 Monitoring | Open (add elements), Find, Clear, Open Graph, Open Image: see Monitoring & Injection and Graphs & Images. |
| Recording panel | Record / 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.
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.
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.
| Column | Purpose |
|---|---|
| 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. |
| LRU | The LRU the element belongs to. |
| Block | The block name. It is a button: click it to open the block properties (below). |
| Type | The ICD data type of the element. |
| Pos / Size | Raw byte position and size, as position:bytes (bits). |
| Element | The element name (arrays: one row per array index). |
| Units | The element's units, in brackets. |
| Value | The 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
- Type the value in the Value box (a name from the list for an enum).
- 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.
- 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. LikeDelete, it also switches off the injection of the removed rows in the engine. - Drag and drop a saved
.dinjfile onto the panel to load its element list directly. - Save the current element list (and the injection settings) to a
.dinjfile withCtrl+Sor 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).
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.
- Write the expression, for example
sin(freq) * 5 + offsetorrnd(0:1). The editor completes function and variable names. - 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.
- The dialog checks the expression and the variables (Valid, All variables assigned); OK is enabled when both are fine.
| Functions | Meaning |
|---|---|
Abs Acos Asin Atan Cos Sin Tan | Absolute value and trigonometry (radians) |
Ceiling Floor Round Truncate | Rounding |
Exp Pow Sqrt Max Min | Powers, roots, larger / smaller of two |
Rnd(min:max) | A new random number between min and max on every evaluation (for noise) |
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.
| Shortcut | Action |
|---|---|
Ctrl + F | Open the Find dialog. |
Ctrl + S | Save the current element list to a .dinj file. |
Ctrl + R | Refresh the display of every value. |
Ctrl + A | Mark all rows. |
Ctrl + D | Unmark all rows. |
Delete | Remove the marked rows from the grid. |
Ctrl + C | Copy the marked rows. |
Ctrl + X | Cut the marked rows. |
Ctrl + V | Paste rows from the clipboard. |
Ctrl + N | Start another DIPanel window. |
Ctrl + click a row | Toggle that row's mark. |
Ctrl + mouse wheel | Make the grid text larger or smaller. |
| Right-click a value | Display format, refresh, properties. |
| Drag & drop a file | Load 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).
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:
| Command | Description |
|---|---|
| Record / Stop | Start / 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. |
| Play | Play back a recording through the engine. |
| Open | Open an existing recording in the Recording Viewer. |
See the Recording guide for the CoreEngine-side recording configuration.
.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.
| Command | Description |
|---|---|
| 🔍 Find | Jump 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. |
| Export | Pack 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. |
| Import | Unpack 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 CSV | Write the recorded elements to CSV. |
| Dump → Dump Current time Info | Save the recording slice information at the current time to a .json file (default name dumpSlice.json). |
| Dump → Generate reader code | Create 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.
| Key | Does |
|---|---|
| ← / → | Previous / next record, the same as the ◀ ▶ buttons. |
| Home / End | First / 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:
| Column | Meaning |
|---|---|
| Name | The profiled component or task. |
| Current | Most recent measured duration. |
| Min / Max | Lowest and highest duration observed. |
| Average | Running 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 table | Drivers table |
|---|---|
| Model Name, Version, Minor Frame rate, Active, Priority, Cores | Stream Name, Driver Name, Version, Active (OK / Fail), Report (last error message) |
Fail is highlighted in red along with its last reported error, making connectivity
problems with hardware or the driver API layer immediately visible.