필터 지우기
필터 지우기

Crashing of software on run for S Function Builder

조회 수: 1 (최근 30일)
Ritu
Ritu 2023년 10월 10일
댓글: Ritu 2023년 12월 18일
Hi team,
I need to call c/c++ files in MATLAB using S function builder. The MATLAB software is crashing as soon as I run the model in Simulink. For finding the error I wanted to attach a debugger following the steps mentioned in document Debugging C/C++ S-Functions » Guy on Simulink - MATLAB & Simulink (mathworks.com). Somehow, the breakpoints in the Visual studio file is not inserting saying that the pdb file is not generated. I wanted to connected to the technical team at Mathworks for debugging the error. Could you please help me to do so.

답변 (1개)

Hua Bai
Hua Bai 2023년 10월 19일
Hi Ritu, did you build the sfunction with debug symbol? I mean is the "Create a debuggable MEX-file" check box checked when you built S-Function, if not, the pdb file is not generated.
By the way, if you are using 23b, you can follow the steps mentioned in the section of "Automatically Launch Third-Party Software from Simulink for Debugging C MEX S-Function" of this document: https://www.mathworks.com/help/simulink/sfg/debugging-c-mex-s-functions.html to debug your s-function builder blocks.
  댓글 수: 1
Ritu
Ritu 2023년 12월 18일
Hi team, The functin is debugging now in Simulink but not in Simulink Real Time. While building the model, it is searching for directories in Real time folder(SimCoreTest_slrealtime_rtw below) which it has created and not the actual folder. This is giving warnings as below and we are scared that running it might create more of error. The warnings are as below

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by