Skip to content

99cz99/cli-anything-labview

Repository files navigation

cli-anything-labview

CLI harness for NI LabVIEW 2025 — control LabVIEW from the command line via ActiveX/COM automation.

License Python Platform

Quick Install

git clone https://github.com/99cz99/cli-anything-labview.git
cd cli-anything-labview
pip install -e .
cli-anything-labview status check

What It Does

Group Capability
project Create, open, save LabVIEW project definitions
vi Open, close, create, save, find, inspect VIs
control Read/write front panel control/indicator values
run Execute, stop, and monitor VIs; I/O passthrough
build Define and manage build specifications
session Stateful undo/redo (50-level stack), persistence
status Verify LabVIEW installation and COM connectivity

Supports both one-shot commands (for scripting/CI) and an interactive REPL mode.

Quick Examples

# JSON output for scripting
cli-anything-labview --json status check

# Find all VIs recursively
cli-anything-labview vi find "E:\labview\LabVIEW 2025\examples" -p "*.vi"

# Create a project, add a VI, save
cli-anything-labview project new -n "MyProject" -o project.json

# Read/write front panel controls
cli-anything-labview control set "path/to/vi.vi" "input" 3.14
cli-anything-labview control get "path/to/vi.vi" "result"

# Interactive REPL
cli-anything-labview

Requirements

  • Windows (ActiveX/COM is Windows-only)
  • Python 3.10+ with pywin32>=300, click>=8.0
  • LabVIEW 2025 with ActiveX Server enabled
  • For dev: pip install -e ".[dev]" (adds pytest)

Architecture

CLI Layer (labview_cli.py)    ← Click groups, JSON output, REPL
Core Layer (core/*.py)        ← project, vi, control, run, session, export
Backend Layer (utils/*.py)    ← ActiveX/COM (primary) + subprocess (fallback)

Full docs: CLAUDE.md · LABVIEW.md · README (package)

Tests

# Unit tests (no LabVIEW required)
pytest cli_anything/labview/tests/test_core.py -v

# Full suite
pytest cli_anything/labview/tests/ -v

# Force installed-command mode
CLI_ANYTHING_FORCE_INSTALLED=1 pytest cli_anything/labview/tests/ -v -s

56 tests, 100% pass rate. See TEST.md.

License

Apache License 2.0 — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages