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
Input will be modified ioState Pylon_State
Input value inDeviceID str | None None Device identifying address
Output value outTotalBufferCount int The total count of processed buffers
Output value outFailedBufferCount int The count of buffers that returned with an error status
Output value outLastFailedBufferStatus int The status code of the last failed buffer
Output value outLastFailedBufferStatusText str The message text of the status code of the last failed buffer
Output value outMissedFrameCount int The count of bad or missed frames between successfully grabbed images
Output value outResynchronizationCount int The count of stream resynchronizations
Output value outLastBlockId int The last grabbed block ID
Output value outNumEmptyBuffers int The number of empty buffers that are not used for grabbing yet
Output value outNumQueuedBuffers int The number of buffers queued at Low Level API stream grabber
Output value outNumReadyBuffers int The number of grab result buffers in the output queue that are ready for retrieval
Output value 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.