如何在opnet中使用op_topo_parent指定节点ID ??我尝试了很多次,结果是此错误<<< Recoverable error >>> Object ID (OPC_OBJID_INVALID) is out-of-range。T (36.4974),EV (483),MOD (top.Office Network.user.wlan_port_rx__0),KP (op_topo_parent),谁能给我一个简单的例子,如何使用这个函数,提前感谢。
发布于 2015-12-11 15:58:08
op_topo_parent()需要一个子对象ID。根据您的错误消息,您需要知道哪个节点包含给定的接收器(top.Office Network.user.wlan_port_rx__0)。为了获得节点ID,请尝试以下代码片段。
// Get object of current Receiver object
rx_objid = op_id_self();
// Get parent, in this case node, ID
node_objid = op_topo_parent(rx_objid)我希望这篇评论能帮到你。
https://stackoverflow.com/questions/33310786
复制相似问题