external mode simulation with xcp communication video -凯发k8网页登录
external mode simulation helps you establish a communication channel between your simulink® model and the target hardware. the channel runs the executable file in real time and is created by the build and code generation process.
the communication channel could be the universal measurement and calibration protocol (xcp) on tcp/ip or xcp on serial. you can use the channel to:
- tune parameters in real-time with dashboard blocks
- monitor and log signal data from the executing target application
- stream data to the simulation data inspector or logic analyzer
- stream signals for referenced models from within a model hierarchy
you can also generate an a2l file including its xcp slave address by choosing ert.tlc (requires embedded coder®). this a2l file can be used directly with any third-party calibration tools that support xcp.
customize your xcp slave software to run on your hardware by following these instructions: .
see which xcp-based external mode simulations are enabled to the commercial and maker targets supported by simulink code generation products:
.
try the external mode over xcp feature by following this documentation:
.
this video shows how to use simulink to tune and log data from a generated executable running on your pc or hardware using external mode. external mode simulation helps you establish a communication channel between the assembling model and the target hardware. it runs the executable file in real time created by the build and code generation process. the communication channel could be the universal measurement and calibration protocol. that is, xcp. it can be on tcp/ip, or xcp on serial.
you can tune parameters in real time with dashboard blocks and monitor lock signal data from the executing target application. you can also stream data to the simulation data inspector or logic analyzer. additionally, you can stream signals for reference model from within a model hierarchy.
now let us prepare this fault-tolerant fuel system model for external mode simulation. let me start the preparation by opening the abstract on the simulink tool strip. let me click run on custom hardware. over here, i can use the grt.tlc.
ok, now let's go to the solver pane. to specify the value for fixed-step size field, in the optimization pane, make sure the default parameter behavior is set to tunable. now select the external mode option and set transport layer to xcp on tcp/ip. xcp uses the static memory allocator on the target. this static memory buffer size value specifies the size of xcp slave memory that is allocated for signal logging. let's use the default value for the demo.
ok, now we are all set with the configuration. let's save these settings and the model. now build a target application using this button. looks like building is done, along with the code generation. now let's run the application on the target by clicking this deploy button. now we can connect simulink to our waiting or running target application. at last, let's start real time execution of the generated code in this target environment.
here you can queue in the parameters using these dashboard blocks. let me open the assimilation data inspector to view the stream signals. you can also view the same signals using logic analyzer as well. you can also do the simulation by a single click on this monitor and tune button. you can generate a2l files, including its details of xcp slave address by choosing the ert.tlc. then enable asap2 interface option.
now let me build the model. notice that a2l files are generated. it contains details of the xcp slave interface and address of the characteristics and measurements. this can be directly used with any third party calibration tools that support xcp. .
. .
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 mathworks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- (español)
- (english)
- (english)
欧洲
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
亚太
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)