Example

This example Application demonstrates how to read pump data from a Digital Twin instance using the Azure Digital Twin Connector.

You can download the files here to try it out for yourself - adjusting the steps to use your own Azure credentials.

Refer to configuration to understand all configuration options of this Connector.

Step 1: Add the Connection

From the Properties blade of the widget to which the Digital Twin Connector will be linked, a data grid in our example, select the Data Source tab.

Click the plus icon next to Data Source and then the plus icon next to Connection.

Select the Azure Digital Twin Connector and enter a name for the connection. In this case, set the name to "Pump Data".

Step 2: Configure Authentication

Enter the authentication details: the Tenant ID, Client ID, and Client Secret. In this case, tick to use variables.

Step 3: Configure Digital Twins

Select the Endpoint Uri for the Azure Digital Twin instance. Keep the default range as 24 hours and live notifications unticked.

Click Save.

Step 4: Use the Connection

Use the Connection that was just created to complete entering the new Data Source. Save the Data Source.

In this case, set the name to "Pump Data", the connection to "Pump Data", and entity to "Pump".

Note: the primary key is auto-populated once the entity is selected.

Step 5: Use the Data Source

Select the Data Source we just added, and save the Application. Click the Launch button and view the data grid.

Step 6: Results

Observe that data is returned from the Pump entity of the Azure Digital Twin.

Files

See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.

Last updated