Installation of HSmartWindowControl (Visual Studio 2013 & Halcon 18)

1、Environmental introduction

Visual Studio 2013Community Edition

Halcon18.05

2、Using Nuget to install Halcon plug-in in VS project

image

Search bar input keyword halcon, there are two plug-ins, Halcon language interface and Halcon engine, all installed.

image

Note that the premise of using these two controls is that you have Halcon 18.05 installed on your computer and activated (you can use a trial license).

3、Install HSmartWindowControl controls in the toolbox

Detailed installation instructions are available in Halcon’s help documentation: C:/Program Files/MVTec/HALCON-18.05-Progress/doc/html/manuals/programmers_guidE/programmers_guide_0050.html

The screenshots are as follows:

image

Open the toolbox, click the right mouse button in the blank space below, and select Choose Items.

image

stayWinFormIn the project, select the.NetFramework Components bar in the open dialog box and click Browse. Button

image

Go to the bin folder C:\Program Files\MVTec\HALCON-18.05-Progress\bin of the Halcon installation directory.

If you use the VS version of 2005, select the halcondotnet.dll under the dotnet20 folder. If VS2008 and above, select the halcondotnet.dll under the dotnet35 folder.

My VS version is 2013, so choose dotnet35.

image

Then you can find the HSmartWindowControl control.

image

Then open the toolbox and see that both HSmart Windows Control and H Windows Control are installed, but the official documentation strongly recommends that we use Smart controls.

image

If it is inWPFprojectIn the Select Item dialog box, select the WPF Components column and add halcondotnet. DLL as well.

image

Leave a Reply

Your email address will not be published. Required fields are marked *