functionDisplayMessageCount
Number of messages in a payload of the display link (messages separated by line feeds)
Information
A sync point publishes on Display0.payload every message written since the previous one, separated by line feeds (several write() without sleep() in between, or a text of several lines). The empty payload counts as one empty message. See Internal.Functions.DisplayMessage.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | payload |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | Modelica.Utilities.Strings.count(payload, "\n") + 1 |