mlx脚本生成simulink模型(3)_求解器及代码生成配置

求解器及代码生成配置

1、获取并设置参数名

设置求解器及代码生成的相关配置使用set_param参数,不知道参数名的情况,可以将鼠标移至参数上右击,点击出现的What’s This? 标签
在这里插入图片描述
在这里插入图片描述

2、常用示例

% Solver
set_param(node,'StartTime', '0.0'); % Start time
set_param(node,'StopTime', 'inf'); % Stop time
set_param(node,'SolverType', 'Fixed-step'); % Type
set_param(node,'Solver', 'FixedStepDiscrete'); % Solver
set_param(node,'FixedStep', '0.001'); % Fixed-step size (fundamental sample time)
% Tasking and sample time options
set_param(node,'SampleTimeConstraint', 'Unconstrained'); % Periodic sample time constraint
set_param(node,'EnableMultiTasking', 'on'); % Treat each discrete rate as a separate task
set_param(node,'ConcurrentTasks', 'off'); % Allow tasks to execute concurrently on target
set_param(node,'AutoInsertRateTranBlk', 'off'); % Automatically handle rate transition for data transfer
set_param(node,'PositivePriorityOrder', 'off'); % Higher priority value indicates higher task priority
% Code Generation
set_param(node,'SystemTargetFile', 'VeriStand.tlc'); %Target
set_param(node,'Toolchain', 'VeriStand Compiler for Linux64 targets | gmake makefile (64-bit Linux)'); % Toolchain

在这里插入图片描述
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值