Project

General

Profile

System Time Block

How this block appears in a Simulink model?

appearance.PNG

What can be configured?

Configuration Parameter Selectable Option/Value Description
Mode Write to external RTC--UNIX timestamp--Custom Select the output mode of the time
Sample time (sec) -1 (inherited) or specify Specify the sample time

When to use this block?

This block can be used to acquire time from your ESP32.

How does this block work?

In order to get the current date and time from this block, it should be used along with WIFI Block and the NTP Block. This block acquire the current time of the specified time zone from the NTP Block via internet and use the internal timers of the ESP32 to keep track of it.

Demo

System Time Demo

Previous : Printf Block
Next: Image Concatenate Block

Also available in: PDF HTML TXT