vi_run
Execute a LabVIEW VI with preset inputs and ordered front-panel actions, then read indicator values to test UI behavior or capture outputs.
Instructions
Run a VI and return its front-panel values afterwards.
inputs: {control label: value} set before running (clusters as lists in element order; enums by item name). outputs: labels to read back; default reads every top-level control and indicator. actions: operate the front panel while the VI runs, as a user would, in order: {"click": "Go"} press a button (works on latched buttons such as STOP) {"set": {"x": 21}} change controls; fires their Value Change events {"wait": 0.5} pause, in seconds {"read": ["y", "log"]} record values at this moment e.g. [{"set": {"x": 21}}, {"read": ["y"]}, {"click": "Go"}, {"click": "STOP"}] tests a UI end to end; the result's "actions" lists what each step did and read. A VI still running after timeout_s is aborted (typical for UI loops waiting on a Stop button). A modal dialog (a One Button Dialog, or LabVIEW's automatic error dialog for an unwired error in a VI that has automatic error handling on) blocks LabVIEW until someone answers it, and this call with it. VIs made by vi_create have automatic error handling off; in other VIs wire error outputs before running them. WARNING: executes code and may drive real hardware — only run VIs the user asked to run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "vi_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| inputs | No | ||
| actions | No | ||
| outputs | No | ||
| timeout_s | No |