Status Codes
The Script Runner reports on two nodes per module:
-
v1/<module>/status/code(withstatus/text): the module’s state. Anything but0means the module accepts no request, andrun/readyisfalse. -
v1/<module>/run/output/status-code(withrun/output/status-text): the outcome of the last run. At the end of a run it is0or negative; while a run is going on it is2. A client that usesrunning,doneandhas-errorcan ignore the2.
The status text always says more: the parameter, the HALCON error, the key or the hash concerned.
Module state (status/code)
| Code | Name | Meaning and what to do |
|---|---|---|
ready |
The module is built and accepts requests. |
|
missingLicense |
A licence is missing: the HALCON runtime licence is not valid, or it does not cover a HALCON module the procedure needs (the text names it). See Troubleshooting. |
|
restartRequired |
The settings were changed over the Data Layer, or an interface file was saved with |
|
scriptNotLoaded |
The procedure is missing, did not load, or its interface cannot be mapped (the text names the parameter), or the module’s |
|
interfaceChanged |
The procedure’s interface hash is not the module’s accepted hash, or the module has no accepted hash yet. The text gives both hashes. Accept the current hash in the module’s |
Run outcome (run/output/status-code)
| Code | Name | Meaning and what to do |
|---|---|---|
|
ok |
The run succeeded; the outputs are written, |
|
running |
The run was acknowledged and is going on (or waits in its group’s queue). |
invalidInput |
An input failed its check before the procedure ran: missing or of the wrong kind, outside min and max, an image of an unknown or unaccepted pixel type or of the wrong size, or a handle from the store that is invalid or of the wrong kind. The text names the input. |
|
|
missingLicense |
HALCON refused an operator for licence reasons during the run, for example because the HALCON dongle was pulled. The module reports |
scriptError |
The procedure raised an error: its own |
|
outputTypeMismatch |
An output does not match the interface, or the procedure never set it. The text names the parameter, the declared and the returned type. No output is written. |
|
storeValueMissing |
An input bound to the group’s store found its key empty. The text names the key and the modules that write it. See Modules, Groups and the Store. |
On a failure has-error is true and no output node is written.