The OPC Data Client or OPC Wizard license key is located in a license store. The following table lists the license stores available under each development platform, and their search order.
Search Order | License Store Type | COM | .NET Framework | .NET 6+ | Python | Excel (with Excel Connector) |
1. | File License Store |
⨯ |
✓ |
✓ |
✓ |
⨯ |
2. | Managed Resource License Store |
⨯ |
✓ |
✓ |
⨯ (1) |
⨯ |
3. | Registry License Store |
✓ |
✓ |
✓ (Windows only) |
✓ |
✓ |
4. | Built-in License Store (trial license only) |
✓ |
✓ |
✓ |
✓ |
✓ |
Note (1): The manage resource license store actually works from Python, but is impractical/of little benefit to use.
OPC Studio attempts to find a valid license in the available license stores, using a pre-set search order as given above (from top to bottom). If a valid license is found, it is used. If it is not found, the search proceeds to the next available license store. There is always a valid trial license available in the Built-in License Store. This is the one that will be used if everything else fails.
The File License Store allows the license key be placed in a file that resides in the file system, usually next to the main program executable.
The Managed Resource License Store allows you to embed the license key directly within your application (in a .NET assembly). This method cannot be used on the COM platform. Its advantage is that it does not require any further actions during deployment.
With the Registry License Store, proper license key (for runtime usage) must be installed on the target computer (the computer where the product will be running). The License Manager utility (GUI or console-based) is normally needed for this. The GUI-based License Manager is contained in the LicenseManager.exe file. The console-based License Manager is contained in the LMConsole.exe file. Both files are located under the Bin subdirectory of the product. Alternatively, you can write an installation program that installs the license key into the Registry License Store automatically. The Registry License Store is not available on the .NET 6+ development platform.
If the proper license key is not installed, you will end up with the trial license being used instead, as described above. That is usually manifested by the fact that after 30 minutes of the process run time, the component stops delivering valid data and gives an error instead.
Of course, you might want to know and verify sooner whether the license you intended to use has been found, validated and used. You can do so from your program by inspecting the elements of the dictionary returned from the LicenseInfo Property on the EasyXXClient, EasyUASubscriber or EasyUAServer object. The dictionary is keyed by strings, and you can obtain various information related to the license from it. If you simply want to verify that the right license is in use, we suggest that you test its serial number, either by excluding a range for demo and trial licenses (as in the following example), or by requiring that the serial number of the license in use is equal to the precise serial number of your license. You obtain the serial number by getting the "Multipurpose.SerialNumber" element of the dictionary. The license key file you obtained when you purchased OPC Data Client has your serial number as its first series of digits.
The example below shows how to obtain the serial number of the active license, and determine whether it is a demo or trial license.
The example below shows how to display all fields of the available license(s).
Example: Examples - Server Licensing - Obtain serial number
Example: Examples - Server Licensing - Display all license info elements
Your usage of the software created with elements from OPC Studio must comply with the terms of OPC Studio EULA. In addition, because OPC Studio contains and/or may depend on licensed material from 3rd parties, you must comply with license terms of such material as well. See Licenses for Redistributed Material for more details.