question

Rambabu avatar image
0 Likes"
Rambabu asked Jason Lightfoot edited

How to get Independent output?

Hi all,

I Have a one query regarding assign label. I am doing work on that i have faced issue with independent token. When i used child token it was not performed well because of Output is getting incremented for the a all IDE'S.But I need Incremental output with different values for different IDE's.

when i use independent token it was also not giving proper answer. Can you please solve this problem. I need Output in incremental manner with different IDE's.

Thank you.


RecipeLabel Query.fsmrecipelabel.png

FlexSim 23.1.3
assign labelscreate tokens
recipelabel.png (12.8 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 Jason Lightfoot edited

If your goal is to get 4 tokens, each with a different recipe then you don't need the loop just set your source up like this:

1697628746629.png


In your case:

You need to be incrementing token.row, but soon you'll exceed the lenght of your table, so...

I wouldn't read a table numeric with gettablestr() - use Table("RecipeLabel")[row][1]

Instead of storing a row number for the recipe, why not store the name? This is easier to read and check.

You need to copy labels to the independant token, which is an option on Create Token.




1697628746629.png (13.1 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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