{"id":6080,"date":"2022-09-09T13:54:48","date_gmt":"2022-09-09T05:54:48","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=6080"},"modified":"2024-04-23T15:20:25","modified_gmt":"2024-04-23T07:20:25","slug":"matlab-automation-control-module-for-tsmaster","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/matlab-automation-control-module-for-tsmaster\/","title":{"rendered":"\u65b0\u529f\u80fd\u53d1\u5e03 | TSMaster\u7684MATLAB\u81ea\u52a8\u5316\u63a7\u5236\u6a21\u5757"},"content":{"rendered":"\t\t
\u4eca\u5929\u6211\u4eec\u7ee7\u7eed\u6765\u4ecb\u7ecdTSMaster\u65b0\u529f\u80fd\u2014MATLAB\u81ea\u52a8\u5316\u63a7\u5236\u6a21\u5757\u3002\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u5927\u91cf\u7528\u4e8eMBD\u5f00\u53d1\u7684\u5c0f\u5de5\u5177\u3002\u8fd8\u5305\u542b\u4e86\u8fd9\u4e2a\u53ef\u4ee5\u5c06c\u4ee3\u7801\u81ea\u52a8\u8f6c\u5316\u4e3astateflow\u4ee3\u7801\u7684\u7a0b\u5e8f\u3002<\/p><\/section> > \u9996\u5148\u70b9\u51fb\u8fde\u63a5\uff0c\u8fde\u63a5\u5230matlab\u7684\u81ea\u52a8\u5316\u5bf9\u8c61\uff0c\u9700\u8981\u542f\u52a8matlab\u7684\u4e3b\u7a0b\u5e8f\uff0c\u4e00\u65e6\u8fde\u4e0a\u4e4b\u540e\uff0cmatlab\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u5b9e\u65f6\u88abTSMaster\u8f6f\u4ef6\u6765\u63a7\u5236\u3002\u90a3\u4e48\u6211\u4eec\u70b9\u51fb\u4e4b\u540e\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u6309\u94ae\u53d8\u7070\uff0c\u7136\u540e\u65ad\u5f00\u8fde\u63a5\u6309\u94ae\u53d8\u6210\u9ad8\u4eae\uff0c\u90a3\u4e48\u8fd9\u4e2a\u65f6\u5019\u5c31\u53ef\u4ee5\u901a\u8fc7\u6211\u4eec\u7684\u8f6f\u4ef6\u6765\u63a7\u5236matlab\u7a0b\u5e8f\u4e86\u3002<\/p><\/section> > \u7136\u540e\u6211\u4eec\u53ef\u4ee5\u70b9\u51fb\u8fd9\u4e2ac\u4ee3\u7801\u8f6cstateflow\uff0c\u70b9\u51fb\u89e3\u6790\uff0c\u4f1a\u5b9e\u73b0\u4e00\u4e2a\u903b\u8f91\u6811\uff0c\u7136\u540e\u518d\u70b9\u51fb\u751f\u6210\u4ee3\u7801\u3002\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u5c31\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u4eec\u7684\u793a\u4f8b\u4ee3\u7801\u5c31\u53ef\u4ee5\u81ea\u52a8\u8f6c\u6362\u6210stateflow\u4ee3\u7801\uff0c\u8be5\u529f\u80fd\u53ef\u4ee5\u8fc5\u901f\u7684\u5c06\u5df2\u6709\u7684C\u4ee3\u7801\u7684\u903b\u8f91\u4e00\u952e\u8f6c\u6362\u6210\u5b8c\u5168\u7b49\u4ef7\u7684stateflow\u7684\u903b\u8f91\uff0c\u4ece\u800c\u63d0\u9ad8MBD\u7684\u5f00\u53d1\u6548\u7387\u3002\u90a3\u4e48\u8f6c\u5316\u5b8c\u6210\u7684\u6548\u679c\u5c31\u662f\u8fd9\u6837\uff0c\u53cc\u51fbchart1\u5c55\u5f00\u4e4b\u540e\u5c31\u53ef\u4ee5\u770b\u5230\u8ddf\u521a\u624d\u7684c\u811a\u672c\u5b8c\u5168\u5bf9\u5e94\u7684stateflow\u7684\u903b\u8f91\u3002<\/p><\/section> \u53ea\u8981\u6211\u4eec\u62e5\u6709\u53ef\u4ee5\u751f\u6210\u4ee3\u7801\u7684Simulink\u7684\u4eff\u771f\u6a21\u578b\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u6b64\u6a21\u5757\u6765\u5b9e\u73b0\u8be5\u6a21\u578b\u5728TSMaster\u73af\u5883\u4e2d\u7684\u5b9e\u65f6\u8fd0\u884c\u3002\u4ece\u800c\u8ba9\u6211\u4eec\u7684\u7b97\u6cd5\u53ef\u4ee5\u5728\u8f6f\u4ef6\u8bbe\u8ba1\u7684\u524d\u671f\u5c31\u53ef\u4ee5\u53c2\u4e0e\u5230HIL\u548cSIL\u7684\u5b9e\u65f6\u4eff\u771f\u4e2d\u6765\uff0c\u540c\u65f6\u6709\u4e86\u5c0f\u7a0b\u5e8f\u7684\u52a0\u6301\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5bf9\u7b97\u6cd5\u8fdb\u884c\u7ec6\u81f4\u5165\u5fae\u7684\u8c03\u8bd5\u3001\u76d1\u63a7\uff0c\u751a\u81f3\u5c06\u4e8c\u8fdb\u5236\u6587\u4ef6\u53d1\u5e03\u7ed9\u5176\u4ed6\u7684\u7528\u6237\uff0c\u8fdb\u884c\u8054\u5408\u4eff\u771f\uff0c\u90a3\u4e48\u5177\u4f53\u5982\u4f55\u5b9e\u73b0\u5462\uff1f<\/p> > \u6211\u4eec\u8fd8\u662f\u4ece0\u5f00\u59cb\uff0c\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u6765\u8bf4\u660e\uff1a\u9996\u5148\u6211\u4eec\u5207\u6362\u5230\u7b2c\u4e00\u4e2a\u9875\u9762\uff0cSIL and HIL\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u9875\u9762\u67094\u4e2a\u6b65\u9aa4\uff0c\u6309\u7167\u8fd94\u4e2a\u6b65\u9aa4\u987a\u5e8f\u6267\u884c\uff0c\u5c31\u53ef\u4ee5\u8fc5\u901f\u642d\u5efa\u4e00\u4e2aHIL\u73af\u5883\u3002\u90a3\u4e48\u7b2c\u4e00\u6b65\u662f\u7b97\u6cd5\u6a21\u578b\u7684\u914d\u7f6e\uff0c\u4ed6\u7ed9\u4e86\u4e24\u4e2a\u8f93\u5165\uff0c\u4e00\u4e2a\u662f\u6211\u4eec\u7684\u5c0f\u7a0b\u5e8f\u7684\u540d\u79f0\uff0c\u7b2c\u4e8c\u4e2a\u662fSimulink\u6a21\u578b\u6587\u4ef6\u3002\u5bf9\u4e8e\u7b2c\u4e00\u4e2a\u8f93\u5165\uff0c\u53ea\u8981\u7ed9\u6211\u4eec\u7684\u65b0\u6784\u5efa\u7684\u5c0f\u7a0b\u5e8f\u8d77\u4e2a\u540d\u5b57\u5c31\u53ef\u4ee5\u4e86\uff0c\u6bd4\u5982\u8bf4\u8fd9\u4e2a\u9ed8\u8ba4\u7684Model1\uff0c\u6211\u4eec\u8f93\u5165\u4e4b\u540e\u70b9\u51fb\u6700\u53f3\u8fb9\u7684\u7eff\u8272\u7684\u52fe\uff0c\u5b83\u7684\u4f5c\u7528\u5c31\u662f\u5224\u65adModel1\u662f\u5426\u5b58\u5728\u3002\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa\u4e00\u4e2a\uff0c\u5982\u679c\u5b58\u5728\u5c31\u4f7f\u7528\u8fd9\u4e2aModel1\u3002<\/p><\/section> > \u8fd9\u6837\u53ef\u4ee5\u5c06\u6211\u4eec\u65b0\u7684\u7b97\u6cd5\u96c6\u6210\u5230\u6211\u4eec\u73b0\u6709\u7684\u5c0f\u7a0b\u5e8f\u4e2d\uff0c\u5728\u8fd9\u91cc\u5c31\u9700\u8981\u586b\u5165\u73b0\u6709\u7684\u5c0f\u7a0b\u5e8f\u7684\u6a21\u578b\u540d\u79f0\uff0c\u4e5f\u5c31\u662f\u4ece\u4e2d\u53ef\u4ee5\u9009\u62e9\u6211\u4eec\u7684\u5c0f\u7a0b\u5e8f\u540d\u79f0\u3002\u90a3\u4e48\u8fd9\u4e00\u6b65\u6210\u529f\u4e4b\u540e\uff0c\u5c31\u6765\u5230\u4e86Simulink\u6a21\u578b\u6587\u4ef6\u7684\u8bbe\u7f6e\u8fc7\u7a0b\u3002\u5728\u6b64\u6211\u4eec\u9700\u8981\u627e\u4e00\u4e2aSimulink\u7684\u5b9e\u4f8b\u7a0b\u5e8f\u8fdb\u884c\u8bb2\u89e3\uff0c\u6211\u4eec\u9996\u5148\u6253\u5f00Simulink\uff0c\u5728Simulink\u7684\u542f\u52a8\u9875\u4f1a\u6709\u5f88\u591a\u7684\u5b9e\u4f8b\u3002\u6211\u4eec\u627e\u4e00\u4e2a\u6bd4\u5982\u5c55\u5f00\u8fd9\u4e2astateflow\uff0c\u91cc\u9762\u6709\u7a7a\u767d\u56fe\u3001\u7b80\u5355\u56fe\u5206\u5c42\u56fe\u7b49\u7b49\u3002\u6211\u4eec\u9009\u62e9\u8fd9\u4e2a\u5206\u5c42\u56fe\uff0c\u5c31\u6253\u5f00\u4e86\u4e00\u4e2a\u540d\u4e3auntitled\u7684\u6a21\u578b\uff0c\u6211\u4eec\u770b\u5230\u8fd9\u4e2a\u6a21\u578b\uff0c\u5305\u542b\u4e86\u4e00\u4e2arun\u548c\u4e00\u4e2acooldown\u3002\u8fd9\u4e24\u4e2a\u5927\u7684\u72b6\u6001run\u4e8630\u79d2\u4e4b\u540e\uff0c\u4f1a\u51b7\u5374 5\u79d2\uff0c\u7136\u540e5\u79d2\u4e4b\u540e\u7ee7\u7eedrun\uff0c\u4ece\u6b64\u5faa\u73af\u5f80\u590d\uff0c\u800c\u5728\u8fd9\u4e2arun\u7684\u8fc7\u7a0b\u4e2d\uff0c\u662f\u6bcf\u96941\u79d2\u5c31\u8ba9\u8f93\u51fa\u572810\u548c1\u4e4b\u95f4\u5207\u6362\uff0c\u8fd9\u5c31\u662f\u5f53\u524dstateflow\u7684\u7b80\u5355\u903b\u8f91\u3002<\/p><\/section> > \u6211\u4eec\u6309esc\u8fd4\u56de\u5230\u9876\u5c42\uff0c\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u6a21\u578b\u53ea\u6709\u4e00\u4e2a\u8f93\u51fa\uff0c\u6211\u4eec\u52a0\u4e00\u4e2a\u793a\u6ce2\u5668\u6765\u770b\u770b\u6ce2\u5f62\u3002\u6309F5\u8fd0\u884c\uff0c\u5f53\u7136\u8fd9\u4e2a\u8fd0\u884c\u9700\u8981\u5c06\u5f53\u524d\u7684\u5de5\u4f5c\u76ee\u5f55\u5207\u6362\u6389\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u968f\u4fbf\u4e00\u4e2a\u76ee\u5f55\u6bd4\u5982\u8bf4\u65b0\u5efa\u4e2a\u6587\u4ef6\u5939\uff0c\u7136\u540e\u6211\u4eec\u56de\u5230\u521a\u624d\u7684\u6a21\u578b\u6309F5\u8fd0\u884c\u6210\u529f\uff0c\u90a3\u4e48\u6253\u5f00\u793a\u6ce2\u5668\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8f93\u51fa\u548c\u6211\u4eec\u4e4b\u524d\u7684\u63a8\u65ad\u662f\u5b8c\u5168\u543b\u5408\u7684\u3002\u4e5f\u5c31\u662f\u8fd0\u884c\u4e8630\u79d2\u4e4b\u540e\u4f11\u606f5\u79d2\uff0c\u7136\u540e\u7ee7\u7eed\u8fd0\u884c\u3002\u6211\u4eec\u5c06\u8fd9\u4e2a\u6a21\u578b\u53e6\u5b58\u4e3asimple\uff0c\u63a5\u4e0b\u6765\u5c06\u8fd9\u4e2a\u793a\u6ce2\u5668\u5220\u9664\uff0c\u5e76\u4e14\u6dfb\u52a0\u4e00\u4e2aout\u63a5\u53e3\uff0c\u5c06\u8fd9\u4e2a\u6a21\u578b\u914d\u7f6e\u6210\u53ef\u4ee5\u4ee3\u7801\u751f\u6210\u7684\u6a21\u578b\uff0c\u968f\u540e\u6211\u4eec\u5c31\u8981\u914d\u7f6e\u4e00\u4e0b\u4ee3\u7801\u751f\u6210\u7684\u7ec6\u8282\u3002<\/p><\/section> > \u6211\u4eec\u8fdb\u5165\u6a21\u578b\u7684\u8bbe\u7f6e\uff0c\u70b9\u51fb\u4ee3\u7801\u751f\u6210\uff0c\u9996\u5148\u8981\u5c06\u8fd9\u4e2agrt\u6539\u4e3aert.tlc\u3002\u56e0\u4e3a\u76ee\u6807\u7684\u73af\u5883\u662f\u5d4c\u5165\u5f0f\u73af\u5883\uff0c\u540c\u65f6\u52fe\u9009\u4ec5\u751f\u6210\u4ee3\u7801\uff0c\u7136\u540e\u5c55\u5f00\u4ee3\u7801\u751f\u6210\uff0c\u8fdb\u5165\u5230\u6a21\u677f\u4e2d\uff0c\u5c06\u201c\u751f\u6210\u793a\u4f8b\u4e3b\u7a0b\u5e8f\u201d\u7684\u52fe\u53bb\u6389\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u81ea\u52a8\u751f\u6210main\u51fd\u6570\u3002\u56e0\u4e3a\u8fd9\u4e2amain\u51fd\u6570\u7684\u6587\u4ef6\u5f80\u5f80\u662f\u4e0d\u4f1a\u7528\u7684\u3002\u81f3\u6b64\u914d\u7f6e\u5b8c\u6210\u3002\u6211\u4eec\u70b9\u51fb\u4fdd\u5b58\u5e76\u4e14\u5173\u95ed\u8fd9\u4e2a\u6a21\u578b\u3002<\/p><\/section> > \u63a5\u4e0b\u6765\u5c31\u56de\u5230matlab\u63a7\u5236\u6a21\u5757\u4e2d\uff0c\u9009\u62e9Simulink\u6a21\u578b\u6587\u4ef6\uff0c\u70b9\u51fb\u7eff\u8272\u7684\u7bad\u5934\u6309\u94ae\uff0c\u9009\u4e2d\u6211\u4eec\u521a\u624d\u7684simple.slx\uff0c\u90a3\u4e48\u53ef\u4ee5\u770b\u5230\u524d\u4e24\u6b65\u8fc7\u4e86\u4e4b\u540e\u6b65\u9aa41\u5c31\u7b97\u6267\u884c\u5b8c\u6210\u3002\u63a5\u4e0b\u6765\u5c31\u5230\u4e86cache\u6587\u4ef6\u5939\u548ccodegen\u6587\u4ef6\u5939\u7684\u8bbe\u5b9a\uff0c\u90a3\u4e48\u7559\u7a7a\u5c31\u8868\u793a\u751f\u6210\u5230\u9ed8\u8ba4\u7684\u4f4d\u7f6e\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e24\u4e2a\u4f4d\u7f6e\u6539\u6389\uff0c\u8fd8\u662f\u70b9\u51fb\u7eff\u8272\u7684\u6309\u94ae\uff0c\u7136\u540e\u53ef\u4ee5\u9009\u62e9\u6211\u4eec\u7684cache\u6587\u4ef6\u5939\uff0c\u6211\u4eec\u53ef\u4ee5\u65b0\u5efa\u4e00\u4e2acache\uff0c\u5e76\u4e14\u9009\u62e9\u8fd9\u4e2a\u6587\u4ef6\u5939\uff0c\u90a3\u4e48cache\u6587\u4ef6\u5939\u5c31\u5df2\u7ecf\u8bbe\u7f6e\u6210\u529f\u3002\u63a5\u4e0b\u6765\u5c31\u662fcodegen\uff0c\u8fd8\u662f\u4e00\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u5728cache\u65c1\u8fb9\u5efa\u4e00\u4e2acodegen\uff0c\u70b9\u51fb\u9009\u62e9\uff0c\u90a3\u4e48\u8fd9\u4e24\u4e2a\u6587\u4ef6\u5939\u4e5f\u5c31\u8bbe\u7f6e\u5b8c\u6bd5\u3002<\/p><\/section> > \u7136\u540e\u5c31\u5230\u4e86\u4ee3\u7801\u751f\u6210\u7684\u73af\u8282\u3002\u6211\u4eec\u53ea\u8981\u70b9\u51fb\u542f\u52a8Simulink\u4ee3\u7801\u751f\u6210\uff0c\u7b49\u5f85\u4ee3\u7801\u751f\u6210\u5b8c\u6bd5\u5c31\u53ef\u4ee5\u4e86\u3002\u90a3\u4e48\u751f\u6210\u7684\u4ee3\u7801\u5c31\u4f1a\u5b58\u653e\u5230\u521a\u624d\u8bbe\u5b9a\u7684codegen\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u3002\u7b2c\u4e00\u6b21\u751f\u6210\u4f1a\u8017\u8d39\u4e00\u70b9\u65f6\u95f4\uff0c\u6211\u4eec\u9700\u8981\u8010\u5fc3\u7684\u7b49\u5f85\u3002\u90a3\u4e48Simulink\u7684\u6267\u884c\u8fc7\u7a0b\u662f\u540c\u6b65\u7684\uff0c\u800c\u4e14\u6bd4\u8f83\u6162\uff0c\u6240\u4ee5TSMaster\u53ef\u80fd\u4f1a\u62a5\u8b66\u3002\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u4ee3\u7801\u751f\u6210\u5df2\u7ecf\u5b8c\u6210\u3002<\/p><\/section> > \u90a3\u4e48\u63a5\u4e0b\u53bb\u5c31\u662f\u81ea\u52a8\u590d\u5236\u5df2\u751f\u6210\u7684\u4ee3\u7801\u5230\u6211\u4eec\u7684\u5c0f\u7a0b\u5e8f\u7684\u4ee3\u7801\u5e93\u91cc\u9762\uff0c\u70b9\u51fb\u4e4b\u540e\u53ef\u4ee5\u663e\u793a\u5df2copy6\u4e2a\u6587\u4ef6\uff0c\u90a3\u4e48\u63a5\u4e0b\u53bb\u7b2c\u4e8c\u6b65\u5c31\u5df2\u7ecf\u5b8c\u6210\u3002\u4e5f\u5c31\u662f\u4ee3\u7801\u751f\u6210\u7684\u8fc7\u7a0b\u5df2\u7ecf\u6210\u529f\u5b9e\u73b0\uff0c\u518d\u5f80\u4e0b\u5c31\u662f\u4ee3\u7801\u96c6\u6210\u3002\u4ee3\u7801\u96c6\u6210\u76ee\u7684\u5c31\u662f\u5c06\u7b97\u6cd5\u7ed9\u8c03\u7528\u8d77\u6765\uff0c\u6211\u4eec\u70b9\u51fb\u7f16\u8f91\u5c0f\u7a0b\u5e8f\u7684\u6e90\u7801\u6309\u94ae\uff0c\u6253\u5f00Model1\u8fd9\u4e2a\u5c0f\u7a0b\u5e8f\uff0c\u6211\u4eec\u9996\u5148\u770b\u4e00\u4e0b\u5c5e\u6027\uff0c\u7136\u540e\u70b9\u51fb\u4ee3\u7801\u5e93\u7684\u8def\u5f84\uff0c\u53ef\u4ee5\u770b\u5230simple.c\u548c.h\u6587\u4ef6\u4ee5\u53ca\u5176\u4ed6\u7684\u4e00\u4e9b\u7528\u5230\u7684\u5934\u6587\u4ef6\u3002\u6253\u5f00\u8fd9\u4e24\u4e2a\u6587\u4ef6\uff0c\u9996\u5148\u6211\u4eec\u770b\u4e00\u4e0bsimple.h\u6587\u4ef6\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6587\u4ef6\u662f\u4e00\u4e2a\u63a5\u53e3\u6587\u4ef6\uff0c\u53ef\u4ee5\u770b\u5230\u8fd9\u91cc\u9762\u6709\u4e09\u4e2a\u51fd\u6570\uff0c\u521d\u59cb\u5316step\u548cterminate\u51fd\u6570\uff0c\u6211\u4eec\u9700\u8981\u5206\u522b\u5c06\u8fd9\u4e09\u4e2a\u51fd\u6570\u7684\u8c03\u7528\u62f7\u8d1d\u5230Model1\u5c0f\u7a0b\u5e8f\u91cc\u9762\u3002\u9996\u5148\u5c31\u662f\u8981\u7528\u8fd9\u4e2asimple.h\u5934\u6587\u4ef6\u3002<\/p><\/section> > \u6211\u4eec\u56de\u5230\u5c0f\u7a0b\u5e8f\uff0c\u70b9\u51fb\u5168\u5c40\u5b9a\u4e49#include\uff0c”simple.h”\u3002\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u662fCOPY\u3002\u6211\u4eec\u53cc\u51fb\u8fd9\u4e2asimple\u521d\u59cb\u5316\uff0c\u7136\u540e\u5230\u5c0f\u7a0b\u5e8f\u7684\u521d\u59cb\u5316\u4e8b\u4ef6\u4e2d\uff0c\u7c98\u8d34\u7136\u540e\u518dcopy \u00a0step\u5230\u6211\u4eec\u7684\u5c0f\u7a0b\u5e8f\u7684step\u51fd\u6570\u4e2d\uff0c\u7c98\u8d34\u7136\u540e\u5c31\u662fterminate\uff0c\u56de\u5230\u6211\u4eec\u5c0f\u7a0b\u5e8f\u7684\u505c\u6b62\u4e8b\u4ef6\uff0c\u540c\u6837\u7c98\u8d34\uff0c\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u51fd\u6570\u8c03\u7528\u3002\u90a3\u4e48\u9700\u8981\u6ce8\u610f\u7684\u5c31\u662fstep\u51fd\u6570\u7684\u5468\u671f\u4e86\uff0c\u9ed8\u8ba4\u5468\u671f\u662f5\u6beb\u79d2\uff0c\u4f46\u6a21\u578b\u4e2d\u80af\u5b9a\u4e0d\u662f\u3002\u6211\u4eec\u9996\u5148\u8fd8\u662f\u6253\u5f00\u8fd9\u4e2asimple.slx\uff0c\u7136\u540e\u6211\u4eec\u5230\u6a21\u578b\u7684\u5c5e\u6027\u770b\u4e00\u4e0b\u8fd9\u4e2a\u6a21\u578b\u7684\u76f8\u5173\u7684\u6c42\u89e3\u5668\u7684\u5c5e\u6027\u3002\u5b83\u662f\u5b9a\u6b65\u957f\uff0c\u5e76\u4e14\u6b65\u957f\u662f0.1\u79d2\uff0c\u90a3\u4e480.1\u79d2\u5728TSMaster\u91cc\u9762\u5c31\u662f100\u6beb\u79d2\uff0c\u53cc\u51fbstep\u51fd\u6570\uff0c\u5c06\u5468\u671f\u6539\u4e3a100\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8981\u89c2\u6d4b\u4e00\u4e0bout1\u8fd9\u4e2a\u4fe1\u53f7\u3002<\/p><\/section> > \u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u5728\u53d8\u91cf\u70b9\u53f3\u952e\uff0c\u6dfb\u52a0\u53d8\u91cf\uff0c\u8f93\u5165\u6211\u4eec\u8fd9\u4e2aout1\uff0c\u90a3\u4e48\u5c31\u65b0\u5efa\u4e86\u4e00\u4e2aout1\u7684\u53d8\u91cf\uff0c\u7136\u540e\u6211\u4eec\u5c31\u9700\u8981\u5728\u4ee3\u7801\u91cc\u627e\u5230\u8fd9\u4e2a\u53d8\u91cf\uff0c\u90a3\u4e48\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2aextern\uff0c\u8fd9\u91cc\u5199\u7684\u662foutports\uff0c\u90a3\u5c31\u662fsimple y\u8fd9\u4e2a\u53d8\u91cf\uff0c\u5b83\u6709\u4e00\u4e2a\u6210\u5458\u53ebout1\uff0c\u5c31\u662f\u6211\u4eec\u9700\u8981\u7528\u5230\u7684\u53d8\u91cf\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u8fd9\u91cc\u5199\u4e0bout1.set\uff0c\u628a\u521a\u624d\u8fd9\u4e2aout1\u62f7\u8d1d\u8fc7\u6765\uff0c\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u53d8\u91cf\u7684\u8d4b\u503c\u3002\u90a3\u4e48\u5c0f\u7a0b\u5e8f\u5c31\u7b97\u7f16\u5199\u5b8c\u6bd5\u3002<\/p><\/section> > \u5728\u6b64\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u70b9\u51fb\u8fd0\u884c\u4eff\u771f\uff0c\u90a3\u4e48\u6211\u4eec\u7684\u7b97\u6cd5\u6a21\u578b\u5176\u5b9e\u5c31\u5df2\u7ecf\u5b9e\u65f6\u7684\u5728\u8fd0\u884c\uff0c\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u9700\u8981\u89c2\u6d4b\u4fe1\u53f7\uff0c\u9996\u5148\u8981\u542f\u52a8\u6211\u4eec\u7684TSMaster\u7684\u4eff\u771f\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u6253\u5f00\u4e00\u4e2a\u89c2\u6d4b\u7a97\u53e3\uff0c\u6bd4\u5982\u8bf4\u56fe\u5f62\uff0c\u6253\u5f00\u4e4b\u540e\u6211\u4eec\u53ef\u4ee5\u70b9\u53f3\u952e\u6dfb\u52a0\u7cfb\u7edf\u53d8\u91cf\uff0c\u901a\u8fc7\u5185\u90e8\u53d8\u91cf\uff0c\u627e\u5230model 1\u7684out 1\u8fd9\u4e2a\u53d8\u91cf\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u4fee\u6539\u4ed6\u7684\u8303\u56f4\uff0c\u6bd4\u5982\u8bf4\u6539\u62101\u201415 \u00a0-1\u201415\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u770b\u5230\u8fd9\u4e2a\u56fe\u5f62\u7684\u663e\u793a\u8ddf\u6211\u4eec\u521a\u624d\u770b\u5230\u7684Simulink\u793a\u6ce2\u5668\u753b\u9762\u662f\u5b8c\u5168\u4e00\u6837\u7684\u3002<\/p><\/section> > \u8fd9\u4e2a\u4fe1\u53f7\u662f\u53ef\u4ee5\u8bbe\u6210\u7ad6\u7ebf\u663e\u793a\uff0c\u8fd9\u6837\u5c31\u66f4\u7b26\u5408\u8fd9\u4e2a\u4fe1\u53f7\u4ee3\u8868\u7684\u903b\u8f91\u542b\u4e49\uff0c\u90a3\u4e48\u8fd9\u4e2aout1\u7684\u4fe1\u53f7\u662f\u5b9e\u65f6\u5237\u65b0\u7684\uff0c\u8fd9\u5c31\u610f\u5473\u7740\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u603b\u7ebf\u63a5\u53e3\u5c06\u6b64\u7b97\u6cd5\u6a21\u578b\u63a5\u5165\u5230\u6574\u8f66\u7f51\u7edc\uff0c\u53ef\u4ee5\u4e0e\u5b9e\u9645\u7684\u63a7\u5236\u5668\u8fdb\u884c\u4e92\u52a8\uff0c\u90a3\u4e48\u4ee5\u4e0a\u5c31\u662fmatlab\u63a7\u5236\u6a21\u5757\u8fdb\u884cHIL\u7684\u7b80\u5355\u7684\u65b9\u6cd5\u3002<\/p><\/section>\u4e00\u3001MATLAB\u7684\u81ea\u52a8\u5316\u5bf9\u8c61<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
MATLAB automation object <\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\u4e8c\u3001SIL\u548cHIL\u73af\u5883\u7684\u81ea\u52a8\u6784\u5efa<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Automatic build of SIL and HIL<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\u4e09\u3001MATLAB\u63a7\u5236\u6a21\u5757<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
MATLAB Control module<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\u56db\u3001\u6267\u884cHIL\u548cSIL\u7684\u4eff\u771f<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Perform emulation of HIL and SIL<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t