article

Paul Toone avatar image
0 Likes"
Paul Toone posted

Pick Operator   

Overview:

This function returns a reference to a dispatcher (or operator) that the operator request will be sent to. The return value must be cast into a number, because the function is hard-coded to return a double.

There are also additional return value options for this picklist:

  • If the field returns 0, then the Processor will call no operators.
  • If the field returns -1, then the Processor will call no operators, but it will also call this function again at the time that it is ready to release operators. When the function is called again, the Processor will pass PICK_OPERATOR_PROCESS_RELEASE or PICK_OPERATOR_SETUP_RELEASE as the trigger parameter, depending on whether it is the setup or process step. This allows you to explicitly create task sequence(s) for calling operators, and then explicitly release them at the end, all from within the same code field. For an example of this, look at the code for the "Multiple Teams" option in the picklist.

Access variables:

current: the current object

item: the involved flowitem

trigger: the involved trigger. Possible values are PICK_OPERATOR_PROCESS, PICK_OPERATOR_SETUP, PICK_OPERATOR_PROCESS_RELEASE, PICK_OPERATOR_SETUP_RELEASE.



flexsim users manualusers manual
5 |100000

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

Article

Contributors

paul.t contributed to this article

Navigation

FlexSim 2016.1