question

Griffin Burwell avatar image
0 Likes"
Griffin Burwell asked Griffin Burwell commented

Reference a label set by scheduled source using inter-arrival

labelissue.fsm

I am setting labels using a schedule source, shown in the 1st image. The first arrival sets a label of "1" and the second arrival at 3600 seconds sets the label as "2". What I want to do is then run a mini assembly line that runs on a 10 second cycle time, which I show in the second image. The issue I am trying to figure out is how can I reference the labels set by the schedule source on my assembly line? I have the assembly line pulling from the list that is populated with the labeled tokens, but the labels are not retained in the assembly line.

labelissue-1.pnglabelissue-2.png


FlexSim 23.0.4
assign labels
labelissue-1.png (24.4 KiB)
labelissue-2.png (16.0 KiB)
labelissue.fsm (29.7 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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Griffin Burwell commented

Add the label as a field to the list and use the

 SELECT mylabel 

clause in the pull to get the label transferred.

Or, just refer to the label using

 token.pulled.mylabel
· 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.

Griffin Burwell avatar image Griffin Burwell commented ·
Hi Jason, thank you for your reply. Where do I enter these clauses?
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Griffin Burwell commented ·

The first goes into the Pull Activity's "Query/Object/Array" field.

The second can be anywhere you need the value - as long as you still have the original token (ie it's not been destroyed by a sink).


Note on destroyed tokens: the need to manage their persistence is why I often prefer to represent objects in 3D and have the labels there - only when there is an abstract/information requirement (like an order) do I manage the tokens through the lifetime of the abstract item. To me the token is just an indicator of the state of a process invocation - once that process is over, the invocation record(s) should no longer be needed.

0 Likes 0 ·
Griffin Burwell avatar image Griffin Burwell Jason Lightfoot ♦♦ commented ·

That solves my issue. Thank you for your help!

0 Likes 0 ·