---
title: "Data Layer Reference"
description: "All Data Layer nodes of LumiScan Script Runner: system and HALCON engine nodes, licences, interface functions, module status, run handshake, script data."
product: "LumiScan Script Runner"
component: "lumiscan-script-runner"
version: "1.0.0"
display_version: "1.0.0.2"
latest_version: true
language: "en"
url: "https://docs.hdvisionsystems.com/en/lumiscan-script-runner/datalayer-reference.html"
---

# Data Layer Reference – LumiScan Script Runner

All nodes are under `hdvisionsystems/lumiscan-script-runner/`. The app serves API version 1 only: everything but `api-version` is under `v1/`.

## Node tree

```
hdvisionsystems/lumiscan-script-runner/
  api-version                         UINT32, read-only: 1
  v1/
    system/
      settings                        the application file (JSON); writable, see below
      restart-required                BOOL8, read-only
      status-text                     STRING, read-only
      scripts                         STRING (JSON), read-only
      modules                         STRING (JSON), read-only
      groups                          STRING (JSON), read-only
      engine/
        version                       STRING, read-only
        license-valid                 BOOL8, read-only
        licensed-modules              ARRAY_OF_STRING, read-only
        edition, revision, arch       STRING, read-only
        library, halcon-root          STRING, read-only
      licenses/
        current/
          file, type, version         STRING, read-only
          valid                       BOOL8, read-only
          error-text                  STRING, read-only
          modules                     ARRAY_OF_STRING, read-only
          expiration-date, host-id    STRING, read-only
        files                         ARRAY_OF_STRING, read-only
      interface-scan/                 build an interface file, see Interface File
      interface-set-parameter/        each: request, ready, running, done, has-error,
      interface-load/                   input/procedure (STRING) and further STRING inputs,
      interface-export/                 output/status-code, status-text, package-identifier
      interface-save/                   and, but for interface-discard, output/interface (JSON)
      interface-discard/
    <module>/
      status/
        code                          INT32, read-only
        text                          STRING, read-only
      run/                            not for trigger "start"
        request                       BOOL8, written by the client
        ready, running, done, has-error   BOOL8, read-only
        input/
          <parameter>                 one node per value input on a node
          <image>/data, width, height, pixel-type
        output/
          status-code                 INT32, read-only
          status-text                 STRING, read-only
          package-identifier          UINT64, read-only
          <parameter>                 one node per value output on a node, read-only
          <image>/data, width, height, pixel-type
      setting/
        procedure, group, trigger     STRING, read-only
        bindings                      STRING (JSON), read-only
      script/
        interface                     STRING (JSON), read-only
        interface-source              STRING, read-only
        interface-hash                STRING, read-only
        accepted-interface-hash       STRING, read-only
        procedure-hash                STRING, read-only
        required-modules              ARRAY_OF_STRING, read-only
```

## `v1/system/`

| Node | Type | Content |
| --- | --- | --- |
| `settings` | JSON | The application file. Writing it checks the new content (the same checks as at start), saves it and sets `restart-required`; a refused write leaves everything as it was. See [When changes take effect](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/settings-folder.html#changes). |
| `restart-required` | BOOL8 | `true` after the settings were changed: every module reports `-5` until the app is restarted. |
| `status-text` | STRING | The app’s state in words: `Initialized`; `the HALCON licence is not valid: …`; `No module configured: …`; or why it has to be restarted. |
| `scripts` | STRING (JSON) | The procedures of the script folder: file, procedure hash, interface hash, interface source and, for a procedure that did not load, the error. |
| `modules` | STRING (JSON) | Per module: group, procedure, trigger, state and both interface hashes. |
| `groups` | STRING (JSON) | Per group: its modules and the keys of its store. Never a value. |
| `engine/version` | STRING | HALCON’s version, for example `22.11.1.0`. |
| `engine/license-valid` | BOOL8 | `true` when HALCON’s licence is valid. |
| `engine/licensed-modules` | ARRAY_OF_STRING | The HALCON modules the licence covers. Empty without a valid licence. |
| `engine/edition`, `engine/revision`, `engine/arch` | STRING | HALCON’s edition (`steady`), maintenance revision (for example `4`) and architecture (`x64-win64`). |
| `engine/library` | STRING | The path of the `halcon.dll` the app loaded. |
| `engine/halcon-root` | STRING | The HALCON folder (`HALCONROOT`) as HALCON sees it. |
| `licenses/current/file` | STRING | The HALCON licence file in use. HALCON uses one licence: the file bound to this PC or to the plugged HALCON dongle. |
| `licenses/current/type` | STRING | `runtime` or `development`. |
| `licenses/current/valid` | BOOL8 | `true` when the licence in use is valid; the same as `engine/license-valid`. |
| `licenses/current/error-text` | STRING | HALCON’s own message when the licence is not valid; empty otherwise. |
| `licenses/current/version` | STRING | The HALCON release the licence is valid for, for example `22.11`. |
| `licenses/current/modules` | ARRAY_OF_STRING | The HALCON modules the licence covers; the same as `engine/licensed-modules`. |
| `licenses/current/expiration-date` | STRING | `permanent`, or the date the licence ends. |
| `licenses/current/host-id` | STRING | The PC or HALCON dongle the licence is bound to. |
| `licenses/files` | ARRAY_OF_STRING | Every licence file HALCON found. HALCON reports details only for the file in use. |
| `interface-scan/`, `interface-set-parameter/`, `interface-load/`, `interface-export/`, `interface-save/`, `interface-discard/` | functions | Build a procedure’s interface file over the Data Layer, with the same handshake as a module’s `run`. See [Building one over the Data Layer](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/interface-file.html#over-the-data-layer). |

## `v1/<module>/`

| Node | Type | Content |
| --- | --- | --- |
| `status/code`, `status/text` | INT32, STRING | The module’s state, see [Module state](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/status-codes.html#module-state). |
| `run/…` |   | The `run` function, see [The run Handshake](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/run-handshake.html). The input and output nodes follow the [Type Mapping](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/type-mapping.html); each node’s description holds the parameter’s description, unit, min, max and default, its display name is the parameter name. |
| `setting/procedure`, `group`, `trigger` | STRING | The module’s settings. `group` is the module’s own name when it has no group. |
| `setting/bindings` | STRING (JSON) | The module’s `inputs` and `outputs` bindings. |
| `script/interface` | STRING (JSON) | The interface the module uses, in the format of the [interface file](https://docs.hdvisionsystems.com/en/lumiscan-script-runner/interface-file.html), with `typeSource` per parameter. |
| `script/interface-source` | STRING | `documentation`, `interface-file` or `mixed`. |
| `script/interface-hash` | STRING | The current interface hash, `sha256:…`. |
| `script/accepted-interface-hash` | STRING | The accepted interface hash from the application file. |
| `script/procedure-hash` | STRING | The SHA-256 of the procedure file. |
| `script/required-modules` | ARRAY_OF_STRING | The HALCON modules the procedure needs, from its interface file. A module whose HALCON licence lacks one reports `-4`. |

A module that is not built (status `-10002`, `-10005`) keeps `status/`, `setting/`, `script/` and the fixed `run` nodes, but has no input or output parameter nodes.
