ConnectDataSource

Connect a DataSource, making the associated tags live.

With most DataSources, you do not need to call this, as they are connected upon start up. However, if a DataSource has AutoConnect disabled, use this function to connect it manually.

This function has no effect on DataSources that have AutoConnect enabled, or DataSources previously connected with this function.

🔁 Function

Void ConnectDataSource(dataSourceName: string)

⚙️ Parameters

Name Type Description
dataSourceName String The name of the DataSource to connect.

📝 Example

// Connect a DataSource after a delay of five seconds.
SetTimerEx(42, 5000, function() {
    ConnectDataSource("MyDataSource");
}, null);