69 lines
No EOL
2.3 KiB
Text
69 lines
No EOL
2.3 KiB
Text
{
|
|
"format": 1,
|
|
"generator": "flowrs 0.1.0",
|
|
"nodes": [
|
|
{
|
|
"id": 0,
|
|
"type_id": "StringLiteral",
|
|
"properties": {
|
|
"value": "Ada Lovelace"
|
|
},
|
|
"position": [
|
|
60.0,
|
|
60.0
|
|
],
|
|
"group": null
|
|
},
|
|
{
|
|
"id": 1,
|
|
"type_id": "StringLiteral",
|
|
"properties": {
|
|
"value": "PB-0001"
|
|
},
|
|
"position": [
|
|
60.0,
|
|
170.0
|
|
],
|
|
"group": null
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type_id": "instrument.station",
|
|
"properties": {
|
|
"units": "12"
|
|
},
|
|
"position": [
|
|
280.0,
|
|
60.0
|
|
],
|
|
"group": null
|
|
}
|
|
],
|
|
"wires": [
|
|
{
|
|
"id": 0,
|
|
"from_node": 0,
|
|
"from_port": "value",
|
|
"to_node": 2,
|
|
"to_port": "operator",
|
|
"mode": "Move"
|
|
},
|
|
{
|
|
"id": 1,
|
|
"from_node": 1,
|
|
"from_port": "value",
|
|
"to_node": 2,
|
|
"to_port": "serial",
|
|
"mode": "Move"
|
|
}
|
|
],
|
|
"groups": [],
|
|
"widgets": {
|
|
"instrument.station": "42cec78d24d7e403"
|
|
},
|
|
"app": {
|
|
"version": "1.0",
|
|
"library": "flowrs-app@1",
|
|
"source": "root = Stack([title, intro, who, kpis, steps, record, chain])\ntitle = Heading(\"Power board final test\")\nintro = Callout(\"info\", \"Simulated here, real when exported\", \"In the editor the DP832 and the DMM are simulated from the catalogue and the board is a twin. The exported program drives the real instruments and returns each to its safe state.\")\nwho = Card(\"The lot under test\", [entry])\nentry = Grid([operator, serial], 2)\noperator = TextInput(\"Operator\", $n0, \"Name or badge\")\nserial = TextInput(\"First serial\", $n1, \"Scan the first unit's label\")\nkpis = Grid([Card(null, [yield]), Card(null, [tested]), Card(null, [cpk])], 3)\nyield = Stat(\"First-pass yield\", n2.yield_pct, \"%\", null, null, 1)\ntested = Stat(\"Units tested\", n2.units, null, null, null, 0)\ncpk = Stat(\"Worst Cpk\", n2.cpk, null, null, null, 2)\nsteps = Card(\"Each step over the lot\", [stats, worst])\nstats = Fields(n2.steps, \"Readings\")\nworst = Label(n2.cpk_step, \"Least capable step\")\nrecord = Card(\"The record\", [lot, last])\nlot = Lamp(n2.pass, \"Lot\", \"Every unit passed\", \"Not every unit passed\", \"pass\")\nlast = Label(n2.last_verdict, \"Last unit\")\nchain = Card(\"Audit chain head\", [head])\nhead = CodeBlock(n2.audit_head)"
|
|
}
|
|
} |