{ "name": "CURV_f", "description": "Curve lookup table - outputs values from a pre-defined curve using interpolation", "category": "Lookup Tables", "blockType": "c", "tag": "BasicBlock", "interfaceFunctionName": "CURV_f", "simulationFunctionName": "intplt", "simulationFunctionType": "DEFAULT", "dependsOnU": 0, "dependsOnT": 1, "geometry": { "width": 40, "height": 40 }, "parameters": { "exprs": { "type": "ScilabDouble", "height": 0, "width": 0, "description": "No exprs - values configured via realParameters" }, "realParameters": { "height": 1, "width": 10, "values": [0.0, 1.0, 2.0, -5.0, 5.0, 0.0, 0.0, -5.0, 2.0, 5.0], "description": "Curve data points - x1,y1,x2,y2,... format with bounds" }, "integerParameters": { "height": 1, "width": 5, "values": [3, 2, 10, 2, 10], "description": "[method, extrapolation, total_points, out_dim1, out_dim2]" }, "nbZerosCrossing": 0, "nmode": 0, "state": { "height": 0, "width": 0 }, "dState": { "height": 0, "width": 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" } ], "controls": [], "commands": [] }, "xmlExample": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n", "anomalies": [ "Empty exprs (height=0, width=0) - configured via real/integerParameters", "simulationFunctionName='intplt' (interpolation)", "10 realParameters suggests 5 XY points (5 pairs)", "5 integerParameters for configuration", "Depends on time not input (no input ports)" ], "criticalRules": [ "No input ports - operates as timed signal source", "realParameters contain curve points in x1,y1,x2,y2,... order", "integerParameters[0]=interpolation method (3=linear)", "integerParameters[1]=extrapolation method (2=hold last value)", "Outputs curve value based on current simulation time", "Used for predefined reference signals/arbitrary waveforms" ], "commonUses": [ "Generating arbitrary time-based waveforms", "Reference trajectories", "Predefined motion profiles", "Test signal generation" ], "relatedBlocks": ["Sigbuilder", "LOOKUP_f", "TIME_f", "GENSIN_f"] }