Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Matlab 获取simulink的进度状态_Matlab_Simulink - Fatal编程技术网

Matlab 获取simulink的进度状态

Matlab 获取simulink的进度状态,matlab,simulink,Matlab,Simulink,我需要知道simulink的进展模拟状态只提供了一个非常基本的信息: get_param(gcs,'SimulationStatus') 我需要这样的东西: set_param(gcs, 'SimulationCommand', 'start'); pause(200) if ??progress?? < 10 % percent set_param(gcs, 'SimulationCommand', 'stop'); error('Progress so slow')

我需要知道simulink的进展<代码>模拟状态只提供了一个非常基本的信息:

get_param(gcs,'SimulationStatus')
我需要这样的东西:

set_param(gcs, 'SimulationCommand', 'start');
pause(200)
if ??progress?? < 10 % percent
    set_param(gcs, 'SimulationCommand', 'stop');
    error('Progress so slow')
end
set_param(gcs,'SimulationCommand','start');
暂停(200)
如果??进展百分之十
设置参数(gcs,‘模拟命令’、‘停止’);
错误('进度太慢')
结束
结合使用

timeNow = get_param(gcs,'SimulationTime');

以确定您进入模拟的距离

您可能还希望使用而不是
pause(200)
进行调查,以便不会阻塞您的命令行

timeEnd = get_param(gcs,'StopTime');