Integrate TensorFlow Model into Simulink for Simulation and Code Generation
Watch a quick demonstration of how to use a pretrained TensorFlow™ network in Simulink® to implement a deep learning-based, state-of-charge estimation algorithm for a battery management system.
This demo uses a neural network that has been trained in TensorFlow using battery discharge data measured in the lab.
The example has two parts: importing a pretrained TensorFlow model into MATLAB® and using the imported model in Simulink for simulation and library-free C code generation. The first part shows how to use the importTensorFlowNetwork command to bring a neural network into MATLAB from TensorFlow and how to visualize an imported network in Deep Network Designer.
The second part illustrates how to put an imported network into a Simulink model using Predict block. Using this block, the network is simulated and results are compared with the true state-of-charge level as well as an estimate obtained using an extended Kalman Filter. Finally, the imported network is used to generate library-free C code that can run on any microcontroller or ECU, including the NXP S32K boards.
Published: 4 Apr 2022
Featured Product
Deep Learning Toolbox
Up Next:
Related Videos:
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)