This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM6437 MATLAB generated code video delay problem



Hi,


I generated the code from MATLAB for video capture and display on DM6437. After running this code on DM6437 I felt some amount of delay in video frames and when I run the ""video Preview"" example from code composer dvsdk example it runs fine.... I increase the stack size of Task module in MATLAB generated code but still the results are same.

Whats the problem in it and how can it be solved ???? Is this because of semaphores ?


Regards

Saira

  • Saira,

    I don't think there is any way that anyone can answer this question based on the information that you have provided.  I think you indicate that the DVSDK example works well, but the application that you built is suffering from excessive latency in its per-frame processing.  Generally, altering the stack size will not alter frame latency.  I'm not certain what you are suggesting or asking with regards to semaphores.  Certainly, if you have a critical thread that is being preempted by another thread, then this can cause your application to miss real time deadlines.

    You will need to get better visibility in what's happening with your system.  Depending on what version of CCS and BIOS you are using, you have some pretty sophisticated real-time debugging tools at your disposal that get give you better insights.  The fact that you also have a working DVSDK example to use as a reference should also be quite valuable.

    Dave

  • Thanks David... my problem is solved. My thread was preempted by other thread thats why real time deadlines were missed.

     

    Regards