Component: GLCD Graph Creator XY (Graphical Library)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.2 |
Category | Graphical Library |
Contents
GLCD Graph Creator XY component
A component to simplify the process of drawing XY graphs and charts using a graphical LCD.
Component Pack
DISPLAYS
Detailed description
No detailed description exists yet for this component
Examples
The graph creator XY 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 X input range - Min Value 0 to Max Value 255 = input range of 256
- The height should be equal to or a multiple of the Y 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
Downloadable macro reference
![]() |
ExportToCSV |
Exports the data in the graph to a CSV file. | |
![]() |
Filename |
![]() |
Erase |
0=Append existing data, 1=Reset file data | |
![]() |
Return |
![]() |
AddPoint |
Adds a new data point to the graph. | |
![]() |
X |
X Data Value to plot | |
![]() |
Y |
Y Data Value to plot | |
![]() |
Index |
Plot Index: Range 0-7 | |
![]() |
Return |
![]() |
Initialise |
Initialises the graph object on the GLCD to the specified dimensions. | |
![]() |
Return |