Spaces:
Sleeping
Sleeping
Download data/blocks/_backup/CONST_m.json from notsn/headless_scilab: direct link, hf CLI and curl.
- Browser
- Download file 2.96 kB
-
https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/blocks/_backup/CONST_m.json
- Command line
-
hf download hf://spaces/notsn/headless_scilab/data/blocks/_backup/CONST_m.json
-
curl -L -o CONST_m.json https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/blocks/_backup/CONST_m.json
2.96 kB
| { | |
| "name": "CONST_m", | |
| "description": "Constant value block - outputs a fixed constant value", | |
| "category": "Sources", | |
| "blockType": "d", | |
| "tag": "BasicBlock", | |
| "interfaceFunctionName": "CONST_m", | |
| "simulationFunctionName": "cstblk4", | |
| "simulationFunctionType": "C_OR_FORTRAN", | |
| "dependsOnU": 0, | |
| "dependsOnT": 0, | |
| "geometry": { | |
| "x": 0.0, | |
| "y": -10.0, | |
| "width": 40.0, | |
| "height": 40.0 | |
| }, | |
| "style": "CONST_m", | |
| "parameters": { | |
| "exprs": { | |
| "type": "ScilabString", | |
| "height": 1, | |
| "width": 1, | |
| "values": ["1"], | |
| "description": "The constant value to output" | |
| }, | |
| "realParameters": { | |
| "height": 1, | |
| "width": 1, | |
| "values": [1.0] | |
| }, | |
| "integerParameters": { | |
| "height": 0, | |
| "width": 0 | |
| }, | |
| "nbZerosCrossing": { | |
| "value": 0 | |
| }, | |
| "nmode": { | |
| "value": 0 | |
| } | |
| }, | |
| "ports": { | |
| "explicitInputs": [], | |
| "explicitOutputs": [ | |
| { | |
| "ordering": 1, | |
| "dataType": "REAL_MATRIX", | |
| "dataColumns": 1, | |
| "dataLines": 1, | |
| "initialState": 0.0, | |
| "style": "ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0", | |
| "description": "Constant output value" | |
| } | |
| ], | |
| "controls": [], | |
| "commands": [] | |
| }, | |
| "xmlExample": "<BasicBlock id=\"b1\" parent=\"0:2:0\" interfaceFunctionName=\"CONST_m\" blockType=\"d\" dependsOnU=\"0\" dependsOnT=\"0\" simulationFunctionName=\"cstblk4\" simulationFunctionType=\"C_OR_FORTRAN\" style=\"CONST_m\">\n <ScilabString as=\"exprs\" height=\"1\" width=\"1\">\n <data line=\"0\" column=\"0\" value=\"1\"/>\n </ScilabString>\n <ScilabDouble as=\"realParameters\" height=\"1\" width=\"1\">\n <data line=\"0\" column=\"0\" realPart=\"1.0\"/>\n </ScilabDouble>\n <mxGeometry as=\"geometry\" x=\"50.0\" y=\"50.0\" width=\"40.0\" height=\"40.0\"/>\n</BasicBlock>", | |
| "anomalies": [ | |
| "No inputs - pure source block", | |
| "blockType='d' (discrete) not 'c' (continuous)", | |
| "dependsOnU=0 (no input dependency) - standard for source blocks", | |
| "Simplest block - just one parameter (the constant value)" | |
| ], | |
| "criticalRules": [ | |
| "Outputs the constant value specified in exprs", | |
| "Source block - no inputs only output", | |
| "Can output scalar or matrix constants" | |
| ], | |
| "commonUses": [ | |
| "Setting fixed gains", | |
| "Reference values", | |
| "Bias offsets", | |
| "Initial conditions" | |
| ], | |
| "paramSets": { | |
| "unity": { | |
| "exprs": ["1"], | |
| "value": 1.0 | |
| }, | |
| "zero": { | |
| "exprs": ["0"], | |
| "value": 0.0 | |
| }, | |
| "pi": { | |
| "exprs": ["%pi"], | |
| "value": 3.14159 | |
| }, | |
| "matrix": { | |
| "exprs": ["[1;2;3]"], | |
| "value": [1, 2, 3] | |
| } | |
| }, | |
| "relatedBlocks": [ | |
| "CONST_f - floating point constant", | |
| "CONST - integer constant", | |
| "STEP_FUNCTION - time-varying source", | |
| "RAMP - ramp source" | |
| ] | |
| } | |