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.

CCS: Monitoring signal in scope in simulink

Other Parts Discussed in Thread: TMS320F28335

Tool/software: Code Composer Studio

Hi,

I want to know if any solution to make the monitoring of signals in scope in simulink when developping  the control algorithm with simulink+css.

I saw that one solution is proposed by  using rtdx but I want to know if exist another solution developped by TI regarding this issue.

Best regards.

  • Hello,
    Questions regarding Matlab and Simulink are best directed towards The Mathworks support
    www.mathworks.com/support

    However, there is a Mathworks representative here who has replied to related questions on this forum so he may be able to reply here also.

    One note about RTDX - it has been discontinued is support for several years now so it is not recommended to use it for any solution going forward.

    Thanks
    ki
  • Hi,

    This is what you may be looking for.

    Regards,

    Venkatesh C

  • Hi,

     

    Many thanks for your reply.

    I use matlab11 (32 bit) with CSSV7 and I try linking diode and its working very well.

    I want to make the monitoring of signal and to make modification of parameters with Simulink: I followed all steps in example but each time I receive error.

    Steps which I do:

    1)      Hardware implementation: I define the target as follow

    2)      Code generation : here I don’t know how doing but I followed the example (I make gmake as make command)

     

    3)      Interface: I select TIC28X and I select external mode

    In Target interface exist two option: I choose serial-win32

    And I try to build but each time error

    Thanks you for your help

    Best regards.

    Mohamed A. Fnaiechexternal.pdf

    Hi,

     

    Many thanks for your reply.

    I use matlab11 (32 bit) with CSSV7 and I try linking diode and its working very well.

    I want to make the monitoring of signal and to make modification of parameters with Simulink: I followed all steps in example but each time I receive error.

    Steps which I do:

    1)      Hardware implementation: I define the target as follow

    2)      Code generation : here I don’t know how doing but I followed the example (I make gmake as make command)

     

    3)      Interface: I select TIC28X and I select external mode

    In Target interface exist two option: I choose serial-win32

    And I try to build but each time error
    Thanks you for your help
    Best regards.
    Mohamed A. Fnaiech
  • Hi,

    Please can you provide your model & MATLAB version like 2015a??

    Also, please provide details on which board and controller you are trying to working with.

    Best thing would be contact Mathworks Technical Support.

    Regards,

    Venkatesh C

  • Dear Mr. Venkatesh C,

    Matlab 2011 b (32 bit) and I use eZdesp tms320f28335

    you will find attached the PDF file of all steps which I done.

    Best thanks.

    Mohamed Amineuntitled.rar1682.external.pdf

  • Hi,

    Please search for the block "Switch External Mode Configuration"

    1. Double click this block and select the first option.
    2. build-load and run the code on target.
    3. Double click this block and select the 2nd option.
    4. Connect to target using the connect icon in menu bar.

    Regards,
    Venkatesh C
  • Dear Mr. Venkatesh,

    The problem that matlab 2011 is not well configurated as the new version so I so the problem that is located is the "code generation part" :
    Code generation
    System target file>ert.tlc????when I browse I dont find texas instruments

    Build process>compiler optimization level>optimization off
    Build process>tlc options>(no browse) I write by mysel "texas instruments code composer studio v4" or v7.
    Build process>makefile configuration>selected "generate makefile"
    -make command: make_rwt
    -template makefile: ert_default_tmf

    I sent already request to mathwork but no answer until now

    If you have idea about how solve this issue.

    Best thanks.
    Mohamed Amine
  • Hi,

    External mode is supported only on CAN in 2011b and it was only from 2015a that serial support for external mode is added.

    Here is also a video that captures the proper settings that one needs to do to get started with model compilation.

    Please let me know if you see any improvements.

    Regards,

    Venkatesh C

  • Hi Venkatesh C,

    I install Matlab 2016 and the the package embedded coder C2000 and I make all steps in the example of mathwork about the external mode. Actually, the program work and generate as you see. I run the generated program from CSS and it work, but I receive error about the external mode connection.

    Build process completed successfully

    Error:

    Verbose mode is enabled for External mode. You can disable Verbose in Model Configuration Parameters > Hardware Implementation > Target Hardware Resources > External mode.
    Failed to open serial port '\\.\COM11'. The reported error code is: 2 or 0x00000002. Possible causes are:
    a) The target is not powered on.
    b) The specified port number is not correct.
    c) The specified bit rate is not supported by the host machine.
    d) The previous connection was not closed correctly. If this is the case, you may need to re-start MATLAB.
    action: EXT_CONNECT
    Error occurred while executing External Mode MEX-file 'ext_serial_win32_comm':
    Failed to connect to the target. Possible reasons for the failure:
    a) The target is not switched on.
    b) The target is not connected to your host machine.
    c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.

    Caused by:
    ExtOpenSerialConnection() returned an error. More details may be reported in the MATLAB command window.
    Component: Simulink | Category: Model error

    Best thanks for your help.

    Best regards.

    Mohamed Amine

  • Hi,

    We had a similar problem in past.

    This link helped us get around.

    Regards,

    Venkatesh C

  • Hi,
    I saw the link and they advise to cut and to make new jump in order to solve this issue "hardware solutiin".
    Please exist software solution for this issue.
    Best thanks.
    Mohamed
  • Hi,
    I saw that its hardware solution for this issue (cut and make jump) so dont exist hardware solution for this issue.
    Best thanks.
    Mohamed