Paul Toone avatar image
Paul Toone posted

Sample Label Example   

In this example, we'll show you how to set a processor's Process Time dynamically based on a label.

Create a Simple Model

  • Create the simple model as shown above.
  • Click on the Processor to display it's properties in the Quick Properties window
  • Press the in the Labels section of the Quick Properties and add some number labels.

  • Set the ProcessingTime label to 5.

Sample a Label

In the Quick Properties window, below labels, you'll see a Processor section.

  • Click the next to Process Time to enter "Sample Mode".
  • Click on the ProcessingTime label you just created to reference that label.

The Sampler will automatically insert the correct line of code for referencing the ProcessingTime label.

Reset and Run the model to see how it works.

flexsim users 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.



paul.t contributed to this article


FlexSim 2016.1