question

David Chan avatar image
0 Likes"
David Chan asked Benjamin W2 answered

Dispatcher: Round Robin Error

Hi as the later version is quite strict towards error, there is an Index out of bound error in the Dispatcher when round robin if available is applied.

time: 6.838358 exception: FlexScript exception: Array index out of bounds at MODEL:/Dispatcher1>variables/passto

A code need to added to reset the label "fs_lastport" back to 1 before assignment of the curobj object.

if (curlabel.value > current.outObjects.length) current.fs_lastport = 1;

treenode curobj = current.outObjects[curlabel.value];

David

FlexSim 20.1.2
flexsim 20.1.2dispatcherround robin
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

·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered

Hi @david.chan,

This appears to be a bug, I will forward our dev department.

RoundRobinIfAvailableBug.fsm


5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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