actuator_init.m
来自「一个很棒的网络控制系统仿真软件」· M 代码 · 共 19 行
M
19 行
function actuator_init% Distributed control system: actuator node%% Receives messages from the controller and actuates % the plant.% Initialize TrueTime kernelttInitKernel(0, 1, 'prioFP'); % nbrOfInputs, nbrOfOutputs, fixed priority% Create actuator taskdeadline = 100;prio = 1;ttCreateTask('act_task', deadline, prio, 'actcode');% Initialize networkttCreateInterruptHandler('nw_handler', prio, 'msgRcvActuator');ttInitNetwork(2, 'nw_handler'); % node #2 in the network
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?