question

Kathryn McNeal avatar image
0 Likes"
Kathryn McNeal asked Phil BoBo commented

Process Flow: Event Triggered Source, Label Assignment

When an item in the model enters "SinkToStock", a token is created in the process flow. I want the "PartNum" label from the item that went into "SinkToStock" to be transferred to the token, then I want the token to transfer it to a new object that it is creating in "Queue3". I've attempted to do this, but can't figure out how the assignment table works in the Event-triggered source. Can you explain and/or make the changes that will make this work? This is a very simplified version of what I'm doing, but the easiest way to explain it. I’ve attached the file I’m referring to. flexsimhelp.fsm

FlexSim 16.1.2
process flowlabelevent-triggered sourceassignment table
flexsimhelp.fsm (25.9 KiB)
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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo commented

The Event-triggered Source's Label Assignment assigns values to specified labels on the token based on what access variables are available in the event you are listening to.

In this example, you are listening to the OnEntry of a Sink. In that event, you have access to the item and the port.

You can then set a label on the token that references the item that just entered the Sink.

Then you can access the labels on that item to set other labels on the token:

Attached is an updated version of your model that assigns the PartNum label from the item you were listening to to the item you create.


· 3
5 |100000

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

Kathryn McNeal avatar image Kathryn McNeal commented ·

For some reason there is nothing showing in the process flow in the file you sent me. What version are you using?

0 Likes 0 ·
Phil BoBo avatar image Phil BoBo ♦♦ Kathryn McNeal commented ·

I'm using version 16.2.0.

0 Likes 0 ·
Kathryn McNeal avatar image Kathryn McNeal commented ·

The file didn't show the process flow correctly, but I was able to get it working based on your comments. Thanks!

0 Likes 0 ·