BitFlow_GrabImage
Captures a frame using BitFlow frame grabber.
Syntax
C++
Python
def BitFlow_GrabImage( state: BitFlow_BaseState, inBoardNumber: int, inCameraFileName: str, outImage: Image, /, *, inInputQueueSize: int = 4, inTriggerMode: BitFlowTriggerMode = BitFlowTriggerMode.CiTrigFreeRun, inTriggerAssignments: BitFlowTrigAssignments = BitFlowTrigAssignments.Off, inTriggerAPolarity: BitFlowTrigPolarity = BitFlowTrigPolarity.Off, inTriggerBPolarity: BitFlowTrigPolarity = BitFlowTrigPolarity.Off ) -> ( outResult: bool, outFrameID: int )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | BitFlow_BaseState | |||
![]() |
inBoardNumber | int | Index of board | ||
![]() |
inCameraFileName | str | Camera file | ||
![]() |
inInputQueueSize | int | 1 - 200 | 4 | Number of incoming frames that can be buffered before the application is able to process them |
![]() |
inTriggerMode | BitFlowTriggerMode | BitFlowTriggerMode.CiTrigFreeRun | Trigger mode of the current camera | |
![]() |
inTriggerAssignments | BitFlowTrigAssignments | BitFlowTrigAssignments.Off | Assign trigger to acquisition engine | |
![]() |
inTriggerAPolarity | BitFlowTrigPolarity | BitFlowTrigPolarity.Off | Polarity for trigger B | |
![]() |
inTriggerBPolarity | BitFlowTrigPolarity | BitFlowTrigPolarity.Off | Polarity for trigger A | |
![]() |
outImage | Image | Captured frame | ||
![]() |
outFrameID | int | Captured frame ID |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.



