<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HIL实时仿真系列 &#8211; 上海同星智能科技有限公司</title>
	<atom:link href="https://www.tosunai.com/category/studycases/hil-rt-simulation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tosunai.com</link>
	<description>Engineer Everything!</description>
	<lastBuildDate>Thu, 15 May 2025 05:02:34 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>

<image>
	<url>https://www.tosunai.com/wp-content/uploads/2024/09/112x112-100x100.webp</url>
	<title>HIL实时仿真系列 &#8211; 上海同星智能科技有限公司</title>
	<link>https://www.tosunai.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-05/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Tue, 27 Sep 2022 08:43:53 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[DOIP]]></category>
		<category><![CDATA[ECU]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[TSMaster]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=831</guid>

					<description><![CDATA[<p>本文介绍TSMaster 从零打造车辆控制器HIL实时仿真系列第五章节，继续介绍控制器实时HIL的实现。 一、 [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-05/">TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
			<style id="elementor-post-831">.elementor-widget-text-editor{color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-831 .elementor-element.elementor-element-9c6e94f{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-831 .elementor-element.elementor-element-9c6e94f .elementor-divider-separator{width:100%;}.elementor-831 .elementor-element.elementor-element-9c6e94f .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-831 .elementor-element.elementor-element-541449e{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );}.elementor-831 .elementor-element.elementor-element-3e4b70b{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-eb060c0{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-70ddabb{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-9ebf345{font-family:"Roboto", Sans-serif;font-size:20px;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-53b69c2{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-93ee9c9{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-831 .elementor-element.elementor-element-2c8a419{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}</style>							<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="831" class="elementor elementor-831" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-84815b8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="84815b8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-49ffc75" data-id="49ffc75" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f9c6470 elementor-widget elementor-widget-text-editor" data-id="f9c6470" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>本文介绍TSMaster 从零打造车辆控制器HIL实时仿真系列第五章节，继续介绍控制器实时HIL的实现。</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-376d03d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="376d03d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f0e1b07" data-id="f0e1b07" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9c6e94f elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="9c6e94f" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-26cd3f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="26cd3f2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-45263bf" data-id="45263bf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-12a2ff2 elementor-widget elementor-widget-heading" data-id="12a2ff2" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>一、HIL硬件在环</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2220cc8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2220cc8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-728b8cc" data-id="728b8cc" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-541449e elementor-widget elementor-widget-text-editor" data-id="541449e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">ABS算法仿真和车辆模型的运行，它们的功能并不是简简单单地绘制曲线，搜集运行数据，而是有着更深层次的目的，那就是与外部世界联动，将输入和输出数据完完全全暴露在真实世界中，达到HIL的真正目的—硬件在环。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">与外部世界交互这个过程可以说十分简单，只需要为此专门设计一个dbc文件，加载到TSMaster中，再将系统变量中的内容映射到总线上即可。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">在此我准备了一个简单的dbc文件，它包含四个轮速，还有四个轮缸压力信号。我们将其拖入tsmaster中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-83ccaa0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="83ccaa0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f2d3c84" data-id="f2d3c84" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-55b569f elementor-widget elementor-widget-image" data-id="55b569f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img fetchpriority="high" decoding="async" width="1024" height="574" src="https://www.tosunai.com/wp-content/uploads/2022/09/2-1024x574.jpeg" class="attachment-large size-large wp-image-837" alt="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/2-1024x574.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/2-800x449.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/2-300x168.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/2-768x431.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/2-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/2.jpeg 1476w" sizes="(max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 7">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9b9c89f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9b9c89f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-702599b" data-id="702599b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3e4b70b elementor-widget elementor-widget-text-editor" data-id="3e4b70b" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">再打开RBS，让剩余总线仿真接管这些信号的发送。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">随后我们打开硬件通道选择器，将CAN通道选择为同星的一款总线工具—TC1005作为演示，TC1005的通道1和通道2互相连接在了一起，确保发出的报文可以被正确应答。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们启动RBS，打开Trace窗口，就可以看到我们需要的信号都在总线上以预定的频率发送着，当然这些信号由于没有更新，初始值都是0，下一步就是</span><span style="font-size: 14px; letter-spacing: 1.6px;">做信号绑定，将系统变量中的值传给这些信号。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">首先停止仿真，回到我们的算法小程序，添加预发送函数，接管轮速和压力报文的发送过程，这意味着每当报文即将被发出，系统都会调用这些预发送函数，我们只需要简单地在这些函数内更新我们所需的信号即可。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5b13139 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5b13139" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-53fa2b2" data-id="53fa2b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-76d74a3 elementor-widget elementor-widget-image" data-id="76d74a3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="1024" height="574" src="https://www.tosunai.com/wp-content/uploads/2022/09/4-1024x574.jpeg" class="attachment-large size-large wp-image-838" alt="TSMaster Graphic Automation" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/4-1024x574.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/4-800x448.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/4-300x168.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/4-768x430.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/4-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/4.jpeg 1478w" sizes="(max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 8">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-463fe36 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="463fe36" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f442d8a" data-id="f442d8a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-eb060c0 elementor-widget elementor-widget-text-editor" data-id="eb060c0" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: #222222; font-family: SourceHan-S-SC; letter-spacing: 1.6px; text-align: justify;">我们试着赋一下值。最后我们在图形窗口中，添加需要观测的CAN信号，包括速度信号和压力信号等等。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">至此，我们完成了所有所需的信号的预发送函数，是时候启 动整个仿真过程了，还是同样的流程，连接TSMaster的应 用程序，点击自动化模块的启动按钮。可以看到车辆正在运行过程中。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-981ef2e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="981ef2e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8d5453f" data-id="8d5453f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-698c238 elementor-widget elementor-widget-image" data-id="698c238" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" width="1024" height="565" src="https://www.tosunai.com/wp-content/uploads/2022/09/6-1024x565.jpeg" class="attachment-large size-large wp-image-839" alt="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/6-1024x565.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/6-800x441.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/6-300x165.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/6-768x424.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/6-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/6.jpeg 1501w" sizes="(max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 9">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-ce8ec5e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="ce8ec5e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c0efe2b" data-id="c0efe2b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-70ddabb elementor-widget elementor-widget-text-editor" data-id="70ddabb" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: SourceHan-S-SC; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">随着程序的运行，我们可以实时观测到总线上活跃的轮速和 压力信号，这些信号就最终与真实世界发生了交互。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-95cea65 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="95cea65" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aeec049" data-id="aeec049" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-40745ec elementor-widget elementor-widget-heading" data-id="40745ec" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">二、实现车辆控制器的HIL仿真</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-954933b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="954933b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0d185bb" data-id="0d185bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9ebf345 elementor-widget elementor-widget-text-editor" data-id="9ebf345" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">有了前面的基础，可以说此时我们真正踏入了HIL实时仿真的大门。使用这一整套流程，以不变应万变，实现各式各样的车辆控制器的HIL仿真。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">举个简单的例子，倘若我们需要对所开发的ibooster进行HIL仿真，ibooster是真实的ECU。我们就需要导入这个ibooster的所有网络的dbc文件，用我们的RBS将它所需的信号全部仿真出来。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0b6723f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0b6723f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-01f4a92" data-id="01f4a92" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-411ee7e elementor-widget elementor-widget-image" data-id="411ee7e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="560" src="https://www.tosunai.com/wp-content/uploads/2022/09/7-1024x560.jpeg" class="attachment-large size-large wp-image-840" alt="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/7-1024x560.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/7-800x437.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/7-300x164.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/7-768x420.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/7-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/7.jpeg 1515w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 10">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e6098cb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e6098cb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-eef3269" data-id="eef3269" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-53b69c2 elementor-widget elementor-widget-text-editor" data-id="53b69c2" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">而要仿真信号，最简单的方法则是，在RBS仿真界面上，选中我们所需的ibooster节点，点击右键，一键自动生成HIL配置，这步操作可以自动激活ibooster依赖的其他节点和报文。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">其次，来到小程序中，通过预发送函数，构造此节点所需的各类总线信号。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-23178d4 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="23178d4" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-349bde8" data-id="349bde8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-293e269 elementor-widget elementor-widget-image" data-id="293e269" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="561" src="https://www.tosunai.com/wp-content/uploads/2022/09/8-1024x561.jpeg" class="attachment-large size-large wp-image-841" alt="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/8-1024x561.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/8-800x438.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/8-300x164.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/8-768x421.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/8-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/8.jpeg 1512w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 11">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f2902f8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f2902f8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e8080f1" data-id="e8080f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-93ee9c9 elementor-widget elementor-widget-text-editor" data-id="93ee9c9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: SourceHan-S-SC; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">再接下来就是一些硬件的信号，比如遇到踏板信号，可以通过电缸自动化接口或是定制的 API实现。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">同时，如果遇到IO或通断信号，则通过我们的IO板卡和继电器 板卡API实现；</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">如果是遇到轮速等特殊传感器信号，则通过我们的轮速模拟板卡API实现；</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">如果遇到电源电压的控制，可以使用可编程电源配合API 的方式实现；</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">最后，我们可以打开自动化模块，编写一系列用例，来对我们的产品进行各种可能的测试。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c2ea041 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c2ea041" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-be33ddd" data-id="be33ddd" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c29d8df elementor-widget elementor-widget-image" data-id="c29d8df" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="567" src="https://www.tosunai.com/wp-content/uploads/2022/09/10-1024x567.jpeg" class="attachment-large size-large wp-image-843" alt="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/10-1024x567.jpeg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/10-800x443.jpeg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/10-300x166.jpeg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/10-768x425.jpeg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/10-18x10.jpeg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/10.jpeg 1496w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施 12">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d8a942a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d8a942a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b93dcec" data-id="b93dcec" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2c8a419 elementor-widget elementor-widget-text-editor" data-id="2c8a419" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(34, 34, 34); font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">当然，这一切背后还有个重要的前提，那就是软件之外的一切准备工作，也就是ECU机械和液压负载必须提前准备完毕。</span></p>
<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(34, 34, 34); font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><br style="margin: 0px; padding: 0px; outline: 0px; max-width: 100%; overflow-wrap: break-word !important;"></p>
<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(34, 34, 34); font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">只要上述内容都就绪，那么便可以设计并最终执行无人值守的全自动化参数遍历和测试，在测试结束后，再通过预先配置的信息，实现测试报告的一键自动生成。</span></p>
<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(34, 34, 34); font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><br style="margin: 0px; padding: 0px; outline: 0px; max-width: 100%; overflow-wrap: break-word !important;"></p>
<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: rgb(34, 34, 34); font-family: SourceHan-S-SC; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">最后的实现内容，由于细节过于繁杂，实现方式各异。我们有理由相信，基于TSMaster的这一整套仿真架构，小伙伴们也可以发挥自己的聪明才智，设计出各式各样的HIL实时仿真系统。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-05/">TSMasterHIL实时仿真系列5-ECU HIL仿真的具体实施</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-04/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Tue, 27 Sep 2022 08:20:58 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[ECU算法]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[TSMaster]]></category>
		<category><![CDATA[车载以太网]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=803</guid>

					<description><![CDATA[<p>本文主要介绍如何基于TSMaster打通ECU算法与整车模型之间的桥梁。 一、SDK融入TSMaster运行环 [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-04/">TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
			<style id="elementor-post-803">.elementor-803 .elementor-element.elementor-element-08b9004:not(.elementor-motion-effects-element-type-background), .elementor-803 .elementor-element.elementor-element-08b9004 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://www.tosunai.com/wp-content/uploads/2022/09/bg-1.webp");}.elementor-803 .elementor-element.elementor-element-08b9004{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-803 .elementor-element.elementor-element-08b9004 > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-widget-text-editor{color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-803 .elementor-element.elementor-element-d9abbf3 > .elementor-widget-container{margin:8px 8px 8px 8px;padding:20px 20px 20px 20px;}.elementor-803 .elementor-element.elementor-element-d9abbf3{font-family:"Roboto", Sans-serif;font-weight:900;color:#FFFFFF;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-803 .elementor-element.elementor-element-1b894cd{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-803 .elementor-element.elementor-element-1b894cd .elementor-divider-separator{width:100%;}.elementor-803 .elementor-element.elementor-element-1b894cd .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-803 .elementor-element.elementor-element-d24b65f{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );}.elementor-803 .elementor-element.elementor-element-5d569fe{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-dc22e7f{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-015b5e9{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-a24aa66{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-b12d84a{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-9434974{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-b254f74{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-0a1a64e{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-d6a5c5d{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-803 .elementor-element.elementor-element-13d4e77{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}</style>							<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="803" class="elementor elementor-803" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-08b9004 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="08b9004" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3fe1b0" data-id="e3fe1b0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d9abbf3 elementor-widget elementor-widget-text-editor" data-id="d9abbf3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>本文主要介绍如何基于TSMaster打通ECU算法与整车模型之间的桥梁。</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2b3e6b2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2b3e6b2" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9a03180" data-id="9a03180" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b894cd elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="1b894cd" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0add86c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0add86c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e968e0c" data-id="e968e0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c687060 elementor-widget elementor-widget-heading" data-id="c687060" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>一、SDK融入TSMaster运行环境</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-87dd0a3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="87dd0a3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f8b8eb7" data-id="f8b8eb7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d24b65f elementor-widget elementor-widget-text-editor" data-id="d24b65f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">由于此视频采用了CarSim controller自带的CarSim engine客户端，需要对代码库做一些配置，也就是需要引用CarSim controller开发包的相关sdk文件。我们打开ABS算法小程序的代码库。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; visibility: visible; overflow-wrap: break-word !important;">向上进入common文件夹，这个文件夹可存放多个小程序公共的头文件和代码文件，我们将SDK文件拖入此文件夹中。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接着转到全局定义中，第一行代码，引用一个C++头文件 #include &#8220;CarSimAPIUtilities.hpp&#8221;。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3fbde55 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3fbde55" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d5b5c27" data-id="d5b5c27" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1a74d75 elementor-widget elementor-widget-image" data-id="1a74d75" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="954" height="537" src="https://www.tosunai.com/wp-content/uploads/2022/09/2.png" class="attachment-large size-large wp-image-814" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/2.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/2-800x450.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/2-300x169.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/2-768x432.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/2-18x10.png 18w" sizes="auto, (max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 22">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a2defd3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a2defd3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-6cdb249" data-id="6cdb249" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b40b90 elementor-widget elementor-widget-text-editor" data-id="1b40b90" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">随后点击编译，可以看到，SDK也融入了TSMaster的运行环境中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7aeb341 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7aeb341" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f2f8312" data-id="f2f8312" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5f4745d elementor-widget elementor-widget-heading" data-id="5f4745d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>二、SDK控制动力学模型</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a3d35b3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a3d35b3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b015749" data-id="b015749" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5d569fe elementor-widget elementor-widget-text-editor" data-id="5d569fe" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接下来我们就可以通过调用SDK来轻松控制动力学模型了。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们可以使用CarSim engine自带的这 47 个API函数来操作CarSim，当然也可以选用基于CarSim engine开发的SDK来实现，相比起来SDK的函数更加简洁，它将整个 CarSim的控制分为三个阶段：初始化、运行、和结束运行。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">初始化函数名为 callback_setup，放在程序启动事件中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b96f503 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b96f503" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ce9d965" data-id="ce9d965" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-99f8ffd elementor-widget elementor-widget-image" data-id="99f8ffd" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="947" height="526" src="https://www.tosunai.com/wp-content/uploads/2022/09/3.png" class="attachment-large size-large wp-image-815" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/3.png 947w, https://www.tosunai.com/wp-content/uploads/2022/09/3-800x444.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/3-300x167.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/3-768x427.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/3-18x10.png 18w" sizes="auto, (max-width: 947px) 100vw, 947px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 23">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4849865 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4849865" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0076096" data-id="0076096" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-dc22e7f elementor-widget elementor-widget-text-editor" data-id="dc22e7f" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">运行函数名为 callback_start_carsim，放在step函数中，并且让它只执行一次；这需要再申请一个全局变<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">量 vToStart，来实现单次操作。</span></span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4240d2e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4240d2e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2776dd7" data-id="2776dd7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-206fb35 elementor-widget elementor-widget-image" data-id="206fb35" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="956" height="551" src="https://www.tosunai.com/wp-content/uploads/2022/09/4.png" class="attachment-large size-large wp-image-816" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/4.png 956w, https://www.tosunai.com/wp-content/uploads/2022/09/4-800x461.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/4-300x173.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/4-768x443.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/4-18x10.png 18w" sizes="auto, (max-width: 956px) 100vw, 956px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 24">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b8b07b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b8b07b1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a46bfbe" data-id="a46bfbe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-015b5e9 elementor-widget elementor-widget-text-editor" data-id="015b5e9" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">结束运行函数名为 callback_teardown，放在程序停止事件中；</span><span style="max-width: 100%; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;">写完后我们编译程序，运行程序。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-39106ac elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="39106ac" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a34a1b3" data-id="a34a1b3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b810f54 elementor-widget elementor-widget-heading" data-id="b810f54" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">三、车辆加速仿真试验</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-dc10f84 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="dc10f84" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51960a6" data-id="51960a6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a24aa66 elementor-widget elementor-widget-text-editor" data-id="a24aa66" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接下来我们尝试加速车辆，并在车速高于80kph时，紧急制动，要完成这个操作，只需要在我们的ABS小程序中，再自 定义两个API函数即可，我们将这两个函数分别命名为acc和brake。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">在acc中，我们操纵油门，此时需要到CarSim controller<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">中拷贝输入变量名，throttle，cs-</span></span><span style="font-size: 14px; letter-spacing: 1.6px;">&gt;IMP_THROTTLE_ENGINE = 0.6;</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d0254e3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d0254e3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aeb137b" data-id="aeb137b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-509071d elementor-widget elementor-widget-image" data-id="509071d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="954" height="546" src="https://www.tosunai.com/wp-content/uploads/2022/09/5.png" class="attachment-large size-large wp-image-817" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/5.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/5-800x458.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/5-300x172.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/5-768x440.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/5-18x10.png 18w" sizes="auto, (max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 25">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f7ef766 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f7ef766" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bbc5f3d" data-id="bbc5f3d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b12d84a elementor-widget elementor-widget-text-editor" data-id="b12d84a" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">在brake中，我们模拟驾驶员以150 bar的压力踩下制动踏板进行紧急制动，这就需要设置主缸压力为15MPa，我们设置一个全局变量 vPMC 来接收这个主缸压力，同时，还需要到全局定义中声明这个 vPMC。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f613aa0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f613aa0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09265a9" data-id="09265a9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f9dca9e elementor-widget elementor-widget-image" data-id="f9dca9e" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="954" height="534" src="https://www.tosunai.com/wp-content/uploads/2022/09/6.png" class="attachment-large size-large wp-image-818" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/6.png 954w, https://www.tosunai.com/wp-content/uploads/2022/09/6-800x448.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/6-300x168.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/6-768x430.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/6-18x10.png 18w" sizes="auto, (max-width: 954px) 100vw, 954px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 26">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5aa5f3b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5aa5f3b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-59f8622" data-id="59f8622" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-9434974 elementor-widget elementor-widget-text-editor" data-id="9434974" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">为了对比有无ABS的制动效果，我们首先尝试没有ABS算法的情况，那么这个压力将直接作用在四个轮缸上，这里还需声明一个变量 vHasABS，默认为假。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-40eeec1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="40eeec1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ff33745" data-id="ff33745" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5213d2b elementor-widget elementor-widget-image" data-id="5213d2b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="958" height="525" src="https://www.tosunai.com/wp-content/uploads/2022/09/7.png" class="attachment-large size-large wp-image-819" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/7.png 958w, https://www.tosunai.com/wp-content/uploads/2022/09/7-800x438.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/7-300x164.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/7-768x421.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/7-18x10.png 18w" sizes="auto, (max-width: 958px) 100vw, 958px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 27">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e17dfb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e17dfb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a1c839" data-id="5a1c839" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b254f74 elementor-widget elementor-widget-text-editor" data-id="b254f74" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">接着来到step函数中，通过 vHasABS 来区分算法的执行与否，若没有执行算法，则直接赋值轮缸压力。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">完成逻辑之后，我们需要观测轮速和压力，这些变量都来自于整车模型，如何观测呢？我们可以使用小程序的变量将其表达出来。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-18dd85c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="18dd85c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-438ea1d" data-id="438ea1d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-48ab740 elementor-widget elementor-widget-image" data-id="48ab740" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="568" src="https://www.tosunai.com/wp-content/uploads/2022/09/8-1-1024x568.jpg" class="attachment-large size-large wp-image-820" alt="TSMasterHIL实时仿真系列4-ECU HIL仿真的具体实施" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/8-1-1024x568.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-800x444.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-300x166.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-768x426.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/8-1.jpg 1492w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 28">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-92bf35c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="92bf35c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-870e802" data-id="870e802" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0a1a64e elementor-widget elementor-widget-text-editor" data-id="0a1a64e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">转到变量组上，点击右键添加变量表，依次输入车速，行驶距离，油门，各个轮速和各个压力值。点击确定后，一系列变量变申明好了，与全局定义不同的是，这些变量是系统变量，可以被其他小程序，或是被<span style="max-width: 100%; letter-spacing: 1.6px; overflow-wrap: break-word !important;">graphics或者面板等等窗口获取并自动绘制曲线。</span></span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们回到step函数，需要依次对这些系统变量进行赋值，赋值使用set操作</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;"> </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">v.set(cs-&gt;VX); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">station.set(cs-&gt;STATION);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">throttle.set(cs-&gt;IMP_THROTTLE_ENGINE); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vFL.set(cs-&gt;VX_L1);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vFR.set(cs-&gt;VX_R1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vRL.set(cs-&gt;VX_L2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">vRR.set(cs-&gt;VX_R2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pFL.set(cs-&gt;IMP_PBK_L1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pFR.set(cs-&gt;IMP_PBK_R1); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pRL.set(cs-&gt;IMP_PBK_L2); </span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">pRR.set(cs-&gt;IMP_PBK_R2);</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">随后运行程序，打开系统变量表，就可以看到我们为这个小程序添加的一系列监控变量。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-67d761b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="67d761b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2ee2448" data-id="2ee2448" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-28ff981 elementor-widget elementor-widget-image" data-id="28ff981" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="574" src="https://www.tosunai.com/wp-content/uploads/2022/09/9-1-1024x574.jpg" class="attachment-large size-large wp-image-821" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/9-1-1024x574.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-800x449.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-300x168.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-768x431.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/9-1.jpg 1476w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 29">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6271dce elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6271dce" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b4eb8f2" data-id="b4eb8f2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d6a5c5d elementor-widget elementor-widget-text-editor" data-id="d6a5c5d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们打开graphics，将图形分为三栏，上栏显示速度，中栏显示压力，下栏显示油门和行驶距离等信息，随后添加各个系统变量进行观测。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d0b0d9b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d0b0d9b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-af9e0b5" data-id="af9e0b5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-293457f elementor-widget elementor-widget-image" data-id="293457f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="560" src="https://www.tosunai.com/wp-content/uploads/2022/09/10-1-1024x560.jpg" class="attachment-large size-large wp-image-822" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/10-1-1024x560.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-800x437.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-300x164.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-768x420.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/10-1.jpg 1486w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁 30">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-fa9c885 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="fa9c885" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f3479b2" data-id="f3479b2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-13d4e77 elementor-widget elementor-widget-text-editor" data-id="13d4e77" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">再转到自动化模块中，将我们现有的逻辑做一些修改，也就是启动后等待车辆加速到80公里每小时，再进行制动，只有制动到车速为0时，才停止仿真。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-04/">TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-03/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Tue, 27 Sep 2022 07:43:27 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[CCP / XCP 标定]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[LIN总线仿真工具]]></category>
		<category><![CDATA[TSMaster]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=779</guid>

					<description><![CDATA[<p>本文介绍TSMaster HIL实时仿真系列第三章节。在了解如何自动生成ECU的嵌入式代码，并且集成到于TSM [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-03/">TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
			<style id="elementor-post-779">.elementor-779 .elementor-element.elementor-element-01dad88{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-779 .elementor-element.elementor-element-01dad88 > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-widget-text-editor{color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-779 .elementor-element.elementor-element-db2e02d > .elementor-widget-container{margin:21px 21px 21px 21px;padding:0px 0px 0px 0px;}.elementor-779 .elementor-element.elementor-element-db2e02d{font-family:"Roboto Condensed", Sans-serif;font-weight:900;color:#FFFFFF;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-779 .elementor-element.elementor-element-63828e1{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-779 .elementor-element.elementor-element-63828e1 .elementor-divider-separator{width:100%;}.elementor-779 .elementor-element.elementor-element-63828e1 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-779 .elementor-element.elementor-element-b147352{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-ad33d62{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );}.elementor-779 .elementor-element.elementor-element-6a0228e{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-f9fadb3{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-5736d58{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-dda9fed{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-064d329{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-779 .elementor-element.elementor-element-3d7579c{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}</style>							<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="779" class="elementor elementor-779" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-01dad88 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="01dad88" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c2f2071" data-id="c2f2071" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-db2e02d elementor-widget elementor-widget-text-editor" data-id="db2e02d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>本文介绍TSMaster HIL实时仿真系列第三章节。在了解如何自动生成ECU的嵌入式代码，并且集成到于TSMaster的实时运行环境中的基础上，来分享ECU算法如何进行数据层面的交互。</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-aa37319 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="aa37319" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-369cf07" data-id="369cf07" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-63828e1 elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="63828e1" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0049696 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0049696" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7f59c0c" data-id="7f59c0c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-c78173d elementor-widget elementor-widget-heading" data-id="c78173d" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>一、脱离RT的实时仿真</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0222420 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0222420" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-48991d1" data-id="48991d1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b147352 elementor-widget elementor-widget-text-editor" data-id="b147352" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; letter-spacing: 1.6px; visibility: visible; overflow-wrap: break-word !important;">不论我们的ABS算法是处在TSMaster的小程序中，还是处在真实的ECU硬件中，它的运行必然都需要输入外部环境给它提供的轮速等信号，它的输出也必然要施加到外部的环境中，这里的外部环境就是指整车以及其他的控制器。很明显，我们需要一个整车模型来参与仿真的过程，通常意义上，这个整车模型就是CarSim的RT版本。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">基于第一章节的实时性探讨，我们同样可以使用非RT版本的CarSim，而仅仅通过实时调用CarSim相关的API函数，将整车模型搬到个人电脑上来运行。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-623960a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="623960a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ad1ff1" data-id="5ad1ff1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a4d37a5 elementor-widget elementor-widget-heading" data-id="a4d37a5" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>二、Carsim Controller</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-efc2eee elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="efc2eee" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c107ea5" data-id="c107ea5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ad33d62 elementor-widget elementor-widget-text-editor" data-id="ad33d62" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; letter-spacing: 1.6px; overflow-wrap: break-word !important;">在这个例子中用到了我们专门为CarSim打造的CarSim Controller，它相当于CarSim的RT版本，具有在个人电脑上高精度的仿真车辆模型的能力。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; overflow-wrap: break-word !important;"> </p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c8243f7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c8243f7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-792c403" data-id="792c403" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-719dc46 elementor-widget elementor-widget-image" data-id="719dc46" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="562" src="https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-1024x562.jpg" class="attachment-large size-large wp-image-791" alt="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-1024x562.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-800x439.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-300x165.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-768x422.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/图2-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/图2-1.jpg 1508w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真 36">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1a3176a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1a3176a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fbe4f9f" data-id="fbe4f9f" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6a0228e elementor-widget elementor-widget-text-editor" data-id="6a0228e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们首先通过CarSim Controller打开CarSim的自动化实例，选定CarSim中需要运行的车辆模型配置，在此我们同样使用的是对开路面，可以看到左侧是高附右侧是低附的洒水瓷砖。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-431e36e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="431e36e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-07a84a5" data-id="07a84a5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8838efa elementor-widget elementor-widget-image" data-id="8838efa" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="562" src="https://www.tosunai.com/wp-content/uploads/2022/09/3-2-1024x562.jpg" class="attachment-large size-large wp-image-792" alt="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/3-2-1024x562.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/3-2-800x439.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/3-2-300x165.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/3-2-768x421.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/3-2-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/3-2.jpg 1510w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真 37">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-ee4bb10 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="ee4bb10" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-10ae077" data-id="10ae077" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f9fadb3 elementor-widget elementor-widget-text-editor" data-id="f9fadb3" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们再切换回CarSim Controller中，点击运行按钮，就可以实时的看到仿真的运行过程了。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7c46d97 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7c46d97" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1fe6193" data-id="1fe6193" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-1b3ef9f elementor-widget elementor-widget-image" data-id="1b3ef9f" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="557" src="https://www.tosunai.com/wp-content/uploads/2022/09/4-1-1024x557.jpg" class="attachment-large size-large wp-image-796" alt="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/4-1-1024x557.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/4-1-800x436.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/4-1-300x163.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/4-1-768x418.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/4-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/4-1.jpg 1521w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真 38">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b672bfe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b672bfe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-68f5c92" data-id="68f5c92" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5736d58 elementor-widget elementor-widget-text-editor" data-id="5736d58" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">当前我们看到车辆正在缓慢的前进，这是由于车辆处于怠速状态的缘故。我们切换到输入接口表中在这里可以浏览CarSim的流量接口变量，这相当于Simulink中的CarSim’s function inputs。我们过滤一下已经分配的接口变量，就可以看到我们预先配置的油门以及自动等输入。我们可以通过界面也可以通过API来实时控制这个车辆模型。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-c727fa5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="c727fa5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fd4c0ea" data-id="fd4c0ea" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-6921574 elementor-widget elementor-widget-image" data-id="6921574" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="562" src="https://www.tosunai.com/wp-content/uploads/2022/09/5-1-1024x562.jpg" class="attachment-large size-large wp-image-798" alt="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/5-1-1024x562.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/5-1-800x439.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/5-1-300x165.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/5-1-768x421.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/5-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/5-1.jpg 1510w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真 39">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9e8f065 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9e8f065" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b486f0a" data-id="b486f0a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-dda9fed elementor-widget elementor-widget-text-editor" data-id="dda9fed" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">如果我们想要停止给油门，并且给左前轮施加自动压力，例如15兆帕的自动压力，切换到视频中可以看到左前轮抱死，而其他车轮还在正常的滚动，以上便是车辆动力学的手动控制功能。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d534716 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d534716" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-33a4ae7" data-id="33a4ae7" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3c20dd8 elementor-widget elementor-widget-heading" data-id="3c20dd8" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">三、TSMaster对模型的自动控制</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-be37994 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="be37994" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8ee6ca1" data-id="8ee6ca1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-064d329 elementor-widget elementor-widget-text-editor" data-id="064d329" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们当然可以通过TSMaster对车辆模型施加可重现的自动控制，这就需要TSMaster加载一个CarSim Controller的客户端，CarSim engine小程序库。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-49291a8 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="49291a8" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d7337f1" data-id="d7337f1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-fd341f7 elementor-widget elementor-widget-image" data-id="fd341f7" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1024" height="562" src="https://www.tosunai.com/wp-content/uploads/2022/09/6-1-1024x562.jpg" class="attachment-large size-large wp-image-799" alt="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/6-1-1024x562.jpg 1024w, https://www.tosunai.com/wp-content/uploads/2022/09/6-1-800x439.jpg 800w, https://www.tosunai.com/wp-content/uploads/2022/09/6-1-300x165.jpg 300w, https://www.tosunai.com/wp-content/uploads/2022/09/6-1-768x422.jpg 768w, https://www.tosunai.com/wp-content/uploads/2022/09/6-1-18x10.jpg 18w, https://www.tosunai.com/wp-content/uploads/2022/09/6-1.jpg 1508w" sizes="auto, (max-width: 1024px) 100vw, 1024px" title="TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真 40">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4a5638b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a5638b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b598bb3" data-id="b598bb3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d7579c elementor-widget elementor-widget-text-editor" data-id="3d7579c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">我们点开小程序库，可以看到CarSim engine的小程序库有一系列自动控制的API函数，他们负责完成CarSim车辆各类参数的自动修改、动力学模型实时控制等等一些列无人值守的自动化命令。从而实现仅仅使用个人电脑就可以执行CarSim RT等实时仿真的功能。而基于个人电脑直接运行HIL的好处是显而易见的，各类参数的配置和部署都在本地，对比传统HIL的部署可以说是瞬间完成。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">而基于TSMaster的软件平台，我们就可以轻易的干预ECU算法中的任意变量。需要说明的是CarSim Controller仅仅是将一个动力学软件CarSim做到实时控制的千万种方法中的一种。基于此原理，同样可以实现Carmaker等等其他动力学软件的实时控制。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-03/">TSMasterHIL实时仿真系列3-脱离RT的车辆模型的实时仿真</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-02/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Tue, 27 Sep 2022 06:13:27 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[CAN FD测试工具]]></category>
		<category><![CDATA[CCP / XCP 标定]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[仿真]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=726</guid>

					<description><![CDATA[<p>本章节介绍TSMaster从零打造车辆控制器HIL实时仿真系列第二章节。示例是我们亲手设计实时仿真也就是HIL [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-02/">TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
			<style id="elementor-post-726">.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );}.elementor-726 .elementor-element.elementor-element-13c6c7b > .elementor-widget-container{border-style:double;border-width:2px 2px 2px 2px;border-color:#12389D;}.elementor-bc-flex-widget .elementor-726 .elementor-element.elementor-element-8d9022b.elementor-column .elementor-widget-wrap{align-items:center;}.elementor-726 .elementor-element.elementor-element-8d9022b.elementor-column.elementor-element[data-element_type="column"] > .elementor-widget-wrap.elementor-element-populated{align-content:center;align-items:center;}.elementor-726 .elementor-element.elementor-element-8d9022b.elementor-column > .elementor-widget-wrap{justify-content:center;}.elementor-726 .elementor-element.elementor-element-8d9022b > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute){margin-block-end:5px;}.elementor-widget-text-editor{color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-726 .elementor-element.elementor-element-56c83de > .elementor-widget-container{margin:8px 8px 8px 8px;padding:6px 6px 6px 6px;border-style:dashed;border-width:1px 1px 1px 1px;border-color:var( --e-global-color-secondary );}.elementor-726 .elementor-element.elementor-element-56c83de{font-family:"Roboto", Sans-serif;line-height:27px;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-726 .elementor-element.elementor-element-92e482e{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-726 .elementor-element.elementor-element-92e482e .elementor-divider-separator{width:100%;}.elementor-726 .elementor-element.elementor-element-92e482e .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-726 .elementor-element.elementor-element-88e7e98{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-dfb2eda{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-71438e8{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-73f5359{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-972f864{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-0344b3e{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-2f846a4{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-90e137c{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-5b9eb7d{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-784aa3c{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-726 .elementor-element.elementor-element-8678944{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}</style>							<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="726" class="elementor elementor-726" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-7fd397c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="7fd397c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6bf078c" data-id="6bf078c" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-13c6c7b elementor-widget elementor-widget-image" data-id="13c6c7b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="950" height="640" src="https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779.png" class="attachment-large size-large wp-image-1186" alt="TSMasterHIL实时仿真系列4-打通ECU算法与整车模型之间的桥梁" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779.png 950w, https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779-800x539.png 800w, https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779-300x202.png 300w, https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779-768x517.png 768w, https://www.tosunai.com/wp-content/uploads/2022/09/1664507176779-18x12.png 18w" sizes="auto, (max-width: 950px) 100vw, 950px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 52">															</div>
				</div>
					</div>
		</div>
				<div class="elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-8d9022b" data-id="8d9022b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-56c83de elementor-widget elementor-widget-text-editor" data-id="56c83de" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-family: Roboto, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: var( --e-global-color-text );">本章节介绍TSMaster从零打造车辆控制器HIL实时仿真系列第二章节。示例是我们亲手设计实时仿真也就是HIL的环节，为了让示例通俗易懂，我们选取了CARSIM自带的ABS控制器作为仿真的对象。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3d3250a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3d3250a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8333aa1" data-id="8333aa1" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-92e482e elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="92e482e" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5ebacfc elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5ebacfc" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ffae411" data-id="ffae411" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b4c543e elementor-widget elementor-widget-heading" data-id="b4c543e" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">一、Simulink模型</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0113072 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0113072" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-be3663b" data-id="be3663b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-88e7e98 elementor-widget elementor-widget-text-editor" data-id="88e7e98" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p>1、我们打开CARSIM，然后选择Simulink模型，对开路面Multi-port SLX，这个示例使用的是一辆不带ABS系统的小轿车，它是前驱的配置。</p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-19f4d06 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="19f4d06" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-92e8960" data-id="92e8960" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d9997b elementor-widget elementor-widget-image" data-id="3d9997b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="692" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-1.webp" class="attachment-large size-large wp-image-737" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-1.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-1-768x531.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-1-800x554.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 53">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-083764d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="083764d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a50ce60" data-id="a50ce60" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-dfb2eda elementor-widget elementor-widget-text-editor" data-id="dfb2eda" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">2、我们来看procedure，也就是驾驶员控制的部分，初始的速度是65公里每小时，自动压力是15兆帕，在0.3秒内完成也就是我们常说的150bar，档位控制是在合理的范围内自动切换，而转向部分则交给驾驶员模型进行闭环控制。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-bb493d3 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="bb493d3" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4de9a25" data-id="4de9a25" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-fa8d945 elementor-widget elementor-widget-image" data-id="fa8d945" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="679" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-2-1.webp" class="attachment-large size-large wp-image-738" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-2-1.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-2-1-768x521.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-2-1-800x543.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 54">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b46106a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b46106a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a39f5c4" data-id="a39f5c4" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-71438e8 elementor-widget elementor-widget-text-editor" data-id="71438e8" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">3、路面部分为对开路面，从3米开始，一侧的系数是0.2，另外一侧是0.5，回到主页，点击Send to Simulink，等待Simulink启动完毕，Simulink模型则是今天的重点。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-991f418 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="991f418" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a784ec9" data-id="a784ec9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-60bfd93 elementor-widget elementor-widget-image" data-id="60bfd93" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="662" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-3.webp" class="attachment-large size-large wp-image-739" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-3.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-3-768x508.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-3-800x530.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 55">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-a2041c5 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="a2041c5" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-08a98fe" data-id="08a98fe" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-35415bf elementor-widget elementor-widget-heading" data-id="35415bf" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>二、ABS控制算法</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6aedc6d elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6aedc6d" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-081f82a" data-id="081f82a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-73f5359 elementor-widget elementor-widget-text-editor" data-id="73f5359" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">1、我们可以将这个控制算法生成嵌入式代码，下载到带ABS功能的ECU中运行，可以看到这个算法模型包含了一个CARSIM的S function作为车辆模型的接口，还有一个简化版本的基于漂移率的轮缸压力控制策略以及后轴低选策略，还有制动性模型中的制动力分配等等。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5e58543 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5e58543" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-685c6c8" data-id="685c6c8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-ed8477d elementor-widget elementor-widget-image" data-id="ed8477d" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="551" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-4.webp" class="attachment-large size-large wp-image-741" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-4.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-4-768x423.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-4-800x441.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 56">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-eff9110 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="eff9110" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1882455" data-id="1882455" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-972f864 elementor-widget elementor-widget-text-editor" data-id="972f864" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">2、我们运行下这个模型，可以看到，这个轮速与车速的图形窗口中绘制了在对开路面上的ABS自动循环，而这个轮缸压力窗口中，则是四个车轮的轮缸压力控制曲线，这是一个简易版本的控制算法。制动力分配，也就是前轴压力比上后轴压力是1比0.4，很容易判断出，制动结束后，压力上升到15兆帕的两个车轮为前轮压力，而压力上升到6兆帕的是后轮压力。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-329166c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="329166c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1914f77" data-id="1914f77" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d5b9491 elementor-widget elementor-widget-image" data-id="d5b9491" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="633" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-5.webp" class="attachment-large size-large wp-image-742" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-5.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-5-768x486.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-5-800x506.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 57">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f35fb78 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f35fb78" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09b9a68" data-id="09b9a68" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e0c4634 elementor-widget elementor-widget-heading" data-id="e0c4634" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">三、RT的低成本替代方案</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-982dd7e elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="982dd7e" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d46c1f5" data-id="d46c1f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0344b3e elementor-widget elementor-widget-text-editor" data-id="0344b3e" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">大家可能注意到在Simulink环境中，运行的时间是10秒，然而点击运行后实际上只用了很短的时间就跑完了整个仿真，说明此仿真的过程并不是实时的。Simulink所起的作用仅仅是按照每个step来执行算法，收集每个step产出的数据并将其绘制在图形窗口里而已。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">如果我们想在ABS制动过程中像整车总线上面实时发送ABS激活的flag或者是轮缸压力值，这些都是无法做到的。而在拥有的CarSim RT版本的环境中，该模型可以被编译为dll，下载到实时系统中运行，从而实现模型算法与真实世界的交互，这个解决方案是目前被广泛采纳的仿真模式。各大主机厂和零部件厂所依赖的HIL仿真也是基于此方案展开。然而此方案存在两个问题：一是成本高，不但需要车辆动力学软件本身的license，还需要RT的license；二是部署的过程很浪费时间，在CarSim中修改参数之后需要重新部署，自动和程度不高。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">而在本例中，我们通过TSMaster来模拟ABS算法，让ABS算法在TSMaster的实时环境中运行，运行过程中可以通过CAN接口或者是连接在个人电脑上的IO接口等等，与外部的世界进行交互，再通过自研的实时引擎接管CarSim的仿真过程实现车辆模型在电脑上的实时运行，如此我们便得到了RT的低成本替代方案——软件HIL。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4275923 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4275923" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-723bf06" data-id="723bf06" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e808e43 elementor-widget elementor-widget-image" data-id="e808e43" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="639" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-6.webp" class="attachment-large size-large wp-image-743" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-6.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-6-768x491.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-6-800x511.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 58">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1ddc470 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1ddc470" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f7f0c8d" data-id="f7f0c8d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b5ce620 elementor-widget elementor-widget-heading" data-id="b5ce620" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>四、ECU嵌入式代码&amp;小程序</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3085677 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3085677" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b5a0cc6" data-id="b5a0cc6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f846a4 elementor-widget elementor-widget-text-editor" data-id="2f846a4" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">下面我们从零一步步基于TSMaster来搭建ABS算法的实时仿真环境。第一步是要通过Simulink将ABS的算法自动生成嵌入式代码，将它作为一个小程序运行在TSMaster的实时环境中。</span></p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"> </p><p style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; overflow-wrap: break-word !important;"><span style="max-width: 100%; font-size: 14px; overflow-wrap: break-word !important;">1、我们首先将这个模型另存，然后需要修改路径，让代码的生成放置在这个新的路径中。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4bdc284 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4bdc284" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d3c4896" data-id="d3c4896" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f9d6727 elementor-widget elementor-widget-image" data-id="f9d6727" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="565" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-7-1.webp" class="attachment-large size-large wp-image-744" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-7-1.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-7-1-768x434.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-7-1-800x452.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 59">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-41b7004 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="41b7004" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25fb6eb" data-id="25fb6eb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-90e137c elementor-widget elementor-widget-text-editor" data-id="90e137c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">2、随后我们需要在模型上做一些修改让其可以生成嵌入式代码。首先就需要删除示波器等等一系列无用的控件，再删除CarSim的s function，将s function的接口转化为in 和 out。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-024435f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="024435f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0a9dfb3" data-id="0a9dfb3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d2b575b elementor-widget elementor-widget-image" data-id="d2b575b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="625" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-8.webp" class="attachment-large size-large wp-image-745" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-8.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-8-768x480.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-8-800x500.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 60">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2d0ad6a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2d0ad6a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-71e1283" data-id="71e1283" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5b9eb7d elementor-widget elementor-widget-text-editor" data-id="5b9eb7d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">3、为了正确的生成嵌入式代码，还需要在代码生成上做一番修改，打开配置，首先是stop time，设置为inf，然后是salvar，再次使用的是定步长，step我们使用了业界通用的5毫秒。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-99bbcfd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="99bbcfd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ea8bd3" data-id="5ea8bd3" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-fa0c254 elementor-widget elementor-widget-image" data-id="fa0c254" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="551" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-9.webp" class="attachment-large size-large wp-image-749" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-9.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-9-768x423.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-9-800x441.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 61">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-f0394b1 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="f0394b1" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-377a00a" data-id="377a00a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-784aa3c elementor-widget elementor-widget-text-editor" data-id="784aa3c" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">4、接下来来到代码生成的环节，Target file自然是ert，我们还需要转到interface，在这里将continuous time勾上，因为轮缸压力模型中间用到的是传递函数，是连续状态，随后按Ctrl+B生成代码，很快代码就生成完毕了。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-2b63e40 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="2b63e40" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2dc19cf" data-id="2dc19cf" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-d56c82a elementor-widget elementor-widget-image" data-id="d56c82a" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="581" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-10.webp" class="attachment-large size-large wp-image-750" alt="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-10.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-10-768x446.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-2-10-800x465.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成 62">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e478f8f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e478f8f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bbfab98" data-id="bbfab98" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8678944 elementor-widget elementor-widget-text-editor" data-id="8678944" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">5、那么在这份代码中，我们需要将ABS.c.h以及一些列的其他的头文件复制粘贴到TSMaster的小程序的文件夹中间参与编译过程。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-02/">TSMasterHIL实时仿真系列2-ECU代码生成与小程序集成</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>TSMasterHIL实时仿真系列1-实时仿真原理</title>
		<link>https://www.tosunai.com/tsmaster-hil-simulation-01/</link>
		
		<dc:creator><![CDATA[zhang, yaping]]></dc:creator>
		<pubDate>Mon, 26 Sep 2022 08:46:53 +0000</pubDate>
				<category><![CDATA[HIL实时仿真系列]]></category>
		<category><![CDATA[CAN FD测试工具]]></category>
		<category><![CDATA[HIL 实时仿真]]></category>
		<category><![CDATA[TSMaster]]></category>
		<category><![CDATA[视频采集]]></category>
		<guid isPermaLink="false">https://www.tosunai.com/?p=181</guid>

					<description><![CDATA[<p>实时仿真在汽车零部件的开发和测试中占据着重要地位，通常情况下，要实现实时仿真和硬件在环测试，免不了要和NI、V [&#8230;]</p>
<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-01/">TSMasterHIL实时仿真系列1-实时仿真原理</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></description>
			<style id="elementor-post-181">.elementor-181 .elementor-element.elementor-element-4a050f2:not(.elementor-motion-effects-element-type-background), .elementor-181 .elementor-element.elementor-element-4a050f2 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://www.tosunai.com/wp-content/uploads/2022/09/bg.webp");background-repeat:no-repeat;background-size:cover;}.elementor-181 .elementor-element.elementor-element-4a050f2 > .elementor-background-overlay{background-color:var( --e-global-color-primary );opacity:0.69;transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-181 .elementor-element.elementor-element-4a050f2{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-widget-text-editor{color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-181 .elementor-element.elementor-element-8745e23 > .elementor-widget-container{padding:29px 29px 29px 29px;}.elementor-181 .elementor-element.elementor-element-8745e23{text-align:start;font-family:"Roboto", Sans-serif;font-weight:900;font-style:normal;line-height:24px;color:#FFFFFF;}.elementor-181 .elementor-element.elementor-element-173f6294 > .elementor-widget-container{margin:17px 17px 17px 17px;padding:0px 0px 0px 0px;border-style:double;border-width:2px 2px 2px 2px;border-color:#1D71B0;}.elementor-181 .elementor-element.elementor-element-173f6294{font-family:"Roboto", Sans-serif;font-weight:400;line-height:27px;letter-spacing:0px;}.elementor-widget-divider{--divider-color:var( --e-global-color-secondary );}.elementor-widget-divider .elementor-divider__text{color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-stacked .elementor-icon{background-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon{color:var( --e-global-color-secondary );border-color:var( --e-global-color-secondary );}.elementor-widget-divider.elementor-view-framed .elementor-icon, .elementor-widget-divider.elementor-view-default .elementor-icon svg{fill:var( --e-global-color-secondary );}.elementor-181 .elementor-element.elementor-element-fe85522{--divider-border-style:solid;--divider-color:#000;--divider-border-width:1px;}.elementor-181 .elementor-element.elementor-element-fe85522 .elementor-divider-separator{width:100%;}.elementor-181 .elementor-element.elementor-element-fe85522 .elementor-divider{padding-block-start:15px;padding-block-end:15px;}.elementor-widget-heading .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-181 .elementor-element.elementor-element-e48bee1{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-widget-image .widget-image-caption{color:var( --e-global-color-text );}.elementor-181 .elementor-element.elementor-element-cff3ffd{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-b5a9d53{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-0f15f37{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-a44f216{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-687f269{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-8b394f5{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-be2c48d{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-cc71f60{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-08a5879{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}.elementor-181 .elementor-element.elementor-element-14d1b02{font-family:"Roboto", Sans-serif;font-weight:400;line-height:20px;}</style>							<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="181" class="elementor elementor-181" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-4a050f2 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a050f2" data-element_type="section" data-e-type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;}">
							<div class="elementor-background-overlay"></div>
							<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4a0760a" data-id="4a0760a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8745e23 elementor-widget elementor-widget-text-editor" data-id="8745e23" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-size: 10.5pt; font-family: 宋体;"><font face="宋体">实时仿真在汽车零部件的开发和测试中占据着重要地位，通常情况下，要实现实时仿真和硬件在环测试，免不了要和</font><font face="Calibri">N</font></span><span style="font-size: 10.5pt; font-family: Calibri;">I</span><span style="font-size: 10.5pt; font-family: 宋体;"><font face="宋体">、</font><font face="Calibri">V</font></span><span style="font-size: 10.5pt; font-family: Calibri;">eristand</span><span style="font-size: 10.5pt; font-family: 宋体;"><font face="宋体">、</font><font face="Calibri">D</font></span><span style="font-size: 10.5pt; font-family: Calibri;">space</span><span style="font-size: 10.5pt; font-family: 宋体;">等等这些</span><span style="font-size: 10.5pt; font-family: 宋体;">大</span><span style="font-size: 10.5pt; font-family: 宋体;"><font face="宋体">牌的软件或者硬件产品打交道，这些产品的成本高昂，也有一定的准入门槛，并不利于大面积推广。而</font><font face="Calibri">TSMaster</font><font face="宋体">的出现则打破了这样一个局面。</font></span><br></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-32b7e3e7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="32b7e3e7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-54377980" data-id="54377980" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-173f6294 elementor-widget elementor-widget-text-editor" data-id="173f6294" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h6 style="margin-bottom: 0px; max-width: 100%; clear: both; min-height: 1em; color: #3e3e3e; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;"><span style="font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px;">首先，解释一下实时仿真中的实时性，它不要求仿真速度要有多快，而是对仿真计算任务的返回结果的时刻提出了确定性的要求。比如ECU中的一个任务，它的执行周期是5毫秒，实时性对它的最基本要求便是这个任务必须在当前的5毫秒内执行完毕，而不能推迟到下一个5毫秒周期，这仅仅只是最基本的要求。因为ECU的处理器的计算资源有限，其中有众多不同周期的任务，都需要在指定时间内完成，这就是为何需要使用实时系统来执行仿真任务，实时系统完全模拟了ECU控制器的运行环境。</span><br></h6>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-5ad351b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5ad351b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-82b0a3d" data-id="82b0a3d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-fe85522 elementor-widget-divider--view-line elementor-widget elementor-widget-divider" data-id="fe85522" data-element_type="widget" data-e-type="widget" data-widget_type="divider.default">
				<div class="elementor-widget-container">
							<div class="elementor-divider">
			<span class="elementor-divider-separator">
						</span>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-561b2ee elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="561b2ee" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e3ca469" data-id="e3ca469" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0b787d2 elementor-widget elementor-widget-heading" data-id="0b787d2" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default">1、TSMaster的软实时能力</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6e6e9aa elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6e6e9aa" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-51a7046" data-id="51a7046" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e48bee1 elementor-widget elementor-widget-text-editor" data-id="e48bee1" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; letter-spacing: 1.6px; text-align: justify;">以需要仿真的1毫秒任务为例，此任务1秒内将运行1000次，以TSMaster的能力，可以将此任务的运行频率精确控制在1000赫兹，甚至更高。</span><span style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; max-width: 100%; color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; letter-spacing: 1.6px; text-align: justify; visibility: visible; overflow-wrap: break-word !important;">比如我们将这个报文的周期改为1毫秒，那么我们可以看到这帧报文的频率就变成了1000帧每秒。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6cc50cd elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6cc50cd" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ad31e04" data-id="ad31e04" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a8685d3 elementor-widget elementor-widget-image" data-id="a8685d3" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="548" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-1.webp" class="attachment-large size-large wp-image-621" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-1.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-1-768x421.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-1-800x438.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 74">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4877682 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4877682" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ba35b11" data-id="ba35b11" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-cff3ffd elementor-widget elementor-widget-text-editor" data-id="cff3ffd" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">&nbsp;</span><span style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: rgb(34, 34, 34); font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 13px; letter-spacing: 1.6px; text-align: justify;">在频率正确的情况下，下一步要做的就是通过数学的方法统计每次任务的时间点的命中情况。例如，在一个任务将要执行的1毫秒时刻的正负20%的时间范围内得以运行完毕，则认为此任务的这一次运行成功命中。整个仿真过程结束后，我们就可以得到一个命中率，比如97%，这意味着平均每100次的任务运行只有3次因为时机的不确定性带来了误差，那么我们完全可以将命中率的大小作为一个评价实时仿真结果与预期结果的相似度的依据。命中率越高，仿真效果越好，这个算法就是TSMaster软件的HIL的基础</span><span style="font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; color: rgb(34, 34, 34); font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 13px; letter-spacing: 1.6px; text-align: justify;">。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9b2015c elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9b2015c" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-78a8a25" data-id="78a8a25" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b584da5 elementor-widget elementor-widget-image" data-id="b584da5" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="475" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-2.webp" class="attachment-large size-large wp-image-622" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-2.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-2-768x365.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-2-800x380.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 75">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-d5898b7 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="d5898b7" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0d3ba7a" data-id="0d3ba7a" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f94ebf1 elementor-widget elementor-widget-heading" data-id="f94ebf1" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>2、TSMaster定时功能-参与仿真测试</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-74d8e8f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="74d8e8f" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1f7e3d2" data-id="1f7e3d2" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-b5a9d53 elementor-widget elementor-widget-text-editor" data-id="b5a9d53" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们可以打开TSMaster的系统信息窗口，转到诊断信息这一栏，有一个软件性能测试工具，它可以评估TSMaster内置的定时器的性能，默认是8毫秒的定时周期，容忍误差是10%。这意味着定时的偏差极限是0.8毫秒，也就是定时时刻在7.2毫秒到8.8毫秒之内都是可以接受的。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-549ef7b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="549ef7b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-fd6b783" data-id="fd6b783" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-568909b elementor-widget elementor-widget-image" data-id="568909b" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="544" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-3.webp" class="attachment-large size-large wp-image-623" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-3.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-3-768x418.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-3-800x435.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 76">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-b732659 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="b732659" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-09027bb" data-id="09027bb" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0f15f37 elementor-widget elementor-widget-text-editor" data-id="0f15f37" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们可以直接点击“性能评估”按钮，就可以看到实测结果了。中间是实测结果的平均值，左侧是周期的最小平均值，右侧是周期的最大平均值，还附带了一个误差比例为1.%几。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-abb7d05 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="abb7d05" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e6acf48" data-id="e6acf48" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-52e38b2 elementor-widget elementor-widget-image" data-id="52e38b2" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="545" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-4.webp" class="attachment-large size-large wp-image-624" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-4.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-4-768x419.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-4-800x436.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 77">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-75f0c82 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="75f0c82" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0851039" data-id="0851039" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-a44f216 elementor-widget elementor-widget-text-editor" data-id="a44f216" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">接下来，我们打开任务管理器，可以看到这是我们TSMaster的进程，在5%这样低的误差比例下，TSMaster CPU占用率也是相当低的，这足以说明TSMaster软件本身的优越性能。这意味着使用大多数情况下，使用TSMaster的定时功能就可以直接参与实时仿真，无需再做更多的布置。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-9cbbb99 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="9cbbb99" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3d269c0" data-id="3d269c0" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-5937bde elementor-widget elementor-widget-image" data-id="5937bde" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="536" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-5.webp" class="attachment-large size-large wp-image-625" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-5.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-5-768x412.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-5-800x429.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 78">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-813b00b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="813b00b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7c1f0be" data-id="7c1f0be" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-3d1941b elementor-widget elementor-widget-heading" data-id="3d1941b" data-element_type="widget" data-e-type="widget" data-widget_type="heading.default">
				<div class="elementor-widget-container">
					<h2 class="elementor-heading-title elementor-size-default"><br>3、同星硬件的实时性</h2>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-e34e7a0 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="e34e7a0" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4735a53" data-id="4735a53" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-687f269 elementor-widget elementor-widget-text-editor" data-id="687f269" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们以一个简单的报文收发的示例来验证一下TSMaster的实时性，首先创建一个全新的工程，我们选择总线测量模板，在这个工程中我们选择TC1005硬件作为我们的软件世界与真实世界的沟通桥梁。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-92aaf32 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="92aaf32" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b0fd9a9" data-id="b0fd9a9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-654c1ac elementor-widget elementor-widget-image" data-id="654c1ac" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="547" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-6.webp" class="attachment-large size-large wp-image-626" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-6.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-6-768x420.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-6-800x438.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 79">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-6cf8d3a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="6cf8d3a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-8749388" data-id="8749388" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-8b394f5 elementor-widget elementor-widget-text-editor" data-id="8b394f5" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">打开通道选择器，选择两个TC1005的通道，在此之前这两个通道已经通过CAN线互相连接在一起。这就意味着我们在其中一个通道上发送数据，另一个通道就可以接收到。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-60ae430 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="60ae430" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-da76608" data-id="da76608" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f03b2b0 elementor-widget elementor-widget-image" data-id="f03b2b0" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="546" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-7.webp" class="attachment-large size-large wp-image-627" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-7.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-7-768x419.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-7-800x437.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 80">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4a66d3a elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4a66d3a" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-13bf507" data-id="13bf507" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-be2c48d elementor-widget elementor-widget-text-editor" data-id="be2c48d" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">接着我们启动仿真，打开发送窗口发送一条报文，选择5毫秒的周期，也就是1秒发送200帧，可以看到TRACE窗口上面帧率是200，然后切换到图形窗口，添加帧率统计的系统变量，可以看到帧率也是在200上下，变化幅度很小。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-41a1e34 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="41a1e34" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-b4521a9" data-id="b4521a9" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e0cf559 elementor-widget elementor-widget-image" data-id="e0cf559" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="548" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-8.webp" class="attachment-large size-large wp-image-628" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-8.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-8-768x421.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-8-800x438.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 81">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-1308237 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1308237" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a7fe4f5" data-id="a7fe4f5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-cc71f60 elementor-widget elementor-widget-text-editor" data-id="cc71f60" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">当然这只是软件层面上的帧率统计。接下来我们看看现实世界是否相同。需要使用示波器来观察报文统计帧的频率和误差，在这里我们已经准备好了PicoScope。在此之前这个示波器的通道1已经链接到CAN总线上，且测量的是差分信号，也就是表笔，接CAN高地接CAN低。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-175c81b elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="175c81b" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-044e77b" data-id="044e77b" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-0628b23 elementor-widget elementor-widget-image" data-id="0628b23" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="547" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-9.webp" class="attachment-large size-large wp-image-629" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-9.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-9-768x420.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-9-800x438.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 82">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-3648117 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="3648117" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-437adad" data-id="437adad" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-08a5879 elementor-widget elementor-widget-text-editor" data-id="08a5879" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">我们将尺度缩放到5毫秒1格，可以看到持续变化的波形，接着我们设置一个简单触发，触发点放在第一个格子上，我们可以看到在每一个格子的虚线处都有一帧报文，这就意味着我们此时的软件在尽量的保证报文出现在每一个5毫秒的一个间隔上。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-0f04095 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="0f04095" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-30d4ca6" data-id="30d4ca6" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-178d841 elementor-widget elementor-widget-image" data-id="178d841" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="548" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-10.webp" class="attachment-large size-large wp-image-630" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-10.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-10-768x421.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-10-800x438.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 83">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-cfb94fe elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="cfb94fe" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-87afc09" data-id="87afc09" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-14d1b02 elementor-widget elementor-widget-text-editor" data-id="14d1b02" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<p><span style="color: #222222; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: 1.6px; text-align: justify;">接着我们测量频率，测量频率需要保证的是有足够的采样范围，我们换到10毫秒1格，那么可以看到基本上一个格子中间有两帧报文，在总体情况下保证了200帧每秒的一个频率范围。那么我们在这个时候增加测量，可以看到这个时候的频率是200赫兹，和我们软件上的帧率是完全相符的。这也就验证了TSMaster软件的一个实时性。基于这样的实时性，我们就可以通过操纵总线数据发送的方法来执行实时仿真，甚至是HIL仿真。</span></p>								</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-55c79eb elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="55c79eb" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2927b4d" data-id="2927b4d" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-e882544 elementor-widget elementor-widget-image" data-id="e882544" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img loading="lazy" decoding="async" width="1000" height="542" src="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-11.webp" class="attachment-large size-large wp-image-631" alt="TSMasterHIL实时仿真系列1-实时仿真原理" srcset="https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-11.webp 1000w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-11-768x416.webp 768w, https://www.tosunai.com/wp-content/uploads/2022/09/TSMaster-HIL-1-11-800x434.webp 800w" sizes="auto, (max-width: 1000px) 100vw, 1000px" title="TSMasterHIL实时仿真系列1-实时仿真原理 84">															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>&lt;p&gt;The post <a rel="nofollow" href="https://www.tosunai.com/tsmaster-hil-simulation-01/">TSMasterHIL实时仿真系列1-实时仿真原理</a> first appeared on <a rel="nofollow" href="https://www.tosunai.com">上海同星智能科技有限公司</a>.&lt;/p&gt;</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
