Results / ResourceStatistics
Block Name : ResourceStatistics
Code File Location: VisualSim\actor\lib\gui\ Resource_Statistics_Report
o This block generates and resets statistics for one or many SystemResource(Schedulre), Channel_N, Channel, Servers (Smart_Timed_Resource) and Queues (Smart_Resource) in the model. The block can be placed at any level in the model and can have many instances.
This is a pre-built block to place in a model to output or reset the statistics for all the Systemresource (Schedulers), Channel, Channel_N, Server (Smart_Timed_Resource) and Queues (Smart_Resources) in the model. If either the SystemResource or Queues do not exist in the model, that array must be {}. Channel and Channel_N block names must be listed in the Smart_Res_Array field.
Refer ResourceStatistics Demo Model.
Parameter |
Explanation |
Type |
Example |
Block_Name |
This is an unique name for the block. This name must be different from the names of Scripts, SystemResource, Queues, Hardware blocks and any global Variables. |
String |
“Memory_Queue” |
Scheduler_Name_Array |
This is an array of the name of all the SystemResources (Schedulers) that you would like collect/reset statistics. The format is {"Scheduler1","Scheduler_2"}. If no SystemResource or no Queues exist in the model, the array must be {}. |
Array of Srings |
{"Scheduler1","Scheduler_2"} |
Smart_Res_Length |
The number of items in this array must match the number of items in the Smart_Res_Name_Array. This is an array of integers. This is queue number for the respective Smart_Resource. If it is total_queue_number + 1, then an array of the statistics of all the queues in the Smart_Resource will be generated. If no Schedulers or no Smart_Resources exist in the model, the array must be {}. |
Array of Integers |
{1,2,3,4} |
Number_of_Samples |
Number of times the statistics must be generated/reset during the simulation. |
Integer |
2 |
Smart_Res_Name_Array |
This is an array of the Smart_Resource names that you are collecting/reset statistics in this model. The format is {"Res_1","Timed_res_1"}. If no Schedulers or no Smart_Resources exist in the model, the array must be {}. |
Array of Strings |
{"Res_1","Timed_res_1"} |
Statistics |
Set this to true to output statistics and set to false to reset statistics. |
Boolean |
true or false |
SimTime |
Length of the simulation. |
double |
Parameters (SimTime) or value 2.0e-6 |
Port |
Explanation |
Type |
port |
Input port from the left Bus. |
Data Structure |
Created with the Personal Edition of HelpNDoc: Easily create EPub books