flowrs-engine/e2e/fixtures/apps/rail_check.flowrs
flowRS fd958c0547 flowRS engine, cut from flowRS 3451b065
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 19:04:39 -05:00

147 lines
No EOL
2.8 KiB
Text

{
"format": 1,
"generator": "flowrs 0.1.0",
"nodes": [
{
"id": 0,
"type_id": "FloatLiteral",
"properties": {
"value": "3.0"
},
"position": [
60.0,
60.0
],
"group": null
},
{
"id": 1,
"type_id": "record.measure",
"properties": {
"limit": "range",
"lower": "3.135",
"name": "rail",
"unit": "V",
"upper": "3.465"
},
"position": [
280.0,
60.0
],
"group": null
},
{
"id": 2,
"type_id": "record.run",
"properties": {
"dut_id": "SN-42"
},
"position": [
500.0,
60.0
],
"group": null
},
{
"id": 3,
"type_id": "FloatLiteral",
"properties": {
"unit": "V",
"value": "3.31"
},
"position": [
60.0,
170.0
],
"group": null
},
{
"id": 4,
"type_id": "FloatLiteral",
"properties": {
"unit": "V",
"value": "3.0"
},
"position": [
60.0,
280.0
],
"group": null
},
{
"id": 5,
"type_id": "FloatLiteral",
"properties": {
"value": "24"
},
"position": [
60.0,
390.0
],
"group": null
},
{
"id": 6,
"type_id": "Linspace",
"properties": {},
"position": [
280.0,
170.0
],
"group": null
}
],
"wires": [
{
"id": 0,
"from_node": 0,
"from_port": "value",
"to_node": 1,
"to_port": "value",
"mode": "Copy"
},
{
"id": 1,
"from_node": 1,
"from_port": "measurement",
"to_node": 2,
"to_port": "m1",
"mode": "Copy"
},
{
"id": 2,
"from_node": 3,
"from_port": "value",
"to_node": 6,
"to_port": "start",
"mode": "Move"
},
{
"id": 3,
"from_node": 4,
"from_port": "value",
"to_node": 6,
"to_port": "end",
"mode": "Move"
},
{
"id": 4,
"from_node": 5,
"from_port": "value",
"to_node": 6,
"to_port": "count",
"mode": "Move"
}
],
"groups": [],
"widgets": {
"record.measure": "82af164fd2975744",
"record.run": "16d9031fa86984ed"
},
"app": {
"version": "1.0",
"library": "flowrs-app@1",
"source": "root = Stack([title, reading, verdicts])\ntitle = Heading(\"3.3 V rail check for SN-42\")\nreading = Card(\"Reading\", [Stat(\"Rail voltage\", n0.value, \"V\", null, null, 2, n6.values), NumberInput(\"Measured voltage\", $n0)])\nverdicts = Grid([Card(null, [Led(n1.pass, \"Rail in range\", \"Pass\", \"Fail\")]), Card(null, [Led(n2.pass, \"Run verdict\", \"Pass\", \"Fail\")])], 2)",
"title": "3.3 V rail check for SN-42"
}
}