Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6180341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:49:41+00:00 2026-05-24T00:49:41+00:00

dear fellow programmers! I’d really appreciate a few answers or hints concerning following problem:

  • 0

dear fellow programmers!

I’d really appreciate a few answers or hints concerning following problem:

The topic is Digital Signal Processing (DSP), Code Composer Studio 3.1 and Real Time Data Exchange (RTDX), as explained in this paper. I’ve had a hard time understanding the topic, since I’m a DSP and C – Noob. After I read some papers and worked through Code Composer Help-Tutorials, I finally had some success (Yay, SOMETHING happens!), though I’m still running in some errors I don’t understand while implementing a simple Target-to-Host Data Exchange.

The Code thats running on the target (TMS320C6713 DSK), obliged to send 100 integers, one after the other:

RTDX_CreateOutputChannel( ochan );
void main()
{

    int data = 0;
    int status;

    TARGET_INITIALIZE();
    RTDX_enableOutput( &ochan );

    puts( "Start writing!\n" );

    while(data < 100){

        data++;

        /* send an integer to the host                              */
        status = RTDX_write( &ochan, &data, sizeof(data) );

        if ( status == 0 ) {
            puts( "ERROR: RTDX_write failed!\n" );
            exit( -1 );
        }
    }
    while ( RTDX_writing != NULL ) {
            #if RTDX_POLLING_IMPLEMENTATION
            RTDX_Poll();
            #endif
    }

    /* disable the output channel                               */

    RTDX_disableOutput( &ochan );

    puts( "Program Complete!\n" );

}

On the Host I run a simple Java/Jacob Implementation as OLE Automation Client that writes the received integers to the Console.

So far, so good, the program works, BUT -> only till integer about 86, then the RTDX_write fails.

As stated in the paper I referred to, “The target application calls routines in the User Library Interface that buffer the data and pass it to the Communications Interface.” So maybe it’s a buffer problem? Nonetheless I didn’t find any possibilities to handle the buffer…

Or maybe it’s just a nooby-programming-mistake, as I said I’m not experienced with C.

So any hints are appreciated. Maybe someone has experience with RTDX and had the problem before or maybe someone can tell me how I can find out more about that error. Also I see that the topic is a quite specific one, so if more information is needed I can give…

Thank you very much in advance!

Andy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:49:42+00:00Added an answer on May 24, 2026 at 12:49 am

    I think you are overwhelming the channel with data faster than it can handle. Note that in the example they have wrapped the write in a while loop:

    while ( /* limit TOY EXAMPLE data rate */
        !RTDX_Data_Write( &ochan, data, sizeof(data) ) /* send data */
    );
    

    The commentary says:

    This toy example generates data at an extremely high rate limited only
    by CPU speed. In the example, we are using the return value of
    RTDX_Data_Write to determine if the data was successfully logged. The
    surrounding while loop does a busy wait until the data can be accepted

    The idea is that when RTDX_Data_Write returns 0 it means the client was busy, so you just try again until it is ready to accept data.

    In a real embedded application, your main loop probably won’t run at an unlimited speed, but at some fixed frame rate. So you can design your data packet with a size that the channel can handle. This TI forum post suggests that the maximum data rate is around 20Kbytes/sec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Dear fellow programmers, I am working on my B&B's website www.bordemundo.com and would like
Dear Fellow Android Developers! EDIT: Thank you all for your answers. I see from
Dear g++ hackers, I have the following question. When some data of an object
Dear all, I have a select query that currently produces the following results: DoctorName
Dear stackoveflow, I have this problem. I'm working with an old version of mssql
Dear All, I am trying to parse the following HTML fragment, and I would
Dear fellow developer, for some reason updates for 1720 records takes around 15 seconds
Dear Friends good afternoon. My problem may be this is very basic one i.e.
Dear Scholars I am trying to parse a RSS feed with the following item
Dear Powershell Gurus, I have a few thousands of files in a folder called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.