ActivVisionTools from MVTec Software GmbH
Frequently Asked Questions (FAQ)



General information
What is ActivVisionTools?
 
ActivVisionTools and HALCON
Are there any compatibility problems known with specific versions of ActivVisionTools and HALCON?
How is ActivVisionTools related to HALCON?
 
Internationalization
Does the ActivVisionTools GUI support different languages?
 
System Requirements
Do I need a specific development environment to use ActivVisionTools?
Do I need a specific edition of my development environment to use ActivVisionTools?
Is it possible to use ActivVisionTools with Delphi?
 
Tips and Tricks
How to make use of different image processing parameters for each ROI.
How to reset all stored values like ROIs.
Loading an ActivVisionTools application takes a very long time.
Termination of an ActivVisionTools application takes a very long time.
 
Trouble Shooting
ActivView is disabled when running the application (no popup menu, zoom checkbox grayed out).
Adding a tool to my Form causes the development environment to crash.
Adding AVTDataView to the Form does not work in Visual Studio 2008
After a runtime error Visual Basic always reports a license error.
After creating the application (executable) the program does not display any images.
After upgrading ActivVisionTools, my application no longer works.
After upgrading ActivVisionTools, my project no longer works.
A tool is disabled after being added to a form.
Attempting to add AVTNETControl to a Form fails with an error message referring to missing Interop.*.dll assemblies.
External trigger in AVTViewFG does not work.
GUI text is corrupt on systems running traditional Chinese (Taiwan, Hongkong, Macao).
Parameter changes applied in design mode are lost.
Reference manual displays "The page can not be displayed"
Starting the demo application ActivViewer causes an immediate crash.
The message "Error loading HALCON library" appears when starting an ActivVisionTools application.
The message "License file missing or corrupt" appears when starting an ActivVisionTools application
The message "Some settings of the DSC file have been lost" appears when starting an ActivVisionTools application.
The message "You do not have an appropriate license to use this functionality" appears when starting an ActivVisionTools application



- General information
  What is ActivVisionTools?
ActivVisionTools are the outstanding result of MVTec's expert knowledge in machine vision: a quick and efficient application creator with an easy-to-use graphical interface. By directly supporting digital I/O boards, and with more than 25 interfaces to widely-used image acquisition devices, ActivVisionTools can be integrated into any production process. The tools are a set of ActiveX controls with programmable interface. ActivVisionTools' open software architecture is extensible and scalable to always fit your needs. Several tools such as ActivDataCode, ActivOCR, ActivBarcode, ActivMeasure, ActivAlignment, ActivBlobFinder, are based on the established HALCON library.
- ActivVisionTools and HALCON
  Are there any compatibility problems known with specific versions of ActivVisionTools and HALCON?
ActivVisionTools 3.2 requires at least HALCON 8.0.2
ActivVisionTools 3.1 requires at least HALCON 7.1.0.1
ActivVisionTools 3.0 requires at least HALCON 7.0.1.1
When installing ActivVisionTools, the designated HALCON version is installed automatically, and we recommend not to change it. However, it is usually no problem to upgrade to a newer maintenance release of HALCON (increase in the third part of the version number). If you wish to install a newer version of HALCON on a system running ActivVisionTools, please contact your local distributor.
  How is ActivVisionTools related to HALCON?
See here.
- Internationalization
  Does the ActivVisionTools GUI support different languages?
Yes, for an up-to-date list of supported languages see here.
- System Requirements
  Do I need a specific development environment to use ActivVisionTools?
ActivVisionTools supports Microsoft Visual Basic 6.0, Visual C++ 6.0, Visual Studio .NET, and Visual Studio 2005. It is also possible to use Visual Studio 2008, with one limitation (see "Adding AVTDataView to the Form does not work in Visual Studio 2008"). Also see "Is it possible to use ActivVisionTools with Delphi?".
  Do I need a specific edition of my development environment to use ActivVisionTools?
No, Standard or Express Editions are already sufficient for using the full functionality of ActivVisionTools. Buf of course, there may be restrictions on the functionality of the development environment, e.g., Visual C++ 2005 Express supports the creation of Windows Forms applications, but not of MFC applications. Regardless of the edition, you need at least version 6.0 for Microsoft Visual Basic or Microsoft Visual C++.
  Is it possible to use ActivVisionTools with Delphi?
Although we do not officially support Delphi, we expect no problems using those project types of Borland Delphi 2005 or later which target the Microsoft .NET Framework, i.e. Windows Forms Applications for either Delphi or C# Builder. You need to import the ActiveX controls of ActivVisionTools via the menu item Component > Installed .NET Components. Please refer to the section "Using ActivVisionTools" in the "Getting Started with ActivVisionTool" manual and proceed by following the steps described for Visual Basic .NET. The same steps will be required in your case, although the access may be different.
- Tips and Tricks
  How to make use of different image processing parameters for each ROI.
In case that you want to have different image processing parameters for each ROI, you simply use multiple instances of the image processing tool. Then you create each ROI for the instance of the tool with the corresponding parameters.
  How to reset all stored values like ROIs.
