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.