{ "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": "\n \n \n \n \n \n \n \n", "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" ] }