[MAT logo][Prev][Up][Next]

vitrine

Vitrine is a simple text-based HMI. It is display-only (it can be paired with the kbd module to provide both display and control, or with buttons wired to inputs).

It is useful in small systems for which the overhead of graphics would be excessive.

Config

There are three settings:
background=filename
This specifies a plain text file to be loaded as the unchanging part of the screen.
show point row col [type] [on [off]]
This table specifies the points to be shown on the screen, one point per row. The columns are:
point
The MatPLC point to be shown.
row
The row on the screen to use.
col
The column on the screen to use.
type
(optional, default bool) The type to be shown: f32 | i32 | u32 | i16 | u16 | i8 | u8 | bool. The default is bool, which is used for on-off points (coils, discrete inputs).
on
(optional, default "1") The string to use when the point is on. Only valid for the default bool type. In bespin (and CVS before June 2005), only the first character is shown on the display.
off
(optional, default "0") The string to use when the point is off. Only valid for the default bool type. If you want a string which only appears when the point is ON and disappears when the point is OFF, use "" as the off marker (two double-quote marks). In bespin (and CVS before June 2005), only the first character is shown on the display, and a blank must be written as " " (double-quote, space, double-quote).
graph ...
FIXME Document how to do text-based graphs. See demo/basic_dsp/vitrine.conf for an example.

[Prev][Up][Next]

$Date: 2005/05/26 11:20:33 $