Data Layer Reference
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 |
|---|---|---|
|
JSON |
The application file. Writing it checks the new content (the same checks as at start), saves it and sets |
|
BOOL8 |
|
|
STRING |
The app’s state in words: |
|
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. |
|
STRING (JSON) |
Per module: group, procedure, trigger, state and both interface hashes. |
|
STRING (JSON) |
Per group: its modules and the keys of its store. Never a value. |
|
STRING |
HALCON’s version, for example |
|
BOOL8 |
|
|
ARRAY_OF_STRING |
The HALCON modules the licence covers. Empty without a valid licence. |
|
STRING |
HALCON’s edition ( |
|
STRING |
The path of the |
|
STRING |
The HALCON folder ( |
|
STRING |
The HALCON licence file in use. HALCON uses one licence: the file bound to this PC or to the plugged HALCON dongle. |
|
STRING |
|
|
BOOL8 |
|
|
STRING |
HALCON’s own message when the licence is not valid; empty otherwise. |
|
STRING |
The HALCON release the licence is valid for, for example |
|
ARRAY_OF_STRING |
The HALCON modules the licence covers; the same as |
|
STRING |
|
|
STRING |
The PC or HALCON dongle the licence is bound to. |
|
ARRAY_OF_STRING |
Every licence file HALCON found. HALCON reports details only for the file in use. |
|
functions |
Build a procedure’s interface file over the Data Layer, with the same handshake as a module’s |
v1/<module>/
| Node | Type | Content |
|---|---|---|
|
INT32, STRING |
The module’s state, see Module state. |
|
The |
|
|
STRING |
The module’s settings. |
|
STRING (JSON) |
The module’s |
|
STRING (JSON) |
The interface the module uses, in the format of the interface file, with |
|
STRING |
|
|
STRING |
The current interface hash, |
|
STRING |
The accepted interface hash from the application file. |
|
STRING |
The SHA-256 of the procedure file. |
|
ARRAY_OF_STRING |
The HALCON modules the procedure needs, from its interface file. A module whose HALCON licence lacks one reports |
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.