3fe919e37c
Move SKILL.md + references/ scripts/ evals/ from skills/halcon/ up to the plugin root. Per Claude Code plugins-reference, a plugin with SKILL.md at its root and no skills/ subdir is auto-loaded as a single-skill plugin (v2.1.142+), so the invocation name = frontmatter name = halcon → clean /halcon. Bump plugin.json 2.0.0 → 2.0.1 so existing installs receive the update. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
439 B
Python
11 lines
439 B
Python
"""Remote-control a .hdev program via HDevEngine: run it, read variables back."""
|
|
from halcon.hdevengine import HDevProgram, HDevProgramCall
|
|
|
|
program = HDevProgram("demo_prog.hdev")
|
|
call = HDevProgramCall(program)
|
|
call.execute() # runs the exact same code HDevelop would run
|
|
|
|
# pull any control variable back out by name
|
|
for name in ("Total", "Area", "RowC", "ColC", "Message"):
|
|
print(f"{name} =", call.get_control_var_by_name(name))
|