create
Builds LabVIEW constants, controls, or indicators—including arrays, clusters, numerics, Booleans, strings, enums, and typedef .ctl links—then set values with set_value.
Instructions
Create a constant, control or indicator, including arrays and clusters: elements of any number type, bool,
string or enum(a, b). U8, DBL[], cluster(I32, string),
cluster(DBL[], bool)[], DBL[][], or a typedef .ctl path (a constant linked to it). Builds the array/cluster shell and its
elements (labels <label>_e, <label>_0, <label>_1, ...). Set values afterwards with set_value fmt expr.
location x,y; front-panel objects (control/indicator) go on the panel's top level.
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": {
"vi_path": "<vi_path>",
"type": "<type>",
"location": "<location>",
"label": "<label>"
},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| what | No | constant | |
| label | Yes | ||
| vi_path | Yes | ||
| location | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |