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.

request for help... it is very urgent...please help....

Other Parts Discussed in Thread: TMS320C6416

dear sir/madam,

                             i am being in the process of converting my image processing algorithms into hardware design.For that i have chosen TI's tms320c6416 DSK fixed point processor.In that process i am using MATLAB's embedded target Simulink blockset to implement my desing in dsk.

current scenario i am working with is.....

                             in my design i am using From workspace blockset to call the matrix generated in the matlab environment and i used to give that matrix as a input to the embedded matlab block which has my algorithm matlab coding.

During that process i encountered some problems, they are...

                             in the above process i can simulate that model with out any error...but, during building process to implement in 6416 dsk i got some some error showing that embedded matlab do not support continuous sampling time blocks... could you please suggest any method to rectify that errors or suggest any new method to implement my matlab coding to download and run it through dsk 6416 processors....

                                                                                                            i am eagerly waiting for your reply.thanking you....

  • Is the error from Matlab or CCS?  What's the exzct error message?

  •               first i thank u buddy for your reply.... that error was from matlab only....it displayed as "Embedded matlab block do not support continuous sample time blocks"(From workspace)....{NOTE:This error was shown only during building process while i was trying to implement my algorithm in dsk 6416 but that model generates output perfectly during simulation},But i need to use From workspace block to call the matrix in the work space .Is there any other technique to insert matrix in the workspace to embedded matlab block in the simulink model...?

  • I think you'll be better off requesting support from The Mathworks.  Maybe you'll get lucky and someone will post some info, but I wouldn't count on it.  I'd help if I could, but I don't have any experience with those tools.  Sorry!

  • thanks for your interest in solving my problem.....thanks buddy...

  • Hi Mani,

    From Workspace blocks are not directly supported via Embedded MATLAB. You may be better off using just a constant block to get the data from the MATLAB Workspace into the Simulink model; and when you generate code from that model, the data from the constant block (specified as the variable that you have declared in the base workspace), gets defined as a constant in the generated code.

    If you have MathWorks related questions, feel free to send an E-mail to support@mathworks.com. You may have to provide your license number and contact information.

    hth!

    -arvind

  • Thanks arvind,

                                you have given me a valid solution let me check it.one more doubt in that yaar.after facing that problem i just tried to implement a simple program using if and else condtions [with in embedded matlab function block] like if s=1 assign x=3 else assign x=5..... like that even for that simple program i cant build.during building process it shows generating c codes  and then finallly shows error...as "sprintf is not defined for cell array"... what does it mean?how could i resolve that? how could use constant block without any error?can i use a constant block to call a large square matrix from matlab space?... thanks a lot... i am waiting for your reply.....