Impact Acquire SDK Python
|
A class to represent real time control programs(Device specific interface layout only). More...
Public Member Functions | |
__init__ (self, src) | |
Constructs a new mvIMPACT.acquire.RTCtrProgram from an existing one. | |
getProgramSize (self) | |
Returns the number of program instructions for this program. | |
load (self) | |
Loads an existing program specified by the property mvIMPACT.acquire.RTCtrProgram.fileName. | |
programStep (self, nr) | |
Returns a pointer to a program instruction of the program. | |
save (self) | |
Stores the current state of the program under the name specified by the property mvIMPACT.acquire.RTCtrProgram.filename. | |
setProgramSize (self, newSize) | |
A function to define the number of instructions this program should consist of. | |
Properties | |
filename = property(lib_mvIMPACT_acquire.RTCtrProgram_filename_get, doc=) | |
A string property storing the filename for this program. | |
mode = property(lib_mvIMPACT_acquire.RTCtrProgram_mode_get, doc=) | |
An enumerated integer property defining the current state this program is into. | |
programSize = property (getProgramSize, setProgramSize, None, None) | |
An integer property (read-only) which holds the number program instructions for this program. | |
programState = property(lib_mvIMPACT_acquire.RTCtrProgram_programState_get, doc=) | |
A string property (read-only) containing information about the current state of the program. | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
A class to represent real time control programs(Device specific interface layout only).
Real time control programs can be used to control the way how an when images are exposed and transmitted to the user.
An mvIMPACT.acquire.RTCtrProgram e.g. can be used to achieve a constant frame rate with a desired frequency. This can be done e.g. by triggering the camera with a constant frequency.
Once this program has been defined it can be executed by setting the mode property to mvIMPACT.acquire.rtctrlModeRun. As in this example we do not wait for an external signal the property triggerMode must be set to a value demanding an external signal (e.g. mvIMPACT.acquire.ctmOnHighLevel ; You will find a summary of the valid trigger modes in the sensor specific data in the "Sensor data" chapter of the specific product manual. triggerMode must be set to mvIMPACT.acquire.ctsRTCtrl to inform the driver that the signal generate by the real time program shall be used as the trigger signal.
__init__ | ( | self, | |
src ) |
Constructs a new mvIMPACT.acquire.RTCtrProgram from an existing one.
src | [in] A constant reference to the mvIMPACT.acquire.RTCtrProgram object, this object shall be created from |
Reimplemented from ComponentCollection.
getProgramSize | ( | self | ) |
Returns the number of program instructions for this program.
load | ( | self | ) |
Loads an existing program specified by the property mvIMPACT.acquire.RTCtrProgram.fileName.
The default file extension for these programs is '*.rtp'. If the user doesn't specify this file extension, it is appended automatically. Only files of this type can be loaded by this function.
programStep | ( | self, | |
nr ) |
Returns a pointer to a program instruction of the program.
nr | [in] The index of the program instruction to obtain. |
save | ( | self | ) |
Stores the current state of the program under the name specified by the property mvIMPACT.acquire.RTCtrProgram.filename.
The default file extension for files stored using this function is '*.rtp'. If the user doesn't specify this file extension, it is appended automatically. Only files of this type can be loaded by the function mvIMPACT.acquire.RTCtrProgram.load.
setProgramSize | ( | self, | |
newSize ) |
A function to define the number of instructions this program should consist of.
newSize | [in] The new number of program instructions |
|
static |
A string property storing the filename for this program.
mvIMPACT.acquire.RTCtrProgram s can be stored and loaded from/to XML files. To do this, this property must be set to the desired filename.
|
static |
An enumerated integer property defining the current state this program is into.
In order to affect the behaviour of the image acquisition an mvIMPACT.acquire.RTCtrProgram must be in running mode. Apart from that the property triggerSource must be set appropriately.
Valid values for this property may be: mvIMPACT.acquire.rtctrlModeStop, mvIMPACT.acquire.rtctrlModeRun, mvIMPACT.acquire.rtctrlModeRunRestart.
|
static |
An integer property (read-only) which holds the number program instructions for this program.
|
static |
A string property (read-only) containing information about the current state of the program.
|
static |