Pylon_GetUsbStatistics
Gets GigeVision device statistics data.
Syntax
C++
Python
def Pylon_GetUsbStatistics( state: Pylon_State, /, *, inDeviceID: str | None = None ) -> ( outTotalBufferCount: int, outFailedBufferCount: int, outLastFailedBufferStatus: int, outLastFailedBufferStatusText: str, outMissedFrameCount: int, outResynchronizationCount: int, outLastBlockId: int, outNumEmptyBuffers: int, outNumQueuedBuffers: int, outNumReadyBuffers: int, outOutputQueueSize: int )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
ioState | Pylon_State | ||
![]() |
inDeviceID | str | None | None | Device identifying address |
![]() |
outTotalBufferCount | int | The total count of processed buffers | |
![]() |
outFailedBufferCount | int | The count of buffers that returned with an error status | |
![]() |
outLastFailedBufferStatus | int | The status code of the last failed buffer | |
![]() |
outLastFailedBufferStatusText | str | The message text of the status code of the last failed buffer | |
![]() |
outMissedFrameCount | int | The count of bad or missed frames between successfully grabbed images | |
![]() |
outResynchronizationCount | int | The count of stream resynchronizations | |
![]() |
outLastBlockId | int | The last grabbed block ID | |
![]() |
outNumEmptyBuffers | int | The number of empty buffers that are not used for grabbing yet | |
![]() |
outNumQueuedBuffers | int | The number of buffers queued at Low Level API stream grabber | |
![]() |
outNumReadyBuffers | int | The number of grab result buffers in the output queue that are ready for retrieval | |
![]() |
outOutputQueueSize | int | The size of the grab result buffer output queue |
Multithreaded environment
This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.



