Product: | Elvis |
Version: | all |
Booth: | 2006-03-27 |
Summary
The time of the visualization PC is to be synchronized via time information received from the EIB (EIS 3 and EIS 4).
Details
For the temporal synchronization of the visualization PC with the time and date information from the EIB (EIS 3 and EIS 4), the Windows functions (Kernal32) SetSystemTime and VariantTimeToSystemTime are declared in the Elvis Global Script. These functions can then be used to set the PC time in the calculation of the nominal value of the data point zeit_jetzt_setzen. The data point datum_zeit is only an intermediate variable.
Note from Günther Daverda:
I used the code in my last project, but I realized that you have to pay attention to something crucial.
Under the properties of date and time you have to DISABLE “Automatically change clock to summer/winter time”, otherwise the time is correct during winter time but in summer time the PC clock is advanced by two hours instead of one hour. As I see it, the PC adds an hour to the current time signal of the DCF signal.
Download sample project (db and iep):
settime.db
settime.iep