Impact Acquire SDK C++
|
For all GenICam™ based devices the following files will be necessary:
In case of mvUSB3Vision or GigE Vision™ devices:
In case of BVS CA-BN devices:
For the GenICam cache it is necessary to make use of the environment variable MVIMPACT_ACQUIRE_DATA_DIR which will be used to store data like the log files generated by Impact Acquire, firmware update files or the GenICam cache. The variable has to be defined to a directory with the following structure:
If the GigE Vision™ capture filter kernel-mode driver shall be used the following files must be shipped as well:
For 32-bit support:
For 64-bit support:
To actually install the GigE Vision™ capture filter driver on the system there are 3 ways to go: Either the tool GigEConfigure or the built-in mechanism of Windows® to install a filter driver can be used.
Using GigEConfigure there are 2 possibilities:
Using the built-in mechanism of Windows® works like this:
First navigate to any of the network connections available to the system and open the properties dialog of that connection.
Here click on Install
...
In the next Windows® select Service and click on Add
....
Now click on Have Disk...
.
Click on Browse
... and navigate to the folder containing the GigE Vision™ capture filter kernel-mode driver files mentioned above.
Select the file mvGigECapture.inf
and click on Open
Click on OK
Afterwards the GigE Vision™ capture filter driver will installed and active on EVERY network connection of the system. If that is not desired, it can be enable and disabled from the properties dialog of the network connection that shall be modified by checking or unchecking the box in from of the Balluff Impact Acquire filter driver entry.
The third approach is a possibility provided by the functionality of the mvGenTLProducer.cti which allows to install the GigE Vision™ capture filter driver using the Impact Acquire API. At first there are some values which have to be written to the Registry of Windows® to specify the GigE Vision™ support and the path to the GigE Vision™ filter driver which shall be installed
The entry HKEY_LOCAL_MACHINE/SOFTWARE/Balluff/Settings
has to be generated and afterwards the keys from the following table have to be created.
Name | Type | Value |
---|---|---|
GEV_SUPPORT | DWORD | 1 |
GEV_DRIVER_SOURCE_PATH | String | MVIMPACT_ACQUIRE_DIR%\KernelDrivers\mvGigECaptureDriver(x64)(SHA256.EV)\mvGigECapture2.inf |
GEV_DRIVER_SOURCE_PATH
might differ depending on the source of the kernel driver files. See General Considerations When Shipping Kernel Drivers as well. Afterwards some small application needs to load the required TLIMV_InstallDriverFromRegistry
function from mvGenTLProducer.cti. The following code shows how this would work:HKEY_LOCAL_MACHINE
entries, the application utilizing this functionality needs to be called with administrator permissions. Of course this cannot only be done using a C/C++ application as shown here but also by any other mechanism that can write to the Registry and can call a DLL function that doesn't require parameters. So this can also be done from within a WiX installation package or some C# application for example.For USB3 Vision™ device support the following files correctly signed for the target platform must be shipped as well:
For 32-bit support:
For 64-bit support:
Experienced users are encouraged to use the Microsoft Driver Install Framework for applications to deploy this driver on the target system (http://msdn.microsoft.com/en-us/library/ms790295.aspx). This is the recommended way for installing device drivers.
For BVS CA-BN device support the following files correctly signed for the target platform must be shipped as well:
For 32-bit support:
For 64-bit support:
Experienced users are encouraged to use the Microsoft Driver Install Framework for applications to deploy this driver on the target system (http://msdn.microsoft.com/en-us/library/ms790295.aspx). This is the recommended way for installing device drivers.
Apart from that, the GenICam™ runtime this framework has been linked with must be installed on the target system. The runtime modules are contained in the merge modules belonging to this installation package.
The framework will try to locate the GenICam™ runtime in %MVIMPACT_ACQUIRE_DIR%/Toolkits/GenICam_v<major>_<minor> thus if you plan to distribute the runtime in a different way you need to setup you environment accordingly as described by the GenICam™ standard.