{"id":1913,"date":"2022-11-16T10:32:00","date_gmt":"2022-11-16T02:32:00","guid":{"rendered":"https:\/\/www.tosunai.com\/?p=1913"},"modified":"2023-04-21T10:16:28","modified_gmt":"2023-04-21T02:16:28","slug":"tsmaster-xcptomat","status":"publish","type":"post","link":"https:\/\/www.tosunai.com\/tsmaster-xcptomat\/","title":{"rendered":"TSMaster XCP \u6a21\u5757\u8f93\u51fa\u7684 mat \u6587\u4ef6\u683c\u5f0f\u8bf4\u660e"},"content":{"rendered":"\t\t
\u672c\u6587\u76ee\u5f55\uff1a<\/span><\/p> \u4e00\u3001mat\u53d8\u91cf\u683c\u5f0f\u5b9a\u4e49<\/span><\/p> 1. \u56fa\u5b9a\u53d8\u91cf\u5b9a\u4e49<\/span><\/p> 2. \u65f6\u95f4\u89e3\u6790\u65b9\u6cd5<\/span><\/p> 3. \u65f6\u95f4\u5173\u8054\u7684\u4fe1\u53f7\u89e3\u6790\u65b9\u6cd5<\/span><\/p> 4. \u6784\u5efa timeseries<\/span><\/p> \u00a0<\/p> \u4e8c\u3001Simulink \u4fe1\u53f7\u56de\u653e<\/span><\/p> 1. \u6a21\u578b\u4e2d\u56de\u653e\u5de5\u4f5c\u533a\u53d8\u91cf<\/span><\/p> \u00a0<\/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 TSMaster\u00a0XCP\u00a0\u6a21\u5757\u652f\u6301\u76f4\u63a5\u8f93\u51fa\u538b\u7f29\u7684\u00a0HDF5\u00a0\u683c\u5f0f\u7684\u00a0mat\u00a0\u6587\u4ef6(Matlab\u00a07.3\u00a0\u7248\u00a0\u672c\u53ca\u4ee5\u4e0a)\uff0c\u4e3a\u57fa\u4e8e\u00a0Simulink\u00a0\u7684\u6a21\u578b\u5f00\u53d1\u521b\u9020\u4e86\u4fbf\u5229\u3002TSMaster\u00a0\u00a0\u8f93\u51fa\u7684\u00a0mat\u00a0\u6587\u4ef6\u8f7d\u5165Matlab\u00a0\u540e\uff0c\u5176\u5de5\u4f5c\u533a\u53d8\u91cf\u5217\u8868\u5982\u4e0b\uff1a<\/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 \u56fa\u5b9a\u53d8\u91cf\u5217\u8868\u5982\u4e0b\uff1a<\/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\u5206\u9694\u65f6\u95f4\u5e8f\u5217\uff0c\u83b7\u53d6\u6240\u6709\u65f6\u95f4\u8f74\uff1a<\/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 >\u4ee5\u00a0AN0001\u00a0\u4e2d\u8bb0\u5f55\u7684\u4fe1\u53f7\u4e3a\u4f8b\uff0c\u5176\u65f6\u95f4\u5e8f\u5217\u00a0TIME_LIST\u00a0\u5b57\u7b26\u4e32\u53d8\u91cf\u5982\u4e0b\uff1a >\u6839\u636e\u6bcf\u6839\u65f6\u95f4\u8f74\u6570\u7ec4\u540d\u79f0\u53ef\u4ee5\u63d0\u53d6\u65f6\u95f4\u8f74\u7684\u6bcf\u4e2a\u65f6\u523b\u7edd\u5bf9\u65f6\u95f4\uff0c \u5355\u4f4d\u4e3a\u79d2\uff0c\u00a0\u4ee5\u00a0ecu1_TIME_DAQ_100ms\u00a0\u4e3a\u4f8b\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/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 >\u83b7\u53d6\u4e86\u65f6\u95f4\u8f74\u540e\uff0c\u00a0\u9700\u8981\u83b7\u53d6\u65f6\u95f4\u8f74\u6240\u5173\u8054\u7684\u4fe1\u53f7\u5217\u8868\uff0c\u5e76\u6839\u636e\u5217\u8868\u4e2d\u4fe1\u53f7\u540d\u00a0\u79f0\u5b9a\u4f4d\u4fe1\u53f7\u3002\u4ee5\u65f6\u95f4\u8f74\u00a0ecu1_TIME_DAQ_100ms\u00a0\u4e3a\u4f8b\uff0c\u5176\u5bf9\u5e94\u7684\u4fe1\u53f7\u5217\u8868\u5b58\u653e\u540d\u79f0\u00a0ecu1_TIME_DAQ_100ms_LIST\u00a0\u00a0\u7684\u5b57\u7b26\u4e32\u53d8\u91cf\u91cc(\u9017\u53f7\u5206\u9694)\uff0c\u5176\u53d8\u91cf\u540d\u79f0\u89c4\u00a0\u5219\u4e3a\uff1a<\/p> \u65f6\u95f4\u8f74\u540d\u79f0_LIST<\/p> >\u6309\u9017\u53f7\u5206\u9694\u65b9\u5f0f\u5c55\u5f00\u5b57\u7b26\u4e32\u53d8\u91cf\u00a0ecu1_TIME_DAQ_100ms_LIST\u00a0\u5373\u53ef\u5f97\u5230\u65f6\u95f4\u8f74\u00a0ecu1_TIME_DAQ_100ms\u00a0\u6240\u5bf9\u5e94\u7684\u4e00\u4e2a\u6216\u4e00\u7ec4\u53d8\u91cf\u540d\u79f0\uff0c\u5728\u672c\u4f8b\u4e2d\uff0c\u53ea\u6709\u4e00\u4e2a\u540d\u79f0\uff1a<\/p> ecu1_triangleSignal<\/p> >\u8fd9\u4e2a\u53d8\u91cf\u540d\u79f0\u6700\u7ec8\u5b9a\u4f4d\u5230\u4fe1\u53f7\u503c\u6570\u7ec4\u201cecu1_triangleSignal\u201d\uff0c\u8be5\u4fe1\u53f7\u503c\u6570\u7ec4\u00a0\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u4e0e\u65f6\u95f4\u4fe1\u53f7\u6570\u7ec4\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u5728\u65f6\u95f4\u4e0a\u662f\u4e00\u4e00\u5bf9\u5e94\u7684\u3002<\/p> >\u5728\u8fd9\u4e2a\u4fe1\u53f7\u4e0a\u53f3\u51fb\u53ef\u4ee5\u7ed8\u5236\u4fe1\u53f7\u6309\u70b9\u5206\u5e03\u7684\u66f2\u7ebf(\u4e0d\u5e26\u65f6\u95f4\u4fe1\u606f)\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/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 >\u82e5\u9700\u8981\u6784\u5efa\u5e26\u65f6\u95f4\u4fe1\u606f\u7684\u4fe1\u53f7\u503c\u5e8f\u5217\uff0c\u9700\u8981\u989d\u5916\u6267\u884c\u4e00\u6bb5m\u811a\u672c\u6765\u6784\u9020timeseris\u00a0\uff0c\u4ee5\u00a0\u4fe1\u00a0\u53f7\u00a0ecu1_triangleSignal\u00a0\u00a0\u00a0\u00a0\u4e3a\u00a0\u4f8b\u00a0\uff0c\u00a0\u00a0\u5176\u00a0\u5bf9\u00a0\u5e94\u00a0\u7684\u00a0\u65f6\u00a0\u95f4\u00a0\u8f74\u00a0\u662f\u00a0ecu1_TIME_DAQ_100ms\uff0c\u5219\u00a0timeseries\u00a0\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u811a\u672c\u6784\u9020\uff1a >\u53f3\u952e\u7ed8\u5236\u5176\u53d8\u5316\u66f2\u7ebf\uff0c\u53ef\u4ee5\u770b\u51fa\u6a2a\u7eb5\u5750\u6807\u5206\u522b\u662f\u65f6\u95f4\u548c\u503c\uff1a<\/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 \u5728\u6a21\u578b\u4e2d\u56de\u653e\u00a0XCP\u00a0\u4fe1\u53f7\u6709\u5982\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a \u6839\u636e\u00a0timeseries\u00a0\u7684\u540d\u79f0\uff0c\u5c06\u00a0Simulink\u00a0\u4e2d\u7684\u4fe1\u53f7\u540d\u79f0\u6539\u4e3a\u201cTriangle_signal\u201d\uff0c\u5373\u00a0\u53ef\u53c2\u4e0e\u6a21\u578b\u76f8\u5173\u7684\u7b97\u6cd5\u4eff\u771f\u548c\u6d4b\u8bd5\u8fc7\u7a0b\uff1a<\/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 \u8fde\u63a5\u00a0Scope\u00a0\u540e\uff0c\u4eff\u771f\u7ed3\u679c\u5982\u4e0b\uff1a<\/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 \u672c\u6587\u76ee\u5f55\uff1a \u4e00\u3001mat\u53d8\u91cf\u683c\u5f0f\u5b9a\u4e49 1. \u56fa\u5b9a\u53d8\u91cf\u5b9a\u4e49 2. \u65f6\u95f4\u89e3\u6790\u65b9\u6cd5 3. \u65f6\u95f4\u5173\u8054\u7684\u4fe1\u53f7\u89e3\u6790\u65b9\u6cd5 4. […]<\/p>\n","protected":false},"author":4,"featured_media":2730,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"on","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"off","ocean_gallery_id":[],"footnotes":""},"categories":[90],"tags":[65,91],"class_list":["post-1913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-tutorial","tag-tsmaster","tag-xcp","entry","has-media","owp-thumbs-layout-horizontal","owp-btn-normal","owp-tabs-layout-horizontal","has-no-thumbnails","has-product-nav"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts\/1913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/comments?post=1913"}],"version-history":[{"count":0,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/posts\/1913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/media\/2730"}],"wp:attachment":[{"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/media?parent=1913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/categories?post=1913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tosunai.com\/wp-json\/wp\/v2\/tags?post=1913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u4e00\u3001mat\u53d8\u91cf\u683c\u5f0f\u5b9a\u4e49<\/h2>\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
1\u3001\u56fa\u5b9a\u53d8\u91cf\u5b9a\u4e49<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
1\u3001\u65f6\u95f4\u89e3\u6790\u65b9\u6cd5<\/h2>\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
ecu1_TIME_DAQ_Cyclic,ecu1_TIME_DAQ_10_ms,ecu1_TIME_DAQ_100ms,ecu1\u00a0_TIME_POLL_noiseSignal,TIME_XCPSimBus__engine_speed
\u5206\u9694\u540e\u53ef\u6839\u636e\u540d\u79f0\u5728\u5de5\u4f5c\u533a\u53d6\u5f97\u6bcf\u4e00\u6839\u65f6\u95f4\u8f74\u6570\u7ec4\uff0c\u6bcf\u6839\u65f6\u95f4\u8f74\u6570\u7ec4\u53ef\u5173\u8054\u00a0\u4e00\u4e2a\u6216\u4e00\u7ec4\u4fe1\u53f7\uff0c\u65f6\u95f4\u8f74\u6709\u4e09\u79cd\u7c7b\u578b\uff0c\u5206\u522b\u662f\u00a0DAQ\u00a0\u00a0\u65f6\u95f4(\u4e00\u6839\u65f6\u95f4\u8f74\u5305\u542b\u4e00\u4e2a\u00a0\u6216\u4e00\u7ec4\u4fe1\u53f7)\uff1bPoll\u00a0\u65f6\u95f4\u00a0(\u4e00\u6839\u65f6\u95f4\u8f74\u5bf9\u5e94\u4e00\u4e2a\u4fe1\u53f7)\u00a0\u548c\u7cfb\u7edf\u53d8\u91cf\u65f6\u95f4\u00a0(\u4e00\u6839\u65f6\u95f4\u8f74\u5bf9\u5e94\u4e00\u4e2a\u4fe1\u53f7)\uff1a<\/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
3\u3001\u65f6\u95f4\u5173\u8054\u7684\u4fe1\u53f7\u89e3\u6790\u65b9\u6cd5<\/h2>\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
4\u3001\u6784\u5efatimeseries<\/h2>\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
Triangle_signal\u00a0=\u00a0timeseries(ecu1_triangleSignal,\u00a0ecu1_TIME_DAQ_100ms)
>\u6784\u9020\u540e\uff0c\u5728\u5de5\u4f5c\u533a\u51fa\u73b0\u4e00\u4e2a\u65b0\u7684\u4fe1\u53f7\u201cTriangle_signal\u201d\uff1a<\/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\u3001Simulink\u4fe1\u53f7\u56de\u653e<\/h2>\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
1\u3001\u6a21\u578b\u4e2d\u56de\u653e\u5de5\u4f5c\u533a\u53d8\u91cf<\/span><\/h2>\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
\u6253\u5f00\u00a0Simulink\u00a0\u6a21\u5757\uff0c\u5728\u6a21\u5757\u7a7a\u767d\u5904\u53cc\u51fb\uff0c\u9009\u62e9\u201cFromWorkspace\u201d\uff1a<\/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