actuator_init.m
来自「由瑞典人开发的一个可以在Matlab环境中应用的实时数据传输控制的工具包」· 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 + -
显示快捷键?