[Omnetpp-l] Scave Tool Manual or Examples?

1,613 views
Skip to first unread message

Gürkan

unread,
Apr 12, 2012, 8:33:28 AM4/12/12
to omn...@googlegroups.com
Hello,

I would like to know if there is a manual for Scave Tool?
Or some more examples than in the omnet manual.

What I want to do is the following:
For each host vector there is a mean value (besides the columns Module, Name, StdDev, Variance), that shows the mean over some values of the vector. I would like to generate an output that is a collection of these mean values.

Thank you very much,

Gürkan

Nguyễn Đức Long

unread,
Apr 13, 2012, 10:10:58 AM4/13/12
to omn...@googlegroups.com
I also have the same issue with you. 
I wish if there 's any body can answer.

Vào 19:33:28 UTC+7 Thứ năm, ngày 12 tháng tư năm 2012, Gürkan đã viết:

Behrouz Seyedi

unread,
Apr 13, 2012, 11:54:08 AM4/13/12
to omn...@googlegroups.com
I have same the same issue.
I can't use compute or apply :(
can anybody help?

Gianluca Ciccarelli

unread,
Jun 10, 2012, 7:19:11 AM6/10/12
to omn...@googlegroups.com
Hello Gurkan,

On Thursday, April 12, 2012 2:33:28 PM UTC+2, Gürkan wrote:
Hello,

[...] 

For each host vector there is a mean value (besides the columns Module, Name, StdDev, Variance), that shows the mean over some values of the vector. I would like to generate an output that is a collection of these mean values.


I haven't  found any manual for scavetool beside the Omnet++ manual. However, I had a similar issue, and this is how I solved the problem:
I wanted to compute the average of a value over time. I added a @statistic declaration to the NED file of the module that is supposed to collect the statistic, specifying "record = stats":

@signal[hopDistance](type = "int");
@statistic[hopDistanceFromSource_](source = "hopDistance"; record = stats);


Now, when you are done with the simulations, you can access the mean by using:

scavetool scalar -p "module(yourModule) AND name(\"hopDistanceFromSource_:stats:mean\")" -O output.csv result-*.sca

The name of the string to use in the "name" option in scavetool can be found by inspecting the .sca file though text search.

HTH,

Gianluca

Reply all
Reply to author
Forward
0 new messages