Effacer les filtres
Effacer les filtres

How do you use a debugger like GDB with a Rapid Accelerator Simulink simulation?

8 vues (au cours des 30 derniers jours)
Patrick
Patrick le 9 Fév 2017
Réponse apportée : Harsh le 13 Fév 2017
I have a Simulink model that I run in Rapid Accelerator mode using the sim() command from within a script. The model contains multiple C/C++ S-Functions that get compiled with mex using the -g flag for debugging symbols. The simulation runs without issue in Accelerator mode, but when I run it in Rapid Accelerator mode, I get a SIGFPE (Floating Point Exception) signal. I've been trying to use GDB to debug this issue, but I can't seem to get it to break on the SIGFPE. When using GDB, I attach to the MATLAB process and then execute the sim() command in MATLAB. However, since RAccel mode runs the sim in a new thread (or process?), I don't know if these are the appropriate steps. Any help would be greatly appreciated. Thanks!

Réponses (1)

Harsh
Harsh le 13 Fév 2017

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by