Wall Clock
Purpose
Outputs the current time and date.
Description
The Wall Clock Block allows access to the real-time clock of the RT Box. It delivers the following output signals:
- yy
Current year
- MM
Current month
- dd
Day of month
- hh
Current hour
- mm
Current minute
- ss
Current second
- \(\mu\)s
Current microsecond
The RT Box 2, 3 and 4 contain an internal real time clock, which provides the time immediately after power-on. The clock is synchronized over the network if the RT Box can contact an NTP (Network Time Protocol) server. The RT Box 1 does not contain an internal real time clock. To get the current time, the box must contact an NTP server before the simulation is started.
To change the default NTP time server, place a file named ntp.conf in the directory config/etc of the SD card of the RT Box. The file should contain one or more lines with NTP server entries of the form
server servername iburst
where servername is the domain name or the IP address of the NTP server.
Parameters
- Offset to UTC [h]
The offset of the local timezone to UTC (Universal Time Coordinated), in hours. The RT Box does not provide automatic adjustment to daylight saving time.