Download data/blocks/_backup/CMSCOPE.json from notsn/XCos_MCP: direct link, hf CLI and curl.
- Browser
- Download file 5.46 kB
-
https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/blocks/_backup/CMSCOPE.json
- Command line
-
hf download hf://spaces/notsn/XCos_MCP/data/blocks/_backup/CMSCOPE.json
-
curl -L -o CMSCOPE.json https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/blocks/_backup/CMSCOPE.json
5.46 kB
| { | |
| "name": "CMSCOPE", | |
| "description": "Multi-channel scope - displays multiple signals on same axis with color differentiation", | |
| "category": "Sinks/Visualization", | |
| "blockType": "c", | |
| "tag": "BasicBlock", | |
| "interfaceFunctionName": "CMSCOPE", | |
| "simulationFunctionName": "cmscope", | |
| "simulationFunctionType": "C_OR_FORTRAN", | |
| "dependsOnU": 1, | |
| "dependsOnT": 0, | |
| "geometry": { | |
| "width": 40, | |
| "height": 40 | |
| }, | |
| "parameters": { | |
| "exprs": { | |
| "type": "ScilabString", | |
| "height": 11, | |
| "width": 1, | |
| "values": [ | |
| "1 1", | |
| "1 3 5 7 9 11 13 15", | |
| "-1", | |
| "[]", | |
| "[]", | |
| "-1 -5", | |
| "1 5", | |
| "30 30", | |
| "20", | |
| "0", | |
| "" | |
| ] | |
| }, | |
| "realParameters": { | |
| "type": "ScilabDouble", | |
| "height": 1, | |
| "width": 7, | |
| "values": [ | |
| { "realPart": 0.0 }, | |
| { "realPart": 30.0 }, | |
| { "realPart": 30.0 }, | |
| { "realPart": -1.0 }, | |
| { "realPart": 1.0 }, | |
| { "realPart": -5.0 }, | |
| { "realPart": 5.0 } | |
| ] | |
| }, | |
| "integerParameters": { | |
| "type": "ScilabInteger", | |
| "height": 1, | |
| "width": 11, | |
| "intPrecision": "sci_int32", | |
| "values": [ | |
| { "line": 0, "column": 0, "value": -1 }, | |
| { "line": 0, "column": 1, "value": 2 }, | |
| { "line": 0, "column": 2, "value": 20 }, | |
| { "line": 0, "column": 3, "value": -1 }, | |
| { "line": 0, "column": 4, "value": -1 }, | |
| { "line": 0, "column": 5, "value": -1 }, | |
| { "line": 0, "column": 6, "value": -1 }, | |
| { "line": 0, "column": 7, "value": 1 }, | |
| { "line": 0, "column": 8, "value": 1 }, | |
| { "line": 0, "column": 9, "value": 1 }, | |
| { "line": 0, "column": 10, "value": 3 } | |
| ] | |
| }, | |
| "objectsParameters": { | |
| "type": "ScilabList" | |
| }, | |
| "nbZerosCrossing": { | |
| "height": 1, | |
| "width": 1, | |
| "type": "ScilabInteger", | |
| "intPrecision": "sci_int32", | |
| "value": 0 | |
| }, | |
| "nmode": { | |
| "height": 1, | |
| "width": 1, | |
| "type": "ScilabInteger", | |
| "intPrecision": "sci_int32", | |
| "value": 0 | |
| }, | |
| "state": { | |
| "height": 0, | |
| "width": 0, | |
| "type": "ScilabDouble" | |
| }, | |
| "dState": { | |
| "height": 0, | |
| "width": 0, | |
| "type": "ScilabDouble" | |
| }, | |
| "oDState": { | |
| "type": "ScilabList" | |
| }, | |
| "equations": { | |
| "type": "ScilabList" | |
| } | |
| }, | |
| "ports": { | |
| "explicitInputs": [ | |
| { | |
| "ordering": 1, | |
| "dataType": "REAL_MATRIX", | |
| "dataColumns": 1, | |
| "dataLines": 1, | |
| "initialState": 0.0, | |
| "style": "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0", | |
| "value": "" | |
| }, | |
| { | |
| "ordering": 2, | |
| "dataType": "REAL_MATRIX", | |
| "dataColumns": 1, | |
| "dataLines": 1, | |
| "initialState": 0.0, | |
| "style": "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0", | |
| "value": "" | |
| } | |
| ], | |
| "explicitOutputs": [], | |
| "implicitInputs": [], | |
| "implicitOutputs": [], | |
| "controls": [ | |
| { | |
| "ordering": 1, | |
| "dataType": "REAL_MATRIX", | |
| "dataColumns": 1, | |
| "dataLines": 1, | |
| "initialState": 0.0, | |
| "style": "ControlPort;align=center;verticalAlign=top;spacing=10.0", | |
| "value": "" | |
| } | |
| ], | |
| "commands": [] | |
| }, | |
| "xmlExample": "<BasicBlock id=\"...\" parent=\"...\" interfaceFunctionName=\"CMSCOPE\" blockType=\"c\" dependsOnU=\"1\" dependsOnT=\"0\" simulationFunctionName=\"cmscope\" simulationFunctionType=\"C_OR_FORTRAN\" style=\"CMSCOPE\">\n <ScilabString as=\"exprs\" height=\"11\" width=\"1\">\n <data line=\"0\" column=\"0\" value=\"1 1\"/>\n <data line=\"1\" column=\"0\" value=\"1 3 5 7 9 11 13 15\"/>\n <data line=\"2\" column=\"0\" value=\"-1\"/>\n <data line=\"3\" column=\"0\" value=\"[]\"/>\n <data line=\"4\" column=\"0\" value=\"[]\"/>\n <data line=\"5\" column=\"0\" value=\"-1 -5\"/>\n <data line=\"6\" column=\"0\" value=\"1 5\"/>\n <data line=\"7\" column=\"0\" value=\"30 30\"/>\n <data line=\"8\" column=\"0\" value=\"20\"/>\n <data line=\"9\" column=\"0\" value=\"0\"/>\n <data line=\"10\" column=\"0\" value=\"\"/>\n </ScilabString>\n <mxGeometry as=\"geometry\" x=\"0.0\" y=\"-10.0\" width=\"40.0\" height=\"40.0\"/>\n</BasicBlock>", | |
| "anomalies": [ | |
| "Multiple explicit inputs (2+ supported)", | |
| "Complex exprs with 11 parameters including color codes", | |
| "Real parameters include [0, 30, 30, -1, 1, -5, 5] for view bounds", | |
| "Integer parameters 11 values for configuration", | |
| "ControlPort for event refresh (not clock)", | |
| "Color mapping: 1 3 5 7... are color indices for each input" | |
| ], | |
| "criticalRules": [ | |
| "Control port is refresh trigger, NOT clock", | |
| "exprs line 0: color indices for each input (e.g., \"1 1\" for 2 inputs)", | |
| "exprs line 5-6: Y-axis min/max values (e.g., \"-1 -5\", \"1 5\")", | |
| "exprs line 7: refresh period, buffer size (\"30 30\")", | |
| "C_OR_FORTRAN simulation function type", | |
| "CRITICAL: Scope blocks MUST have a CLOCK_c block connected to their ControlPort (red top port) via a CommandControlLink, otherwise graph is empty." | |
| ], | |
| "commonUses": [ | |
| "Multi-signal visualization", | |
| "Comparing multiple traces", | |
| "Oscilloscope-style display", | |
| "Signal monitoring with color differentiation" | |
| ], | |
| "relatedBlocks": [ | |
| "CSCOPE", | |
| "CEVENTSCOPE", | |
| "CFSCOPE", | |
| "CMSCOPE", | |
| "SCALE_CMSCOPE" | |
| ] | |
| } |