{"id":3092,"date":"2023-05-16T16:58:09","date_gmt":"2023-05-16T08:58:09","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=3092"},"modified":"2024-04-23T16:02:38","modified_gmt":"2024-04-23T08:02:38","slug":"tsmster-new-function-canoe-automation-control-module","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/tsmster-new-function-canoe-automation-control-module\/","title":{"rendered":"\u65b0\u529f\u80fd\u53d1\u5e03|TSMaster\u65b0\u589eCANoe\u81ea\u52a8\u5316\u63a7\u5236\u6a21\u5757\uff0c\u6b22\u8fce\u4e0b\u8f7d\u4f53\u9a8c\uff01"},"content":{"rendered":"\t\t
\u70b9\u51fbCANoe\u81ea\u52a8\u5316\u6a21\u5757\u7684\u56fe\u6807\u5373\u53ef\u6253\u5f00\u7a97\u53e3\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t \u5728\u4efb\u4f55\u64cd\u4f5c\u524d\u9996\u5148\u9700\u8981\u8fde\u63a5CANoe\uff0c\u70b9\u51fb\u8ba9CANoe\u4f5c\u4e3aTSMaster\u7684\u4e00\u4e2a\u5b50\u6a21\u5757\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u542f\u52a8CANoe\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5CANoe\u6216\u662fCANoe\u7684\u81ea\u52a8\u5316\u670d\u52a1\u5668\u6ca1\u6709\u6ce8\u518c\uff0cTSMaster\u5c31\u4f1a\u6253\u5370\u9519\u8bef\u4fe1\u606f\u3002\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9519\u8bef\u7684\u4fe1\u606f\u63d0\u793a\u81ea\u884c\u6ce8\u518c\u3002 \u5728CANoe\u542f\u52a8\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u968f\u610f\u6253\u5f00\u4e00\u4e2a\u5e26\u7cfb\u7edf\u53d8\u91cf\u7684\u793a\u4f8b\u914d\u7f6e\u3002\u6211\u4eec\u53ef\u4ee5\u627e\u4e00\u4e0bprogramming\u4e00\u680f\u7684\u5404\u79cd\u793a\u4f8b\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t \u4f8b\u5982\uff0cCOM Automation via Python\u8fd9\u4e2a\u793a\u4f8b\u914d\u7f6e\u3002\u6253\u5f00\u4e4b\u540e\u4f1a\u53d1\u73b0\u6709\u4e00\u4e2aSimulation Setup\uff0c\u6211\u4eec\u53ef\u4ee5\u6d4f\u89c8\u4e00\u4e0b\u5176\u4e2d\u5404\u4e2a\u4eff\u771f\u8282\u70b9\u7684\u903b\u8f91\u3002<\/p> \u53ef\u4ee5\u770b\u5230\uff0c\u8fd9\u662f\u6a21\u62df\u4e00\u8f86\u8f66\u7684\u8f66\u706f\u7684\u8fd0\u884c\u60c5\u51b5\uff0c\u6211\u4eec\u5230Analysis\u53ef\u4ee5\u770b\u5230\uff0c\u5b83\u6709\u9762\u677f\u3001\u5404\u79cd\u6309\u94ae\u3001trace\u8fd8\u6709graphic\u3002\u7b2c\u4e00\u4e2a\u811a\u672c\u662f\u5f15\u64ce\u7684\u63a7\u5236\uff1b\u7b2c\u4e8c\u4e2a\u662f\u706f\u7684\u63a7\u5236\u3002\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5728\u706f\u7684\u63a7\u5236\u91cc\u9762\u6709\u8fd9\u6837\u4e00\u4e2a\u7cfb\u7edf\u53d8\u91cf\u53d8\u5316\u4e8b\u4ef6\uff0c\u5c31\u662f\u53cc\u95ea\u706f\u7684\u5f00\u5173\uff0c\u8fd9\u6bb5\u63a7\u5236\u4ee3\u7801\u662f\u901a\u8fc7\u6fc0\u52b1\u53cc\u95ea\u706f\u7684\u7cfb\u7edf\u53d8\u91cf-HazardLightsSwitch\u6765\u5b9e\u73b0\u53cc\u95ea\u706f\u7684\u95ea\u70c1\u529f\u80fd\u3002<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t \u56de\u5230TSMaster\u4e2d\uff0c\u70b9\u51fb\u5237\u65b0\u7cfb\u7edf\u53d8\u91cf\u5217\u8868\uff0c\u5c55\u5f00\u5c31\u53ef\u4ee5\u770b\u5230CANoe\u5f53\u524d\u72b6\u6001\u4e2d\u6240\u6709\u7684\u7cfb\u7edf\u53d8\u91cf\u3002<\/p> \u5176\u4e2d\u5c31\u6709\u4e00\u4e2aLights\uff0c\u8fd9\u4e2aNamespace\u5e95\u4e0b\u6709\u4e00\u4e2aHazardLightsSwitch\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u8981\u63a7\u5236\u7684\u53d8\u91cf\u3002<\/span><\/p> > \u9996\u5148\u6211\u4eec\u542f\u52a8CANoe\u7684\u4eff\u771f\u3002\u70b9\u51fbTSMaster\u7684\u542f\u52a8\u4eff\u771f\u6309\u94ae\uff0cCANoe\u7684\u4eff\u771f\u4e5f\u5c31\u6b63\u5e38\u542f\u52a8\u3002\u9700\u8981\u8bf4\u660e\u7684\u662f\uff1a\u521a\u624d\u770b\u5230\u7684\u6240\u6709\u754c\u9762\u7684\u64cd\u4f5c\u90fd\u53ef\u4ee5\u7528TSMaster\u7684\u811a\u672c\u81ea\u52a8\u5b8c\u6210\u3002<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u6211\u4eec\u5728\u754c\u9762\u4e0a\u5c1d\u8bd5\u4fee\u6539CANoe\u7684\u53cc\u95ea\u706f\u7684\u7cfb\u7edf\u53d8\u91cf\uff0c\u53ef\u4ee5\u53cc\u51fb\u4e5f\u53ef\u4ee5\u6309\u56de\u8f66\u952e\uff0c\u4e4b\u540e\u4f1a\u5f39\u51fa\u4e00\u4e2a\u4fee\u6539\u5bf9\u8bdd\u6846\uff0c\u8f93\u51651\u6309\u56de\u8f66\uff0c\u7136\u540e\u8f6c\u5230CANoe\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u53d1\u73b0\u5728CANoe\u4e2d\u8fd9\u8f86\u8f66\u7684\u53cc\u95ea\u706f\u5df2\u7ecf\u5f00\u59cb\u95ea\u70c1\u4e86\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u6211\u4eec\u518d\u56de\u5230TSMaster\u4e2d\uff0c\u5c06\u8fd9\u4e2a\u53d8\u91cf\u6539\u4e3a0\u6309\u56de\u8f66\uff0c\u53ef\u4ee5\u770b\u5230\u53cc\u95ea\u706f\u5c31\u7184\u706d\u4e86\u3002\u8fd9\u5c31\u662fCANoe\u81ea\u52a8\u5316\u6a21\u5757\u76ee\u524d\u652f\u6301\u7684\u6838\u5fc3\u529f\u80fd\u3002\u5b83\u80fd\u591f\u901a\u8fc7\u7cfb\u7edf\u53d8\u91cf\u6765\u8fdb\u884c\u81ea\u52a8\u5316\uff0c\u8fd9\u4e2a\u6a21\u5757\u540e\u7eed\u8fd8\u4f1a\u589e\u52a0\u65b0\u7684\u63a7\u5236\u529f\u80fd\uff0c\u656c\u8bf7\u671f\u5f85…<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u6211\u4eec\u70b9\u51fb\u505c\u6b62\u6765\u505c\u6b62\u8fd9\u4e2a\u4eff\u771f\uff0c\u7136\u540e\u6253\u5f00\u4e00\u4e2a\u81ea\u52a8\u5316\u6a21\u5757\u7684\u754c\u9762\uff0c\u6309\u56de\u8f66\uff0c\u6dfb\u52a0\u4e00\u4e2a\u52a8\u4f5c\uff0c\u8fd9\u4e2a\u52a8\u4f5c\u6211\u4eec\u8bbe\u7f6e\u4e3aAPI\u51fd\u6570\u8c03\u7528\uff0c\u5728\u6b64\u9700\u8981\u4f7f\u7528CANoe\u81ea\u52a8\u5316\u6a21\u5757\u81ea\u5e26\u7684\u4f17\u591aAPI\u3002\u6211\u4eec\u9009\u62e9\u5c0f\u7a0b\u5e8f\u5e93\u51fd\u6570\uff0c\u8fd9\u91cc\u5217\u51fa\u7684\u5c31\u662fCANoe\u81ea\u52a8\u5316\u6a21\u5757\u5b83\u5185\u90e8\u768424\u4e2aAPI\u51fd\u6570\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u9996\u5148\u7b2c\u4e00\u4e2a\u51fd\u6570\u662f\u8fde\u63a5CANoe\uff0c\u53cc\u51fb\u5c31\u53ef\u4ee5\u628a\u5b83\u52a0\u8fdb\u6765\uff0c\u8fde\u63a5CANoe\u4e4b\u540e\u7684\u7b2c\u4e8c\u6b65\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u4ee3\u7801\u590d\u5236Ctrl c\u52a0Ctrl v\u3002\u90a3\u4e48\u7b2c\u4e8c\u6b65\u5c31\u662f\u542f\u52a8\u4eff\u771f\uff0c\u542f\u52a8\u4eff\u771f\u81ea\u7136\u5c31\u662fcanoe_start\u56de\u8f66\uff0c\u8fd9\u6837\u5c31\u9009\u4e2d\u4e86canoe_start API\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u542f\u52a8\u4eff\u771f\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u4e2a1\u79d2\u949f\uff0c\u6309\u56de\u8f66\uff0c\u7136\u540e\u53cc\u51fb\u8fd9\u4e2a\u65b0\u7684\u52a8\u4f5c\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u4f9d\u7136\u662fAPI\u8c03\u7528\uff0c\u4f46\u662f\u8fd9\u65f6\u5019\u662f\u6211\u4eec\u5185\u90e8\u7684\u7cfb\u7edf\u51fd\u6570\u3002 > \u7136\u540e\u6211\u4eec\u9009wait\uff0c\u663e\u793a\u7684\u65f6\u95f4\u5c31\u662f1000\u6beb\u79d2\uff0c\u6d88\u606f\u662fwait some time\uff0c\u57281\u79d2\u4e4b\u540e\u6211\u4eec\u5e0c\u671b\u89e6\u53d1\u53cc\u95ea\u706f\u7684\u53d8\u91cf\u53d8\u5316\u3002\u540c\u6837\u56de\u8f66\uff0c\u7136\u540e\u9009\u4e2d\u6211\u4eec\u7684\u65b0\u52a8\u4f5c\uff0c\u5c31\u6539\u4e3aAPI\u51fd\u6570\u8c03\u7528\u5e93\u51fd\u6570\uff0c\u51fd\u6570\u540d\u79f0\u9700\u8981\u901a\u8fc7set\u6765\u8fdb\u884c\u8fc7\u6ee4\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u8fd9\u91cc\u6709\u4e00\u4e9b\u8bbe\u7f6e\u7cfb\u7edf\u53d8\u91cf\u7684\u51fd\u6570\uff0c\u5047\u82e5\u6211\u4eec\u8bbe\u5b9a\u5b8c\u6210\u4e4b\u540e\uff0c\u53ef\u80fd\u9700\u8981\u7b49\u5f85\u4e2a5\u79d2\u949f\u6765\u89c2\u5bdf\u3002\u90a3\u4e48\u6211\u4eec\u5c31\u628a\u8fd9\u4e2await\u7684\u53c2\u6570\u65f6\u95f4\u6539\u4e3a5000\uff0c\u63a5\u4e0b\u6765\u9700\u8981\u5c06\u8fd9\u4e2a\u53d8\u91cf\u8bbe\u62100\u4ee5\u505c\u6b62\u53cc\u95ea\u706f\u3002\u7136\u540e\u6211\u4eec\u53ef\u80fd\u8fd8\u9700\u8981\u518d\u505c\u4e2a3\u79d2\u949f\u8fdb\u884c\u89c2\u5bdf\uff0c\u90a3\u4e48\u8fd9\u65f6\u5019\u518d\u6b21copywait\u51fd\u6570\uff0c\u5e76\u4e14\u628a\u5b83\u6539\u62103000\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u505c\u6b62\u4eff\u771f\u548c\u505c\u6b62\u65ad\u5f00CANoe\u7684\u8fde\u63a5\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t > \u505c\u6b62\u4eff\u771f\u81ea\u7136\u5c31\u662fcanoe_stop\uff0c\u65ad\u5f00\u8fde\u63a5\u81ea\u7136\u5c31\u662fdisconnect\u3002\u6211\u4eec\u5c31\u7ee7\u7eed\u590d\u5236\u548c\u7c98\u8d34\uff0c\u5e76\u4e14\u5c06\u5b83\u6539\u6210disconnect\uff0c\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86\u4e00\u5f20\u6d41\u7a0b\u56fe\u7684\u8bbe\u8ba1\u3002\u90a3\u4e48\u901a\u8fc7\u6d41\u7a0b\u56fe\u7684\u65b9\u5f0f\uff0c\u6211\u4eec\u5b8c\u6210\u4e86\u63a7\u5236\u903b\u8f91\u7684\u8bbe\u8ba1\u3002\u540c\u65f6\u8fd9\u5f20\u6d41\u7a0b\u56fe\u5c31\u662f\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u6309F9\u6765\u6267\u884c\u3002\u5207\u6362\u5230CANoe\u53ef\u4ee5\u770b\u5230\u53cc\u95ea\u706f\u95ea\u70c1\uff0c\u5e76\u4e14\u8fc7\u4e865\u79d2\u4e4b\u540e\u53cc\u95ea\u706f\u5c31\u7184\u706d\u4e86\u3002\u6700\u540e\u6574\u4e2a\u8fc7\u7a0b\u5c31\u8dd1\u5b8c\u4e86\uff0c\u4eff\u771f\u4e5f\u505c\u6b62\u4e86\u3002<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t \u5728\u6b64\uff0c\u6211\u4eec\u76f8\u4fe1TSMaster\u7684CANoe\u81ea\u52a8\u5316\u6a21\u5757\u7684\u7528\u6237\u9700\u6c42\u4f1a\u6709\u5f88\u591a\u3002\u73b0\u6709\u7684\u903b\u8f91\u4f9d\u7136\u53ef\u4ee5\u5728CANoe\u4e2d\u8fd0\u884c\uff0c\u76f8\u5f53\u4e8e\u4e24\u4e2a\u8f6f\u4ef6\u53ef\u4ee5\u8054\u5408\u4eff\u771f\u3002\u4e00\u65b9\u9762\u5b9e\u73b0\u4e86\u5f88\u591a\u53ea\u6709CANoe CAPL\u811a\u672c\u624d\u80fd\u591f\u6267\u884c\u7684\u7279\u6709\u529f\u80fd\uff1b\u53e6\u4e00\u65b9\u9762\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u8c03\u8bd5\u548c\u6d4b\u8bd5\u7684\u6548\u7387\u3002<\/p> \u4ee5\u4e0a\u5c31\u662f\u6211\u4eec\u672c\u7ae0\u8282\u4e3a\u5927\u5bb6\u6f14\u793a\u7684TSMaster\u7684CANoe\u81ea\u52a8\u5316\u6a21\u5757\u529f\u80fd\uff0c\u66f4\u591a\u8be6\u7ec6\u64cd\u4f5c\u6b65\u9aa4\u53ef\u4ee5\u5230B\u7ad9\u8fdb\u884c\u89c2\u770b\u54e6\uff01<\/span><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\u4e8c\u3001\u793a\u4f8b\u914d\u7f6e<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Sample configuration<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\u4e09\u3001\u5b9e\u73b0CANoe\u53cc\u95ea\u706f\u95ea\u70c1<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
CANoe double flashing lights are achieved<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
\u56db\u3001\u5728TSMaster\u4e2d\u63a7\u5236\u95ea\u70c1<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Control double flash in TSMaster<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t