question

liam avatar image
0 Likes"
liam asked Felix Möhlmann edited

Labeling in a MultiProcessor

Hello,

In my MultiProcessor, there are three different subprocesses, each with a corresponding processing time distribution. I would like to know if there is a way to record the processing times for these three subprocesses on the item using labels (LB_process1:..., LB_process2:..., LB_process3:...).

1723201748142.png

Thank you for your assistance.

FlexSim 22.2.0
labelsmultiprocessorlabe
1723201748142.png (17.4 KiB)
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Felix Möhlmann edited

I would do this the other way around. You add labels for process times at your items. Then you read these label values in your Multiprozessor.

Your request can be done, too, but it needs more coding in source code editor. And finally it is just the same as my suggestion only a few steps later in your simulation model.

· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

if you want to write a label in a process time function, then you create a local variable to store the process time value. You write this into a label by assert method in your item. At the end you return the local variable value in process time function.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann commented ·

Example code for doing it directly in the Process Time field.

/**Custom Code*/
Object current = ownerobject(c);
Object item = param(1);

double processTime = normal(10, 1, getstream(current));
item.LB_process1 = processTime;

return processTime;
0 Likes 0 ·