发明名称 Code generation for control design
摘要 A method, performed by a computer device, includes obtaining an in-memory representation of computer code from a block step method of an executable model in a modeling application, wherein the computer code in-memory representation includes one or more variables. The method also includes identifying, from the one or more variables, a subset of persistent variables and determining if any of the one or more variables in the subset of persistent variables are state variables. When none of the subset of persistent variables are state variables, a block output method is generated based on the computer code in-memory representation and the one or more variables. When the subset of persistent variables includes a state variable, both the block output method and a block update method are generated based on the computer code in-memory representation and the one or more variables.
申请公布号 US9377998(B2) 申请公布日期 2016.06.28
申请号 US201313803026 申请日期 2013.03.14
申请人 The MathWorks, Inc. 发明人 Han Zhi;Zhang Fu;Yeddanapudi Murali K.;Mosterman Pieter J.
分类号 G06F17/50;G06F9/44;G06F17/13;G06F9/455 主分类号 G06F17/50
代理机构 Harrity & Harrity, LLP 代理人 Harrity & Harrity, LLP
主权项 1. A method, performed by a computer device, the method comprising: obtaining an in-memory representation of computer code from a block step method of an executable model, wherein the in-memory representation includes one or more variables and wherein the obtaining is performed by the computer device; identifying, from the one or more variables, a subset of persistent variables, wherein the identifying is performed by the computer device; determining if any of the one or more variables in the subset of persistent variables are state variables, wherein the determining is performed by the computer device; generating, by the computer device and based on the in-memory representation and the one or more variables: a block output method, when none of the subset of persistent variables are state variables, orthe block output method and a block update method, when the subset of persistent variables includes a state variable.
地址 Natick MA US