Capula's OSISoft Pi to PTC Thingworx Connector

Debugging

Where a particular installation is having issues, the TwApiWrapper listener can be enabled in the OSIPIConnectorService.config file (uncomment the commented out section and restart).

Instructions

To enable the TwApiWrapper:

  1. Navigate to the install path for the connector

  2. Edit the OSIPIConnectorService.config

  3. Locate the following section in the file and remove the comments

<!--source name="com.thingworx.communications.client.TwApiWrapper" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch"> <listeners> <add name="file"/> </listeners> </source-->

Remove the comments so the file shows as:

<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> </startup> <system.diagnostics> <sources> <source name="com.thingworx.communications.client.TwApiWrapper" switchName="SourceSwitch" switchType="System.Diagnostics.SourceSwitch"> <listeners> <add name="file"/> </listeners> </source> ...

This listener is usually commented out as it is very verbose e.g. 1MB log growth approx. every 15 seconds so it is only recommended you leave it running while troubleshooting any issues.

Save the changes to the file and restart the connector service. See https://capulaopus.atlassian.net/wiki/spaces/OPTPTC/pages/1049624880 for further details on how to do this.

Related articles

Capula © 2020