Each application of ActivVisionTools uses one file to store the current status. The file has the same name as the executable with the extension .dsc. In the case of a Visual Basic 6.0 project the name of the project is used. The DSC file is stored in the same directory as the project or executable. If the DSC file is cleared, all values are set to their default and data like ROIs are removed.
  Loading an ActivVisionTools application takes a very long time.
On startup, ActivVisionTools perform an autodetection of the available image acquisition devices, which takes some time. It is possible to avoid this, by explicitely specifying a list of frame grabber interfaces. To do so, append the following line to the file AVTView.nls in the directory %AVTROOT%\nls:
AVTView.FGSelection A File;<name>
Please make a copy of the file before doing so, and be sure to use the exact spelling and capitalization. Replace <name> with the name of the desired frame grabber interface as specified in the Name selection box in the dialog AVTViewFG. If the entry AVTView.FGSelection already exists, replace the entire line. You can specify multiple names by separating them with semicolons (;).
  Termination of an ActivVisionTools application takes a very long time.
If you use ActivDigitalIO in your application, ending the application requires some additional cleaning up, which may cause a few seconds delay before the application actually terminates.
- Trouble Shooting
  ActivView is disabled when running the application (no popup menu, zoom checkbox grayed out).
Unless you are seeing further error messages, this is usually caused by not having a master instance of AVTView in the application. In this case, set the property IsMasterView to True on an instance of AVTView at design time.
This problem may occur after adding two instances of AVTView and then deleting the master view, but also due to the following behavior: When creating a new ActivVisionTools application after having worked with another ActivVisionTools application previously under Visual Studio .NET (and probably also Visual C++ 6.0), new instances of AVTView will initialize as slave instances if they still find a ghost of the old Master View in the designer process. To avoid this problem, restart Visual Studio before creating a new ActivVisionTools project.
  Adding a tool to my Form causes the development environment to crash.
On Windows 2000 and Windows XP, please make sure you have at least Power User privileges. When using .NET, make sure you are a member of the group "Debugger User". Also try to start the demo application ActivViewer, to see if there is a more general problem with the installation. If this also crashes, see the entry "Starting the demo application ActivViewer causes an immediate crash".
  Adding AVTDataView to the Form does not work in Visual Studio 2008
The component displaying the spread-sheet-like data grid does not work in the Form designer of Visual Studio 2008. This means you cannot add the tools AVTDataView, AVTViewProperties, AVTDecisionViewResults, AVTDecisionViewDefaults, and AVTDIOChannelAssignment to the Form in the Form designer directly. This problem only concerns the designer: All tools work fine at runtime - either by opening dialogs via the popup menu or by adding tools to the Form in code (create using "new AxAVTDataView()", add to the Form using "Form.Controls.Add()", then adapt the properties Left, Top, Width, and Height to position).
  After a runtime error Visual Basic always reports a license error.
In the case of a runtime error Visual Basic loses control of the OCX controls and returns the missleading error message of having no license for the control. The effect is, that no ActivVisionTool can be used any longer. To get rid of this problem, quit Visual Basic and start the project anew.
  After creating the application (executable) the program does not display any images.
When you create an application and define the execution status to application mode (in AVTViewExecute) the default behavior is that AVTView does not display images (to speed up the application). In addition by default the popup menus are disabled. This has the effect that you do not see any images and you cannot change this by activating AVTViewDisplayModes via a popup menu. The solution is either to change the properties DisplayImageAppl and/or UsePopUpAppl before compiling or to add AVTViewExecute to the GUI.
  After upgrading ActivVisionTools, my application no longer works.
Please recompile the application after upgrading ActivVisionTools.
  After upgrading ActivVisionTools, my project no longer works.
The behavior depends both on the old and new ActivVisionTools versions, and on the development environment used. Please refer to the compatibility information in the release notes for more information.
  A tool is disabled after being added to a form.
AVTView must be on the form for the tools to work correctly. Maybe you added a support tool without the corresponding master tool. Typical examples are if you add AVTFeatureCalcBasic without AVTFeatureCalc, or AVTBlobFinderProcess without AVTBlobFinder.
Solution: Add the corresponding master tool.
Background: If an ActivVisionTool consists of multiple subtools (i.e., multiple ActiveX controls), one is defined as the so-called master tool, the others are classified as support tools. The master tool is typically named like the ActivVisionTool itself, with "Activ" being replaced by "AVT" (e.g.: ActivView -> AVTView). In the Visual Basic toolbar, the icon of the master tool appears before those of the support tools. All support tools can be opened in user mode via a menu which pops up when clicking on the master tool with the right mouse button.
A tool is also disabled if an error occured or the license is missing. In these situations, however, an error box should appear.
  Attempting to add AVTNETControl to a Form fails with an error message referring to missing Interop.*.dll assemblies.
