bancada-motores/Simulink/VF Control/VFControl_sg_rtw/slrealtime_task_info.m
Pedro Jose Romero Gombau 3e7835e670 Proyecto
2024-10-25 16:51:18 +02: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