고객 사례

ATB Technologies使用TI的C2000 MCU使用代码生成将电动机控制器的开发时间缩短了50%

挑战

开发控制软件以最大化永久磁铁同步电动机的效率和性能

解决方案

Use MathWorks tools for Model-Based Design to model, simulate, and implement the control system on a target processor

结果

  • 开发时间减半
  • 设计评论简化了
  • 目标验证和部署加速

“ Mathworks工具使我们能够在多个开发阶段验证设计的质量,并在短时间内生产高质量的组件。”

Markus Schertler,ATB技术
ATB技术永久磁铁同步电动机。

当ATB Technologies的工程师正在为燃料电池车开发高性能压缩机时,他们必须满足较高的客户需求。压缩机的电动机必须提供高扭矩,快速加速和最大速度20,000 rpm。为了满足这些要求,他们为设计选择了无刷的永久磁铁同步电动机(PMSM)。

为了最大程度地提高PMSM的性能和效率,工程师使用了基于模型设计的数学工具来开发复杂的控制算法,该算法结合了三相矢量控制,面向现场的控制(FOC)和现场湿技术。该团队逐步采用了基于模型的设计 - 该项目将生产代码生成添加到已经采用建模和设计设计的过程中,以进行早期验证。

ATB Technologies开发工程师Markus Schertler说:“在过去的项目上,我万博1manbetx们在手动编码实施之前对Simulink设计进行了模拟和验证。“在过渡到自动代码生成之后,质量和模块化效果更好,迭代速度更快,因此我们可以从第一个原型迅速移动到最终系列。”

挑战

ATB技术需要提供完整的压缩机单元,包括电机控制软件,电子设备,电机和其他机械组件。为了最大程度地提高系统的动力学,能量密度和效率,这些组件必须完美合作。

The project was too complex to complete within the aggressive schedule using the team’s standard practice of hand coding control software. “Hand coding takes a lot of time, and there are always bugs. Hand coding also makes it difficult to prove to our customer that we are meeting their requirements, including compliance with certain MISRA C standards,” notes Georg Staffler, development engineer at ATB Technologies.

ATB Technologies needed a development environment that enabled early verification of control strategies, code generation for its chosen target processor family, and rapid design iterations throughout the project.

解决方案

ATB Technologies used MathWorks tools for Model-Based Design to design, simulate, verify, and deploy the control system software on a TI C2000™ microcontroller unit (MCU).

使用Simu万博1manbetxlink®,团队开发了驱动器的植物模型,并包括实验室中测量的物理参数。使用simu万博1manbetxlink和stateflow®,他们开发了控制器的初始模型。然后,他们在Simulink中对控制器和植物模型进行了闭环模拟,以评估控制策略的可行性。万博1manbetx

当他们完善控制器模型时,该团队使用信号处理工具箱™设计了降噪过滤器,并使用定点设计器检查了可疑的定点操作

After verifying the model via desktop simulations, ATB Technologies used Embedded Coder®从模型生成代码并将其部署到TI C2000 MCU。他们还为车载外围设备和带有嵌入式编码器的调度程序生成了设备驱动程序。

Using an RTDX channel in Embedded Coder, the team verified the code as it ran on the MCU with a Simulink test harness. The team recorded signals using RTDX and then performed spectrum analysis in MATLAB®开设e filters and supplement the design documentation.

由于控制器是在实际电动机可用之前设计的,因此使用具有相似电子设备的可比电动机进行初始测试。后来的测试融合了生产电子产品,并对生产电动机和电子产品进行了最终测试。在每次迭代中,团队在Simulink中完善了设计,并使用嵌入式编码器重新生成了代码。万博1manbetx

ATB Technologies delivered the compressor motor to the customer on schedule, and the motor is currently produced and embedded in fuel cell cars on the road today.

结果

  • 开发时间减半。“Taking into account the migration within the processor family, automatically generating code enabled us to complete the compressor project twice as fast as a similar project that applied Model-Based Design but used hand coding,” says Schertler. “Code generation resulted in fewer bugs, better quality, and faster iterations, and it enabled a modular approach that facilitated model reuse across projects.”

  • 设计评论简化了。Schertler指出:“借助Simul万博1manbetxink和StateFlow中的模型,我们可以向汽车客户证明我们的设计满足了他们的需求。”“这些模型还使内部设计评论更有效,因为它们比代码更直观。”

  • 目标验证和部署加速。“Embedded Coder enables us to easily verify our real-time implementation. For example, we can see an individual filter working and check that we are using the right parameters,” says Schertler. “We also saved a lot of time by using Embedded Coder to generate device drivers and our scheduler and then download the code to our target.”