Borrar filtros
Borrar filtros

segmenation violatio error while simulating s function builder

2 visualizaciones (últimos 30 días)
sai vasavi
sai vasavi el 14 de Mzo. de 2013
Hi, I have one algorithm which is developed in C.In C project,main() is calling all the other methods required.Now I am trying to integrate this legacy code in matlab/simulink by using s function builder.In s function builder,directly I am calling main() by creating function pointer to call this method.When I started the simulation,it is throwing segmentation violation error and pop uping the stack status in command window and matlab session is getting terminated.Please can anyone help me in fixing this. Thanks in advance Sai

Respuestas (1)

TAB
TAB el 14 de Mzo. de 2013
Legacy code tool is best the best way to integrate legacy C-code in simulink. It generates the s-function automatically with all required function call. You have to just do a proper configuration.
  5 comentarios
Kaustubha Govind
Kaustubha Govind el 15 de Mzo. de 2013
Select "Create a debuggable MEX-file" in the S-function Builder Build Info pane, to replace step#2 for debugging in a third-party environment, and follow the remaining instructions.
sai vasavi
sai vasavi el 15 de Mzo. de 2013
Thanks Kaustubha for your quick reply.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by