This is the documentation for developers who want to work with the Python interface of Impact Acquire.
- Note
- The Python interface for Impact Acquire will be shipped as source code that needs to be compiled for your target environment before it can be used! Please read Building And Running Applications Using Impact Acquire very carefully first!
Every program written using this interface will start in one or the other form with creating an instance of the class mvIMPACT.acquire.DeviceManager. Each application needs at least one instance of this class while devices are being accessed. To find out how to gain access to a certain device look at the detailed description of this class.
- Note
- Please carefully read the detailed description of the mvIMPACT.acquire.DeviceManager at least once as there are some important things to keep in mind when designing your application! Not doing so might result in severe headache so be warned!
Once a reference to the desired device represented by an instance of the class mvIMPACT.acquire.Device has been obtained every other device related properties or functions can be accessed.
- Note
- When the last instance to objects of the class mvIMPACT.acquire.DeviceManager is destroyed, every device pointer or handle to interface properties will become invalid automatically, as the destructor of the device manager decrements an internal usage counter, that automatically closes all devices and frees allocated resources, once this usage counter reaches 0. So make sure there is always at least one instance of the device manager present in your application.
Some source code samples how to locate a certain mvIMPACT.acquire.Device also can be found in the detailed description of the class mvIMPACT.acquire.DeviceManager.