MATLAB 帮助中心
重置外部模式目标连接
errorCode = extmodeReset();
errorCode = extmodeReset(); 将外部模式抽象层(包括通信栈)还原到初始默认状态。
errorCode
在外部模式仿真期间,将此函数与其他外部模式函数结合使用,以启用 Simulink® 和目标应用程序之间的通信。
示例
有关说明如何通过将该函数与相关函数结合使用以便提供外部模式通信的伪代码示例,请参阅External Mode Abstraction Layer。
全部折叠
错误代码,以 extmodeErrorCode_T 枚举形式返回以下值之一:
extmodeErrorCode_T
EXTMODE_SUCCESS (0) - 未检测到错误。
EXTMODE_SUCCESS
EXTMODE_ERROR (-12) - 检测到外部模式常规错误。
EXTMODE_ERROR
在 R2018a 中推出
extmodeBackgroundRun | extmodeEvent | extmodeGetFinalSimulationTime | extmodeInit | extmodeParseArgs | extmodeSetFinalSimulationTime | extmodeSimulationComplete | extmodeStopRequested | extmodeWaitForHostRequest
extmodeBackgroundRun
extmodeEvent
extmodeGetFinalSimulationTime
extmodeInit
extmodeParseArgs
extmodeSetFinalSimulationTime
extmodeSimulationComplete
extmodeStopRequested
extmodeWaitForHostRequest
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处