Overview
The DBSim defaults setup file lets you pre-load values into ICD elements once, at CoreEngine startup, without
writing model code. It's configured via config.json's coredbSetup section:
{
"coredbSetup": {
"file": "./setups/coredbsetup.txt",
"active": true
}
}
The file can be either a plain text file or a JSON file — which format is used
is decided purely by the file's extension: a filename ending in .json (case-insensitive) is parsed
as JSON; anything else is parsed as text.
Text Format
One assignment per line:
lru.block.element=value
- Blank lines are skipped.
- Lines starting with
//or#are treated as comments and skipped.
value is auto-detected from its syntax:
| Syntax | Parsed as |
|---|---|
"text" (quoted) | String |
0x1A | Hex integer |
contains a ., e.g. 3.14 | Floating-point number |
digits only, e.g. 42 | Integer |
[1,2,3] | Array of integers |
// Comments start with // or #
LRU_FC.Status.Mode="Auto"
LRU_FC.Status.Timeout=250
LRU_FC.Status.Gain=1.5
LRU_FC.Status.Flags=0x0F
LRU_FC.SensorsData.Channels=[1,2,3,54]
Pasting Directly from DIPanel
This format is designed to accept a direct paste from DIPanel: select the rows you want
in the DI grid and press Ctrl+C, then paste the clipboard contents straight into the defaults file.
+,-:LRU.Block.Element=value). The loader automatically strips everything up to and including the last , or : before the element name, so a raw paste works without editing — you don't need to manually clean up the prefix.
JSON Format
A JSON array of objects, one per element:
[
{ "element": "LRU_FC.Status.Mode", "value": "Auto" },
{ "element": "LRU_FC.Status.Timeout", "value": 250 },
{ "element": "LRU_FC.Status.Gain", "value": 1.5, "scale": 10 },
{ "element": "LRU_FC.SensorsData.Channels", "value": [1, 2, 3, 54] }
]
| Field | Description |
|---|---|
element | Required. The element path, lru.block.element. |
value | Required. An integer, floating-point number, string, or an array of one of those types. |
scale | Optional. A numeric multiplier applied to value. |
Path Resolution
The path is used exactly as given in config.json (typically relative to the working directory, like other setup paths).
See CoreEngine Command-Line Arguments for the equivalent rules for command-line paths.