2016-02-25 32 views
0

目前,我正在使用Omnet ++(网络模拟器),我知道如何关闭矢量记录,但如何做相同的直方图(关闭直方图录音)?如何关闭直方图记录omnetpp

我试图关闭直方图的相关标量,但它不成功。

#### Histogram name #### 
"Delays for 1st Copy" 

#### In order to turn of scalars recording we use this command #### 
**.scalar-name.scalar-recording = true 

#### So i tried this but it doesnt work #### 
**.Delays for 1st Copy.scalar-recording = true 

感谢,

回答

3

一种选择是从NED文件的统计申报中删除histogram统计记录模式。

@statistic[foo](record=count,mean,histogram); # remove histogram from here 

另一种选择是使从omnetpp.ini

/禁用统计记录模式下面是一些在的OMNeT基本记录模式++

**.result-recording-modes = default # records count, mean 
**.result-recording-modes = all  # records count, mean, max 
**.result-recording-modes = -  # records none 
**.result-recording-modes = mean  # records only mean (disables 'default') 

可以具有模式先进的组合通过添加或从基本模式中删除模式:

**.result-recording-modes = default,-vector,+histogram # records count,mean,histogram 
**.result-recording-modes = all,-vector,+histogram # --> count,mean,max,histogram 

你可能需要的东西,如:

**.result-recording-modes = default,-histogram 

要修改特定模块的模式提供

**.fifo[*].queueLength.result-recording-modes = +vector # default modes plus vector 

更多细节可在的OMNeT找到**result-recording-modes之间的完整路径++手册:https://omnetpp.org/doc/omnetpp/manual/usman.html#sec405

+0

因此,没有指定完整路径结果记录它不起作用? – HanniBaL90

+0

另外,如果我想部分关闭直方图记录(我的意思是开启计数并意味着同时使所有其他统计信息失效),我可以通过将-min,-max等来做到这一点吗? – HanniBaL90

+0

@ HanniBaL90大概吧,试试吧... – user4786271