vi_test
Run a LabVIEW VI across multiple input cases, compare outputs to expected values, and return pass/fail summaries with mismatch details.
Instructions
Test a VI against many input sets at once: run it once per case and compare the outputs. cases: [{"name": "zero gain", "inputs": {"Gain": 0, "x": 5}, "expect": {"y": 0}}, {"inputs": {"x": [1, 2]}, "expect": {"sum": 3.0, "mean": 1.5}, "tol": 1e-6}, ...] Numbers match within tol (relative to the expected value, at least absolute tol), arrays and clusters (lists) element by element, strings and booleans exactly. Returns "summary" ("9/10 cases passed") and per case "passed" with the mismatches (expected vs got) or the error. Same rules as vi_run: it executes code; only test 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>",
"cases": "<cases>"
},
"name": "vi_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tol | No | ||
| path | Yes | ||
| cases | Yes | ||
| timeout_s | No |