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.

Viewing the Real time graph in DSK 6713

Hello folks,

                    I am new to working on the DSP(DSK 6713,CC studio v3.1). I am working on a program to view the graph of the FFT of a real time audio input to the DSP.I don't know how to view the graph in the real time ,I tried to enable the Real time mode from going to Debug ->Real time mode but the option is inactive.

I would really appreciate any help.

Thanking You

Uday

  • Greetings,

    You will need to use RTDX/HSRTDX over JTAG to your PC running either Matlab, National Instruments RTDX or any other legacy compatible RTDX engine on the PC to receive and display your FFT data in real time.  Such Real Time Data Exchange has certain bandwidth limitation.  You can output your FFT on an analog  port on the DSK and view it on a scope in Real Time.

    Good Luck,

    Sam

  • Hi Sam,

                Could you please throw some light as to how to interface he RTDX with the PC.

    Thanks

    Uday

  • Greetings,

    Please read http://processors.wiki.ti.com/index.php/Real_Time_Data_eXchange_(RTDX) and http://processors.wiki.ti.com/index.php/High_Speed_RTDX_(HSRTDX)

    Matlab/Simulink RTW supported these up to recent releases where TI dropped the interface (as 6/24/10).

    National Instruments Debugging Workbench product "LABVIEW DSP TEST TOOLKIT FOR TI DSP" supported these.

    TI had a PC host based low layer dll to support the interface.

    Good Luck,

    Sam

  • Hi Sam,

               Thanks a lot  for your help so far.

    I have Matlab version (7.9.0)R2009b and CCs v 3.1.My target is DSK6713.I wanted to know that are they compatible for using HSRTDX.

    Also,if you can tell is there some other way to view the real time output on the DSK6713 apart from using RTDX.

    Thanking You

    Uday

  • Greetings,

    If your 2009b contain similar components to the following

    MATLAB                                                Version 7.8        (R2009a)
    Simulink                                              Version 7.3        (R2009a)
    Communications Blockset                               Version 4.2        (R2009a)
    Communications Toolbox                                Version 4.3        (R2009a)
    Embedded IDE Link CC                                  Version 3.4        (R2009a)
    Real-Time Workshop                                    Version 7.3        (R2009a)
    Real-Time Workshop Embedded Coder                     Version 5.3        (R2009a)
    Signal Processing Blockset                            Version 6.9        (R2009a)
    Signal Processing Toolbox                             Version 6.11       (R2009a)
    Target Support Package TC6                            Version 3.6        (R2009a)

    Then you should be able to use it.

    As I suggested earlier, you can output the Real FFT values to a DAC on the DSK and view the contour on a scope.

    Good Luck,

    Sam

  • Hi Sam,

                 I have tried to see the FFT on the scope but have been unsuccessful.

      As for the RTDX,I came across a pdf  from TI of reading data from a target application.As per the instructions I loaded the h2t.out file in the folder dsk6713\rtdx\h2t  in CC studio v3.1. Then in Matlab I loaded the file h_readmsg.m.After running the file I am getting the following errors in Matlab.

    Warning: 'ccsdsp' will be removed in a future version. Use 'ticcs' instead.
    > In ccsdsp at 53
    ??? Error using ==> cu_compareAndWarnCCSVersions at 53
    This version of the Embedded IDE Link does not support your
    version of Code Composer Studio(TM) IDE.
    The Code Composer Studio(TM) version supported in this release is 3.3.
    Refer to the Embedded IDE Link data sheet
    for more information on product requirements.

    Error in ==> ticcs>CheckIfIdeVersionIsSupported at 192
    cu_compareAndWarnCCSVersions(apiver,'warn');

    Error in ==> ticcs>Connect2App_CheckIdeVersion at 174
    CheckIfIdeVersionIsSupported(hccs);

    Error in ==> ticcs at 58
    hccs = Connect2App_CheckIdeVersion;

    Error in ==> ccsdsp at 56
    h = ticcs(varargin{:});

    Below is the file h_readmsg.m

    function void = h_readmsg()
    cc = ccsdsp;
    rtdx_ochan = cc.rtdx;
    rtdx_ochan.enable;
    open( rtdx_ochan, 'ochan', 'r' );
    timeout_msg = 'Timeout';
    NOMOREDATAMSG = 'No more data is available!';
    errmsg = NaN;
    while ( isempty( findstr( timeout_msg , errmsg ) ) )
    try
    % read data
    data = readmsg( rtdx_ochan, 'ochan', 'int32' );
    % display data
    disp( data );
    catch
    errmsg = lasterr;
    disp( NOMOREDATAMSG );
    break;
    end
    end
    close( rtdx_ochan,'ochan' );
    return;

    Please let me know what is the problem.Is the version of the CC studio not compatible for the RTDX here .

    Thanking You

    Uday 

  • Hi Sam,

                 I have tried to see the FFT on the scope but have been unsuccessful.

     As for the RTDX,I came across a pdf  from TI of reading data from a target application.As per the instructions I loaded the h2t.out file in the folder dsk6713\rtdx\h2t  in CC studio v3.1. Then in Matlab I loaded the file h_readmsg.m.After running the file I am getting the following errors in Matlab.

    Warning: 'ccsdsp' will be removed in a future version. Use 'ticcs' instead.
    > In ccsdsp at 53
    ??? Error using ==> cu_compareAndWarnCCSVersions at 53
    This version of the Embedded IDE Link does not support your
    version of Code Composer Studio(TM) IDE.
    The Code Composer Studio(TM) version supported in this release is 3.3.
    Refer to the Embedded IDE Link data sheet
    for more information on product requirements.

    Error in ==> ticcs>CheckIfIdeVersionIsSupported at 192
    cu_compareAndWarnCCSVersions(apiver,'warn');

    Error in ==> ticcs>Connect2App_CheckIdeVersion at 174
    CheckIfIdeVersionIsSupported(hccs);

    Error in ==> ticcs at 58
    hccs = Connect2App_CheckIdeVersion;

    Error in ==> ccsdsp at 56
    h = ticcs(varargin{:});

    Below is the file h_readmsg.m

    function void = h_readmsg()
    cc = ccsdsp;
    rtdx_ochan = cc.rtdx;
    rtdx_ochan.enable;
    open( rtdx_ochan, 'ochan', 'r' );
    timeout_msg = 'Timeout';
    NOMOREDATAMSG = 'No more data is available!';
    errmsg = NaN;
    while ( isempty( findstr( timeout_msg , errmsg ) ) )
    try
    % read data
    data = readmsg( rtdx_ochan, 'ochan', 'int32' );
    % display data
    disp( data );
    catch
    errmsg = lasterr;
    disp( NOMOREDATAMSG );
    break;
    end
    end
    close( rtdx_ochan,'ochan' );
    return;

    Please let me know what is the problem.Is the version of the CC studio not compatible for the RTDX here .

    Thanking You

    Uday 

  • Greetings,

    Since you listed the use of R2009b, I can only speculate from the multiple error messages that Matlab is complaining about the use of CCS3.1 IDE and looking for CCS3.3 IDE.

    Good Luck,

    Sam