MATLAB: How to select targettype for simulink coder

simulink

I have 2 quarries here
1.In model file which is consisting of xilinx block sets is showing error when i want to generate simulink coder.target language is 'c' and target type is"Generic Real-Time Target"
error is S-function 'negative/AddSub' parameters must be of type double or char for Real-Time Workshop if the S-function does not have TLC.
2. here i am generating simulink coder for a model file consisting of simulinx blocks . i given target language is 'c' and target type is"Generic Real-Time Target"
when generation is in progress its asking in matlab command window 00015: %assign TargetType = "RT"
TLC-DEBUG>
if after generating exe how can we use that for gui…
here what i have to give please help me for this

Best Answer

  1. I don't believe Xilinx System Generator blocks are supported for generating C/C++ code - you can only generate HDL from them.
  2. You probably have TLC Debugging enabled - uncheck the Start TLC Debugger when generating code box on the the Configuration Parameters dialog (select the Debug pane under Code Generation). Now it should not stop at the TLC-DEBUG prompt.