is there any difference between debug mode and release mode in MATLAB?

2 次查看(过去 30 天)
I'm using Robotic System Toolbox, using callback function to read data from a robot.
There is a problem, when I run the code in debug mode, or, in the command line, it works correctly. However, when I run the code in release mode(which means, put the code in a function file, and then run that function file), matlab can't read any data from robot...
I wonder, if there any optimization in release mode that makes its result different from debug mode's. By the way, in release mode, if I use par for (parpool) and drawnow inside that function file, the code works correctly... If I just use par for, or just use drawnow, the code works wrong...
  5 个评论
Walter Roberson
Walter Roberson 2016-7-7
编辑:Walter Roberson 2016-7-7
What kind of callback is being processed, and where is the callback being defined (inside the parfor loop or outside the parfor loop) ?
Dingqiao Zhu
Dingqiao Zhu 2017-3-8
The callback is about Robotics System Toolbox. Matlab client use this callback to receive serial message from Robotic Operation System.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Parallel for-Loops (parfor) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by