How to get Queue_Overflow?

Post Reply
Ushikubo Tomohiro
Posts: 46
Joined: Thu Oct 21, 2010 2:02 am
Location: Japan

How to get Queue_Overflow?

Post by Ushikubo Tomohiro »

Hi.

In the Camera SDK, there is a description like the under.

class CLAPI HealthMonitor
{
public:
HealthMonitor();
~HealthMonitor();

enum Types
{
Health_Alive = 0,
Health_Receiving_Frames,
Health_Invalid_Packet,
Health_Invalid_Header,
Health_Invalid_Footer,
Health_Invalid_Grayscale,
Health_Segment_Overflow,
Health_Object_Overflow,
Health_Aggregation_Overflow,
Health_Frame_Queue_Overflow,
Health_Large_Command_Queue,
Health_FrameGroup_Queue_Overflow,
Health_Type_Count,
Health_XACT_Error
};

By using this code, I think I will get various errors.
I have a two question about this code.

i)Can the cue overflow or the frame group cue overflow exist after the camera starts be detected?

ii)Would you give me a coding example, if it is possible?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: How to get Queue_Overflow?

Post by beckdo »

Yes, the health monitor is there to provide real-time information regarding the current status of the camera.

These health messages are displayed in the lower left hand corner of the sample application windows as well. A good way to trigger one on the sample application is click and resize the window size. You'll see frame queue overflow momentarily.

Here some example code to show how you might go about displaying it:

Code: Select all

camera->Health()->Update();
for(int i=0; i<camera->Health()->ItemCount(); i++)
	printf("%s\n", camera->Health()->ItemText(i);
for(int i=0; i<camera->Health()->InverseCount(); i++)
	printf("%s\n", camera->Health()->InverseText(i));

Post Reply