Application / Networking / AVB
Block Name: AVB_Stats
Code File Location: VisualSim/actor/lib/networking/avb/AVB_Stats
This block provides the statistics for all streams terminating at this Node. This block can be connected either to the Node block (Listener only) or the Traffic Generator (Talker and Listener).
This block provides 2 types of statistics- two files that contain the trace and statistics for all the streams, and 3 possible plots- latency of all streams, histogram of all the streams and a single stream plot.
Both text files are written into the directory containing the model. The first text file is named; AVB_Example_Stream_Plot.Stats.Node_5_Stream_Latency.txt and the second is Information_Warning.txt. The first file contains the minimum, maximum, mean and standard deviation of the latency, and the throughput for all the streams twerminating at this Node. The second contains the time at which the Talker Advertises were sent, the status of the Talker Advertise, the retransmit, the downgrade transmits, the start of traffic, the deregister and end of traffic.
The all stream latency is displayed by default. The legend on right is of the format- Start Node, End Node and Stream or Ethernet number. The Ethernet number is the order in the Traffic Table. The stream number is the ID. The histogram plot shows the histogram for each stream. The single stream latency plot can be enabled by setting Enable_Second_Plot parameter to true. The second plot will plot a single stream that is set in Second_Plot_Contains parameter.
To illustrate the usage, look at the following Examples in the BDE.
Parameter |
Explanation |
Type |
Example |
Stop_Time |
Simulation Time. |
Double |
10.2 |
Node_Name |
Name of the Node that this block is connected too. |
String |
"Node_" + Number |
Enable_Histogram |
This enables the histogram plot for all the stream terminating at this Node. true to display the plot and false to not display. |
Boolean |
true |
Enable_Second_Plot |
true to add another plot for a single latency and false to not add another display |
Boolean |
false |
Second_Plot_Contains |
Format for AVB stream is {"N1","Stream_1"} and for Ethernet is {"N1","Ether_1"}. The N1 is the Source Node with the Node_ abbreviated to N. The Stream or Ether _1 is the number of the Traffic Table order. |
String Array |
Format for AVB stream is {"N1","Stream_1"} and for Ethernet is {"N1","Ether_1"} |
Port |
Explanation |
stats_in |
Input from the Node (for Listener only) or Traffic Generator block (Both Talker and Listener) |
Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation