Component: GLCD Graph Creator XY (Graphical Library)

From Flowcode Help
Revision as of 10:18, 12 March 2019 by BenR (talk | contribs) (XML import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Author Matrix TSL
Version 1.2 (Release)
Category Graphical Library


Image GLCD Graph Creator XY component

A component to simplify the process of drawing XY graphs and charts using a graphical LCD.

Examples

No additional examples


Downloadable macro reference

AddPoint

Adds a new data point to the graph.

Parameters

INT X
X Data Value to plot
INT Y
Y Data Value to plot
BYTE Index
Plot Index: Range 0-7


Return value

This call does not return a value


Initialise

Initialises the graph object on the GLCD to the specified dimensions.

Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

ExportToCSV

Exports the data in the graph to a CSV file.

Parameters

<- STRING Filename
This parameter may be returned back to the caller


Return value

This call does not return a value



Property reference

gLCD Object

This property is of type Panel object and can be referenced with the variable name glcd_obj.

Graphical LCD Object to draw the graph on

ColourDisplay

This property is of type True or false and can be referenced with the variable name Colour_Display.

Automatically detects if the graphical LCD object is colour or monochrome

X Coord

This property is of type Unsigned integer and can be referenced with the variable name XC.

X coordinate for the top left of the graph container rectangle

Y Coord

This property is of type Unsigned integer and can be referenced with the variable name YC.

Y coordinate for the top left of the graph container rectangle

Width

This property is of type Unsigned integer and can be referenced with the variable name WP.

Horizontal size of the graph in pixels

Height

This property is of type Unsigned integer and can be referenced with the variable name HP.

Vertical size of the graph in pixels

Number Of Plots

This property is of type Fixed list of ints and can be referenced with the variable name NumPlots.

Determines the number of plots that can be displayed simultaneously on the graph.

Monochrome displays can only support a single plot.

Number Of Points

This property is of type Unsigned integer and can be referenced with the variable name NumPoints.

Number of data points the graph can store, multiplied by the number of plots.

Graph Style

This property is of type Fixed list of ints and can be referenced with the variable name GraphStyle.

Controls the graph draw style.

Point - Draws a single point

Line - Draws a line from the last point to the new point

Min X Value

This property is of type Signed integer and can be referenced with the variable name MinXVal.

Value to represent the bottom Y axis on the graph

Max X Value

This property is of type Signed integer and can be referenced with the variable name MaxXVal.

Value to represent the top Y axis on the graph

Min Y Value

This property is of type Signed integer and can be referenced with the variable name MinYVal.

Value to represent the bottom Y axis on the graph

Max Y Value

This property is of type Signed integer and can be referenced with the variable name MaxYVal.

Value to represent the top Y axis on the graph

Show Border

This property is of type True or false and can be referenced with the variable name ShowBorder.

Decides if a border for the graph is generated

Show Grid

This property is of type Fixed list of ints and can be referenced with the variable name ShowGrid.

Decides if a X or Y grid is shown for the graph

Background Colour

This property is of type Color picker and can be referenced with the variable name BgCol.

Determines the graph background colour.

Plot 0 Colour

This property is of type Color picker and can be referenced with the variable name P1Col.

Determines the graph plot colour.