question

Ahmed Azab avatar image
0 Likes"
Ahmed Azab asked Marco Baccalaro commented

How the network Node used to Add Row and Data to GlobalTable As each flowitem enters ?

i am trying to count and record the time and that task executors pass through a Network Node in the model (i am using Flexsim 5) .. what is the trigger that will satisfy my propose and what commands ?

Other (please specify)
Other
network nodesrecord datanode triggers
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Marco Baccalaro avatar image
3 Likes"
Marco Baccalaro answered Marco Baccalaro commented

OnArrival trigger, to count the task executors increment a labels value (e.g. inc(label(current,"count")))) to record times use something as: addtablerow("times"); settablenum("times",gettablerows("times"),1,time);

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ahmed Azab avatar image Ahmed Azab commented ·

thank you @Marco Baccalaro

now i want to get the arrival rate for task executors to this node per each half an hour (30 min) of simulation , please give me detailed explanation if applicable..

0 Likes 0 ·
Marco Baccalaro avatar image Marco Baccalaro Ahmed Azab commented ·

I'd use a User Event that is executed every 30 min, you can read and write in a node the last total task executors passed though the node in order to know the difference of the last 30 mins.

E.g.

int last_count = getlabel(network_node,"last count");
int new_count = getlabel(newtork_node,"count");
int count_in_last_30_min = new_count - last_count;
setlabel(network_node,"last count",new_count);

// then you can write the count_in_last_30_min value in a table or where you want 
2 Likes 2 ·