question

anon-user avatar image
1 Like"
anon-user asked Matthew Gillespie edited

Maximum speed set in the global table

Can the operator's maximum speed be set in the global table?

global tableoperator
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

·
Sebastian Hemmann avatar image
3 Likes"
Sebastian Hemmann answered Matthew Gillespie edited

Since FlexSim is an event based Software you would need an event to set the speed. If you e.g. want to set the speed only once right before your simulation run you could add an "OnReset" Trigger to your operator and choose "Code Snipped" to write something like:

setvarnum(current,"maxspeed",Table("YourTable")[YourRow][YourCol]);
· 1
5 |100000

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

Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

If you're setting the speed during the model run you should use the Object.setVariable() method. This will store the original value and then restore it on reset.

current.setVariable("maxspeed", Table("YourTable")[YourRow][YourCol]);
3 Likes 3 ·

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.