Component: GLCD Graph Creator (Graphical Library): Difference between revisions
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 104: | Line 104: | ||
===AddPoint=== | ===AddPoint=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AddPoint''' | ||
|- | |- | ||
| colspan="2" | Adds a new data point to the graph. | | colspan="2" | Adds a new data point to the graph. | ||
| Line 128: | Line 128: | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initialises the graph object on the GLCD to the specified dimensions. | | colspan="2" | Initialises the graph object on the GLCD to the specified dimensions. | ||
| Line 143: | Line 143: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Display Properties | ||
|- | |- | ||
|- | |- | ||
| Line 183: | Line 183: | ||
| colspan="2" | Vertical size of the graph in pixels | | colspan="2" | Vertical size of the graph in pixels | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Graph Properties | ||
|- | |- | ||
|- | |- | ||
| Line 227: | Line 227: | ||
| colspan="2" | Decides if a X or Y grid is shown for the graph | | colspan="2" | Decides if a X or Y grid is shown for the graph | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Theme | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:36, 13 July 2026
| Author | Matrix TSL |
| Version | 1.2 |
| Category | Graphical Library |
GLCD Graph Creator component
A component to simplify the process of drawing graphs and charts using a graphical LCD.
Detailed description
No detailed description exists yet for this component
Examples
The graph creator component must be linked to the graphical LCD using the gLCD Object property.
The X Coord, Y Coord, Width and Height component properties set the size and position of the graph on the gLCD.
In the attached example the ADC component sets the input to the graph. Every 50ms a sample is taken and added to the graph.
Any size of graph can be created. For efficiency it is best to try and stick to the following rules.
- The width should be equal to or a multiple of the number of points
- The height should be equal to or a division of the input range - Min Value 0 to Max Value 255 = input range of 256
- If Show Border is enabled then Width and Height should be as above plus 2 to account for the border pixels
Macro reference
AddPoint
| AddPoint | |
| Adds a new data point to the graph. | |
| Data | |
| Data Value to plot | |
| Index | |
| Plot Index: Range 0-7 | |
| Return | |
Initialise
| Initialise | |
| Initialises the graph object on the GLCD to the specified dimensions. | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Lib_GLCD_Graph.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Lib_GLCD_Graph.fcfx

