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.

RTOS/TDA3XEVM: How to design two different frequent data-stream ?

Part Number: TDA3XEVM

Tool/software: TI-RTOS

HI

I want to design a usecase which had channel. 

One data-steam is display the other is the alg-process which output is mete-data

Then merge the two channel together 

and I want to keep the display channel is the same frequent as capture which is 50Hz, the alg-process channel is sub-frequent like 25Hz

How can I achieve it!!

  • Hi,

    Display is a sink link so you can not have any link after display.
    So you will not be able to merge both steam after display.

    But running both stream is possible using dup link.
    You can design your chain like below

    capture -> dup
    Dup -> Display
    Dup -> alglink

    You have to add some logic inside your alg link to drop every alternate frame.
    You can take a reference from encoder link, how targetframerate is set.

    Regards,
    Anuj
  • Hi

    My usecase is

    capture -> alglink(PRE) -> DUP -> MERGE-> ODraw -> Display 【datastream1】
    DUP - > algLink(CAM) -> MERGE 【datastream2】

    Then I the 【datastream1】 which is 50Hz connect to MERGE and the 【datastream2】which is 25Hz conect to MERGE;
    Then the usecase is stop ; The error is that the alglink(PRE) can not get empty output buff
    status_code = AlgorithmLink_getEmptyOutputBuffer(pObj, 0, channelID, &pSystemOutBuf); error
  • Hi,

    If your 2 datastream going to 1 sink the you can not run both of them at 2 different FPS.
    its not possible to do.
    But your above chain should run at 25 Hz and pre alglink should wait for getting the output buffers.

    Regards,
    Anuj