simulink实时参数调整

时间:2018-09-11 15:52:21

标签: matlab performance parameters real-time simulink

我有几个大型模型,每个模型显示一个Generation(171A00,181B30,...)并具有自己的参数(大约200个参数,包括值,matrix等)。 我将它们更改为struct,以便将每一代的参数与其他参数分开(因为大多数参数具有相同的名称)。但是,每个项目中的参数值都不同。基本工作空间中还有全局参数作为变量。 此外,种属还可以作为使能子系统。 我需要使用另一个项目中的新参数来更改这些参数。 我想知道,是否有可能在独立模式下以编程方式更改参数。 (即)我在USB上传输模型,然后在目标PC上连接USB,然后使用MATLAB中的脚本更改参数。

p.s:此解决方案不起作用:<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_0c883152-9968-483f-b8ba-2b22a86d2f17" entityID="https://rc.529garage.com/garage/users/auth/saml/metadata?organization_id=1755"> <md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <md:KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate>[redacted]</ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </md:KeyDescriptor> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://rc.529garage.com/garage/users/auth/saml/callback?organization_id=1755" index="0" isDefault="true"/> <md:AttributeConsumingService index="1" isDefault="true"> <md:ServiceName xml:lang="en">Required attributes</md:ServiceName> <md:RequestedAttribute FriendlyName="Email address" Name="email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> <md:RequestedAttribute FriendlyName="Full name" Name="name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> <md:RequestedAttribute FriendlyName="Given name" Name="first_name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> <md:RequestedAttribute FriendlyName="Family name" Name="last_name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> </md:AttributeConsumingService> </md:SPSSODescriptor> </md:EntityDescriptor> 很难找到在哪里使用参数。 (作为获取,作为查找表中的断点或…),这就是为什么无法实现此解决方案的原因。

例如:

项目1:

set_param('vdp/Mu','Gain','10')

P181. AV_BILIM_POT_EXTENSION_Thermal = 4000;

项目2:

P181.BmsCurLimn_BatSocMaxSp_P = [0 0.02 0.232 0.492 0.692 0.742 0.793 0.845 0.897 0.999 1];

P171. AV_BILIM_POT_EXTENSION_Thermal = 2000 (dummy)
P171. BmsCurLimn_BatSocMaxSp_P = dummy

项目3:

P181. AV_BILIM_POT_EXTENSION_Thermal = 3000;
P181.BmsCurLimn_BatSocMaxSp_P = [0 0.04 0.45 0.52 0.653 0.732 0.756 0.823 0.867 0.965 1];

P171. AV_BILIM_POT_EXTENSION_Thermal = 2000 (dummy)
P171. BmsCurLimn_BatSocMaxSp_P = dummy

项目4: 这个项目可能对两代人都有真正的价值。(不是虚拟的)

谢谢

0 个答案:

没有答案