无法识别opnet模型的opnet属性名称 [英] opnet attribute name of opnet model is unrecognized

查看:654
本文介绍了无法识别opnet模型的opnet属性名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用opnet模拟网络,我自己构建网络的所有部分(例如处理器,节点,链接等).在我的节点模型中,我使用点对点发送器和接收器,这一切似乎都还可以,但是当我尝试运行仿真时,会出现以下错误:

I'm trying to simulate a network with opnet and I'm building all parts of it myself (like processors, nodes, links, ...). In my node models I use point-to-point transmitters and receivers and it all seems to be ok but when I try to run the simulation I get this error:

<<< Recoverable Error >>>
Attribute name (data rate) is unrecognized for object (0).
T (0.0001), EV (14), MOD (top.Office Network.node_1.port_tx0), KP (op_ima_obj_attr_get)

node_1是一个节点,而port_tx0是其发送方.我没有创建发送器,我只是为其使用了opnet模型,并且可以看到默认情况下其属性中的数据速率" IS,我什至无法对其进行编辑. 那么,为什么它不认识自己的属性呢?

node_1 is a node and port_tx0 is its transmitter. I did not create the transmitter, I just used opnet model for it and as I can see "data rate" IS in its attributes by default and I can't even edit it. SO why doesn't it recognize its own attribute?

推荐答案

在错误消息中,对象ID为0.根据我的经验,这不是发送器的正确对象ID.

In the error message the object id is 0. In my experience, this is not the correct object id for a transmitter.

要确定我是否正确,请替换

To see if I am correct, please replace

op_ima_obj_attr_get(objid, "data rate", &datarate); 

具有以下内容:

{
  char hname[128];
  char err_str[128];
  op_ima_obj_hname_get(objid, hname, 128);
  snprintf(err_str, 128, "Who is objid (%d):", objid);
  op_prg_odb_print_major(err_str, hname, OPC_NIL);
}
op_ima_obj_attr_get(objid, "data rate", &datarate);

这应该回答以下问题:为什么它不认识自己的属性?"在OPNET调试器中运行时.

This should answer the question "why does it not recognize its own attribute?" when run in the OPNET debugger.

这篇关于无法识别opnet模型的opnet属性名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