Hauptinhalt

Use a dedicated timer to improve time stamp accuracy

R2026b

Allocate a dedicated hardware timer for more accurate signal time stamps during external mode

Since R2023b

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / External mode

Description

When selected, a dedicated hardware timer on the Arduino® board is allocated to generate time stamps for logged signals during external mode communication. This improves the accuracy of signal time stamps compared to using the default system tick counter.

When cleared, time stamps are derived from the system tick counter, which may have lower resolution depending on the board and model sample time.

Settings

off (default) | on
off (default)

Time stamps use the default system tick counter. No additional hardware timer is consumed.

on

A dedicated hardware timer is allocated for time stamps. This provides higher resolution and accuracy but consumes one hardware timer resource on the Arduino board.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2023b