bancada-motores/Control/VF Control/VFControl_sg_rtw/slrealtime_task_info.m
Pedro Jose Romero Gombau 447269b383 Si
2024-10-28 11:36:48 +01:00

23 lines
753 B
Matlab

function [taskInfo, numtask, isDeploymentDiagram]=slrealtime_task_info()
taskInfo(1).samplePeriod = 0.0001;
taskInfo(1).sampleOffset = 0.0;
taskInfo(1).taskPrio = 10;
taskInfo(1).taskName = 'BaseRate';
taskInfo(1).entryPoints = {};
taskInfo(2).samplePeriod = 0.0005;
taskInfo(2).sampleOffset = 0.0;
taskInfo(2).taskPrio = 9;
taskInfo(2).taskName = ['SubRate' '1'];
taskInfo(2).entryPoints = {};
numtask = 2;
for i = 1:numtask
if ( 0 == isnumeric(taskInfo(i).samplePeriod) )
taskInfo(i).samplePeriod = evalin('base', taskInfo(i).samplePeriod);
end
if ( isempty(taskInfo(i).taskName) )
taskInfo(i).taskName = ['AutoGen' i ];
end
end
isDeploymentDiagram = 0;
end