Intrinsic component configuration examples: Difference between revisions

From OPC Labs Knowledge Base
Line 24: Line 24:
</syntaxhighlight>
</syntaxhighlight>
[[File:Appsettings-using-net-api-implementation-of-opc-data-access-client.zip|thumb]]
[[File:Appsettings-using-net-api-implementation-of-opc-data-access-client.zip|thumb]]
If your project involves user interface, it needs to be configured too:
<syntaxhighlight lang="json">
{
  "OpcLabs.EasyOpc.DataAccess.EasyDAClient": {
    "InstanceParameters": {
      "EnableNativeClient": false,
      "EnableNetApiClient": true
    }
  },
  "OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DADialog": {
    "ClientSelector": {
      "InstanceParameters": {
        "EnableNativeClient": false,
        "EnableNetApiClient": true
      }
    }
  }
}
</syntaxhighlight>
[[File:Appsettings-using-net-api-implementation-of-opc-data-access-client-2.zip|thumb]]

Revision as of 09:00, 1 June 2021

Set the default URL of the OPC UA Global Discovery Server (GDS)

In order to set the default URL of the OPC UA Global Discovery Server (GDS) used by QuickOPC global discovery operations, you can use the following appsettings.json file:

{
  "OpcLabs.EasyOpc.UA.EasyUAClient": {
    "InstanceParameters": {
      "GdsEndpointDescriptor": {
        "UrlString": "opc.tcp://opcua.demo-this.com:58810/GlobalDiscoveryServer"
      }
    }
  } 
}

Use NET API implementation of OPC Data Access client

{
  "OpcLabs.EasyOpc.DataAccess.EasyDAClient": {
    "InstanceParameters": {
      "EnableNativeClient": false,
      "EnableNetApiClient": true
    }
  } 
}

File:Appsettings-using-net-api-implementation-of-opc-data-access-client.zip

If your project involves user interface, it needs to be configured too:

{
  "OpcLabs.EasyOpc.DataAccess.EasyDAClient": {
    "InstanceParameters": {
      "EnableNativeClient": false,
      "EnableNetApiClient": true
    }
  },

  "OpcLabs.EasyOpc.DataAccess.Forms.Browsing.DADialog": {
    "ClientSelector": {
      "InstanceParameters": {
        "EnableNativeClient": false,
        "EnableNetApiClient": true
      }
    }
  }
}

File:Appsettings-using-net-api-implementation-of-opc-data-access-client-2.zip