Difference between revisions of "First experiences using QuickOPC with Free Pascal (Lazarus)"

From OPC Labs Knowledge Base
Jump to navigation Jump to search
(Created page with "Performed with in-works QuickOPC version 2016.2 (5.41), and Lazarus installation package '''lazarus-1.6.0-fpc-3.0.0-win64.exe''', on Windows 7 (x64). Related links: * http://...")
 
Line 1: Line 1:
 
Performed with in-works QuickOPC version 2016.2 (5.41), and Lazarus installation package '''lazarus-1.6.0-fpc-3.0.0-win64.exe''', on Windows 7 (x64).
 
Performed with in-works QuickOPC version 2016.2 (5.41), and Lazarus installation package '''lazarus-1.6.0-fpc-3.0.0-win64.exe''', on Windows 7 (x64).
 +
 +
In order to use the COM type libraries of QuickOPC, it is needed to install the '''LazActiveX''' package  (comes with Lazarus). See http://wiki.freepascal.org/LazActiveX for details and instructions. Package -> Install/Uninstall Packages ..., select LazActiveX 0.1 under "Available for installation", press "Install selection", press "Save and rebuild IDE".
 +
 +
Then, use the procedures under '''TActiveXContainer early binding'''. Tools -> Import Type Library, select tab "ActiveX References", type "OPC Labs" into the Search box, select one of our libraries, check "Convert dependant typelibs", press OK.
  
 
Related links:
 
Related links:
 
* http://www.lazarus-ide.org/
 
* http://www.lazarus-ide.org/
 
* http://wiki.freepascal.org/
 
* http://wiki.freepascal.org/
 +
* http://wiki.freepascal.org/LazActiveX

Revision as of 14:58, 24 September 2016

Performed with in-works QuickOPC version 2016.2 (5.41), and Lazarus installation package lazarus-1.6.0-fpc-3.0.0-win64.exe, on Windows 7 (x64).

In order to use the COM type libraries of QuickOPC, it is needed to install the LazActiveX package (comes with Lazarus). See http://wiki.freepascal.org/LazActiveX for details and instructions. Package -> Install/Uninstall Packages ..., select LazActiveX 0.1 under "Available for installation", press "Install selection", press "Save and rebuild IDE".

Then, use the procedures under TActiveXContainer early binding. Tools -> Import Type Library, select tab "ActiveX References", type "OPC Labs" into the Search box, select one of our libraries, check "Convert dependant typelibs", press OK.

Related links: