Spaces:
Sleeping

File size: 4,723 Bytes
39e01c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
  "name": "CSCOPXY",
  "description": "XY scope for plotting Y vs X with event-triggered refresh",
  "category": "Sinks/Visualization",
  "blockType": "d",
  "tag": "BasicBlock",
  "interfaceFunctionName": "CSCOPXY",
  "simulationFunctionName": "cscopxy",
  "simulationFunctionType": "C_OR_FORTRAN",
  "dependsOnU": 0,
  "dependsOnT": 0,
  "geometry": {
    "x": 0.0,
    "y": -10.0,
    "width": 40.0,
    "height": 40.0
  },
  "style": "CSCOPXY",
  "parameters": {
    "exprs": {
      "type": "ScilabString",
      "height": 11,
      "width": 1,
      "values": [
        "1",
        "4",
        "1",
        "-1",
        "[]",
        "[600;400]",
        "-15",
        "15",
        "-15",
        "15",
        "2"
      ],
      "labels": [
        "number_of_curves",
        "color",
        "line_style",
        "thickness",
        " Legends",
        "window_size",
        "xmin",
        "xmax",
        "ymin",
        "ymax",
        "buffer_size"
      ],
      "descriptions": [
        "Number of XY curves to display",
        "Line color (-1=auto, or specific index)",
        "Line style (0=solid, 1=dashed, etc.)",
        "Line thickness (-1=auto)",
        "Legend text []=none",
        "Window size [width;height] in pixels",
        "X-axis minimum",
        "X-axis maximum",
        "Y-axis minimum",
        "Y-axis maximum",
        "Circular buffer size"
      ]
    },
    "realParameters": {
      "height": 1,
      "width": 4,
      "values": [-15.0, 15.0, -15.0, 15.0],
      "description": "Axis limits: xmin, xmax, ymin, ymax"
    },
    "integerParameters": {
      "height": 1,
      "width": 11,
      "values": [-1, 1, 2, 4, 1, 1, -1, -1, 600, 400, 1],
      "intPrecision": "sci_int32",
      "description": "Display config: ID, auto-flag, buffer, color, style, thickness flags, grid, axis flags, window size"
    },
    "state": {
      "height": 0,
      "width": 0
    },
    "dState": {
      "height": 0,
      "width": 0
    },
    "nbZerosCrossing": {
      "value": 0
    },
    "nmode": {
      "value": 0
    }
  },
  "ports": {
    "explicitInputs": [
      {
        "ordering": 1,
        "dataType": "REAL_MATRIX",
        "dataColumns": 1,
        "dataLines": 1,
        "initialState": 0.0,
        "style": "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0",
        "description": "X coordinate (horizontal axis)"
      },
      {
        "ordering": 2,
        "dataType": "REAL_MATRIX",
        "dataColumns": 1,
        "dataLines": 1,
        "initialState": 0.0,
        "style": "ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0",
        "description": "Y coordinate (vertical axis)"
      }
    ],
    "explicitOutputs": [],
    "controls": [
      {
        "ordering": 1,
        "dataType": "REAL_MATRIX",
        "dataColumns": 1,
        "dataLines": 1,
        "initialState": 0.0,
        "style": "ControlPort;align=center;verticalAlign=top;spacing=10.0",
        "description": "Event trigger for sampling and display refresh"
      }
    ],
    "commands": []
  },
  "xmlExample": "<BasicBlock id=\"b1\" parent=\"0:2:0\" interfaceFunctionName=\"CSCOPXY\" blockType=\"d\" dependsOnU=\"0\" dependsOnT=\"0\" simulationFunctionName=\"cscopxy\" simulationFunctionType=\"C_OR_FORTRAN\" style=\"CSCOPXY\">\n  <ScilabString as=\"exprs\" height=\"11\" width=\"1\">\n    <data line=\"0\" column=\"0\" value=\"1\"/>\n    <data line=\"1\" column=\"0\" value=\"4\"/>\n    <data line=\"2\" column=\"0\" value=\"1\"/>\n    <data line=\"3\" column=\"0\" value=\"-1\"/>\n    <data line=\"4\" column=\"0\" value=\"[]\"/>\n    <data line=\"5\" column=\"0\" value=\"[600;400]\"/>\n    <data line=\"6\" column=\"0\" value=\"-15\"/>\n    <data line=\"7\" column=\"0\" value=\"15\"/>\n    <data line=\"8\" column=\"0\" value=\"-15\"/>\n    <data line=\"9\" column=\"0\" value=\"15\"/>\n    <data line=\"10\" column=\"0\" value=\"2\"/>\n  </ScilabString>\n  <mxGeometry as=\"geometry\" x=\"300.0\" y=\"200.0\" width=\"40.0\" height=\"40.0\"/>\n</BasicBlock>",
  "anomalies": [
    "Two explicit inputs (X and Y) vs CSCOPE's one",
    "blockType='d' - discrete sampling on events",
    "Similar to CANIMXY but with different parameter ordering",
    "11 parameters - complex configuration"
  ],
  "criticalRules": [
    "Input 1 is X coordinate, Input 2 is Y coordinate",
    "Event on ControlPort samples new (X,Y) point",
    "Plots Y vs X (not Y vs time like CSCOPE)",
    "Uses circular buffer for trajectory storage"
  ],
  "commonUses": [
    "Phase portraits",
    "Lissajous figures",
    "XY trajectory plotting",
    "Parametric curve visualization"
  ],
  "relatedBlocks": ["CANIMXY", "CSCOPXY3D", "BARXY", "CSCOPE"]
}