一个很棒的网络控制系统仿真软件

源代码在线查看: ttsendmsg.m

软件大小: 956 K
上传用户: zhoulovely
关键词: 网络控制系统 仿真软件
下载地址: 免注册下载 普通下载 VIP

相关代码

				% TTSENDMSG   Send a message over a network.				%				%  Usage: ttSendMsg(receiver, data, length)				%         ttSendMsg(receiver, data, length, priority)				%         ttSendMsg([network receiver], data, length)				%         ttSendMsg([network receiver], data, length, priority)				%				%  Inputs:				%    receiver  The number of the receiving node (a number between				%              1 and the number of nodes). It is allowed to send 				%              messages to oneself. Specify receiver number 0 to 				%              broadcast a message to all nodes in the network. 				%    data      The contents of the message (arbitrary data).				%    length    The length of the message, in bytes. Determines 				%              the time it will take to transmit the message.				%    priority  The priority of the message (relevant only for				%              CSMA/AMP networks). If not specified, the priority 				%              will be given by the number of the sending node,				%              i.e., messages sent from node 1 will have the				%              highest priority by default.				%    network   The network interface on which the message should 				%              be sent. The default network number is 1. 				%       				% See also TTINITNETWORK, TTGETMSG				%				%       TrueTime, Version 1.3				%       Copyright 2005				%       Martin Andersson, Dan Henriksson and Anton Cervin				%       Department of Automatic Control				%       Lund Institute of Technology, Sweden							

相关资源