Programming for experts
P.
119 of 349
Change of the displayed buffer of a
mtimechart
Using the same diagram for different
timebuffer: For this purpose the year
will be chosen with the selection box
at the bottom left. The application
program sets up the connection of
diagram graph to the destinated
timebuffer.
For each year a timebuffer, comp. p.
199 for backing up data to an
external PC.
The „sampeln“ (storage) of the
values on the buffer.
Of interest is the possibility to “separate” the pre-configured linking in the web element from time
series to the graph and to display the graph in another buffer.
Here is another example: As shown in Abbildung 4 should be taken a selection via a mpshifter-
webelement, which is displayed in the recorded timebuffer.
Picture 11:Change of the presentation during running time
In the webserver the three elements shown are defined in which the pshifter is only used to display
the current time. At the start of the application program the webelement ist linked to the timebuffer
with ID chartbuffer3.
[WebServer]
page(PageID)[$Log$,$Room5$]
design $black$
mtimechart(TimeChartID)[LONG,2,255,30,17,256,0] ( $Room1$,LEFTGRAF, ChartBuffer3)
mpshifter(SelectID)[$2011$,$2012$,$2013$][DATE]$Room1$ pshifter(ClockID)[CLOCK]
$Aktuelle Uhrzeit$
We define three time series (time buffer),
MemTyp=1
Len=30640u16
Datatyp=3.3f16
timebufferconfig(ChartBuffer0, MemTyp, Len, "RkWohnzimmerTemp-3/1/28")
timebufferconfig(ChartBuffer1, MemTyp, Len, "RkWohnzimmerTemp-3/1/28")
timebufferconfig(ChartBuffer2, MemTyp, Len, "RkWohnzimmerTemp-3/1/28")
which now record data for every 1 year in ¼ time:
Y2011=date(1,1,11) and !date(1,1,12)
Y2012=date(1,1,12) and !date(1,1,13)
Y2013=date(1,1,13) and !date(1,1,15)
if (mtime(45,00) or mtime(45,00) or mtime(15,00) or mtime(00,00) ) and Y2011 then {
timebufferadd(ChartBuffer0,"RkWohnzimmerTemp-3/1/28");
} endif
if (mtime(45,00) or mtime(45,00) or mtime(15,00) or mtime(00,00) ) and Y2012 then {
timebufferadd(ChartBuffer1,"RkWohnzimmerTemp-3/1/28");
} endif
if (mtime(45,00) or mtime(45,00) or mtime(15,00) or mtime(00,00) ) and Y2013 then {
timebufferadd(ChartBuffer2,"RkWohnzimmerTemp-3/1/28");
} endif
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]