AVTNETControl depends on ActivVisionTools wrapper libraries which will be generated by Visual Studio after adding the first tool (i.e., an ActiveX control from the ActivVisionTools library). Therefore, please add AVTView to your application before adding AVTNETControl. Possibly, you might need to remove broken references or restart with a fresh project after you encountered the above problem.
  External trigger in AVTViewFG does not work.
External trigger may not work within the Microsoft Visual Basic environment. You may have to build an EXE file and run it stand-alone to use this functionality.
  GUI text is corrupt on systems running traditional Chinese (Taiwan, Hongkong, Macao).
Due to an installation bug in ActivVisionTools 3.1, language files for simplified Chinese may be installed on systems where traditional Chinese should be used. You need to manually replace the files in the "nls" folder of your ActivVisionTools installation directory (%AVTROOT%). The correct files can be obtained from the installation CD under nls/chinese_traditional, or from your local distributor when using a downloaded WWW installation.
  Parameter changes applied in design mode are lost.
Please note that the design-time functionality of ActivVisionTools is only available with Visual Basic 6.0. With Visual C++ or Visual Studio .NET, please change the parameters when the application is running. Properties which are not available in the normal GUI can be set via AVTViewProperties.
If you are experiencing this problem with Visual Basic 6.0, check if the Project Manager Add-In is loaded. If not, try to register it manually. This can be done by typing "regsvr32 <avt-install-dir>\bin\i586-nt4\AVTProjectManager.dll" in the Run dialog box or the command shell.
  Reference manual displays "The page can not be displayed"
A security feature of Windows or Internet Explorer is active which considers the compiled HTML file to be a security hazard. This problem most often occurs when opening a *.chm file from a network drive on systems running Windows XP with SP2, which may be the case when you downloaded the reference manual instead of installing ActivVisionTools (which should be on a local drive anyway). Please copy the file to a local drive. If the problem persists, right-click avtrefmanual.chm in Windows Explorer, select "Properties" and click on the button "Unblock" if available. Also make sure that the full path of the file location does not contain any funny looking characters (like #). Finally, for those who boldy edit where no one should edit at all, ensure that the registry contains a DWORD value MaxAllowedZone under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions. The value of MaxAllowedZone should be 0 to allow access on local drives, and 1 to allow access from network drives (and may allow nothing if the value is missing).
  Starting the demo application ActivViewer causes an immediate crash.
On startup, ActivVisionTools perform an autodetection of the available image acquisition devices. In rare cases it is possible that the presence of an incompatible driver version causes this problem. You can test this by disabling the autodetection (which means you can only load images from file). To do so, append the following line to the file AVTView.nls in the directory %AVTROOT%\nls:
AVTView.FGSelection A File
Please make a copy of the file before doing so, and be sure to use the exact spelling and capitalization. If the entry AVTView.FGSelection already exists, replace the entire line. If this prevents the crash, you need to update your drivers. Please check the documentation of the corresponding frame grabber interface to find out about the required driver version, or contact your local distributor for more information.
  The message "Error loading HALCON library" appears when starting an ActivVisionTools application.
The problem is that Windows is not able to locate the HALCON DLL. This is typically caused by a corrupted PATH variable: %HALCONROOT%\bin\i586-nt4 is missing in PATH.
  The message "License file missing or corrupt" appears when starting an ActivVisionTools application
This license error often has nothing to do with a missing or invalid ActivVisionTools or HALCON license. Instead, the error may be caused by libraries which are not correctly registered. On some systems, the installation will only be successful if you log in with administrator privileges one more time after the system has rebooted. If this fails, you can attempt to mend the problem manually by calling regsvr32 for ActivVTools.ocx, ActivVToolsLib.dll, AVTDigitalIO.dll, AVTSheet.ocx, AVTDictionary.dll and AVTProjectManager.dll in the bin\i586-nt4 directory of the ActivVisionTools install directory.
  The message "Some settings of the DSC file have been lost" appears when starting an ActivVisionTools application.
This is normal when starting an application for the first time from Visual Studio .NET or Visual C++ 6.0. The DSC file will then be created if the AVTNETControl is added for .NET or the appropriate code changes have been applied for C++ (see Advanced User's Guide). Furthermore, there is a known bug in 3.1 which may lead to some strange characters (?) being appended to the name of the DSC file when using Visual Studio 2005. As a workaround, please disable the hosting process from the debug tab of the project properties.
  The message "You do not have an appropriate license to use this functionality" appears when starting an ActivVisionTools application
This error message is displayed by the Windows OS, if a library, which is needed by an application, is not correctly registered in the Windows registry. In conjunction with ActivViewer, on some systems the library SCRRUN.DLL is not correctly installed and responsible for that error. You can find the file on the ActivVisionTools DVD or CD in the folder \misc\i586-nt4 or download it here from our FTP server . Copy the file into the Windows system directory (e.g. C:\WINNT\system32) and register it manually with the system program regsvr32. This can be done by typing "regsvr32 c:\WINNT\system32\scrrun.dll" in the Run dialog box or the command shell.
 


© Copyright 2010, MVTec Software GmbH · corporate/legal/privacy information.
- ActivVisionTools Homepage






· Website contact: Webmaster