Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

SyncTrend

  • Last UpdatedAug 07, 2026
  • 1 minute read

Synchronizes the trend database.

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

SyncTrend

Database/ERP

Asynchronous

No

Supported

Supported

Not supported

Executed on Server

Executed on Server

Syntax

SyncTrend( numGroup, optStrStartDate, optStrEndDate )

numGroup

Trend group/worksheet number.

optStrStartDate

The start date, formatted according to the current date format on the project runtime server. For more information, see About the date format and how to change it.

This parameter is optional; if no value is specified, the current date is used by default.

optStrEndDate

The end date, formatted according to the current date format on the project runtime server. For more information, see About the date format and how to change it.

This parameter is optional; if no value is specified, the start date is used by default.

Returned value

Value

Description

1

Fail to start synchronization; the database is probably being synchronized.

0

Success

-1

Invalid group number

-2

The format is not set to "Database".

-4

Start date specified is invalid.

-5

End date specified is invalid.

-6

Start date is greater than the end date.

Notes

This function is executed asynchronously, so it doesn't return the result of the synchronization. To get that information, use the SyncTrendStatus function.

Examples

Tag Name

Expression

Tag

SyncTrend(1) // Synchronizes the group 1 database using the current date

Tag

SyncTrend(1, "10/20/2004") // Synchronizes the group 1 database only for the day 10/20/2004

Tag

SyncTrend(1, "10/20/2004", "10/28/2004") // Synchronizes the group 1 database from 10/20/2004 to 10/28/2004

In This Topic