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.

Finding variable containing image values in the c code generated from simulink

Hi!

       I am Barani. I am doing an image compression & decompression project using C6713 DSK. The algorithm used is DCT and IDCT. I created a simulink model for the project. The C code for the css project was generated through Simulink and got downloaded to the kit.

      Now i am trying to view the decompressed image in CCS window itself through view -> graph -> image option.

      Since the code was generated though simulink, i am unable to find the variable containing the decompressed image values. I am beginner to image processing.

      Can any one help me in finding the variable, containing the decompressed values or is there any other way to view the decompressed image using C6713 dsk.


Regards,

Barani Karthick.

  • Greetings,

    Will you please share the revision of CCS and Matlab/Simulink used.  Also does your simulink model store the signal at the end of the processing chain? because if you do not, you may not have an instance of the decoded signal in global memory, and only available in local memory during function call tree down the decode chain.

    Sam

  • Greetings Sam,

                   Thank you for your support.

                   The CCS version i am using is 3.3. The Matlab version i am using is 7.11 (R 2010B release).

                    And i am just directing the IDCT block for image image decompression to video viewer block. So I doubt that the simulink model doesn't store the signal at the end of the processing chain.

                   If i have to store the signal whether i have to use the TO WORKSPACE block or what else i should do to store the signal. Kindly guide me regarding in this case.

    Thanking You!

    Regards!

    Barani Karthick.

  • Greetings,

    Since the C6713 DSK has no corresponding hardware to emulate for you a video viewer block, likely the Simulink coder optimized out that part.  You will be better off to sink the output to workspace, and let the Simulink code stitch in for you the RTDX transport for that, then you should have the output in a visible storage passed on to the RTDX ISR.

    Good Luck,

    Sam

  • hello baran and sam

                         please have a quick look at my problem and reply soon...it would be a big favour

    i am trying to generate code for ccs through simulink for an image processing project....but in c6713 library i cannot find the block which should be used to get the image input from the vm3224k2 daughter card interfaced with c6713 dsk board..

    please guide me....