question

Sigmund avatar image
0 Likes"
Sigmund asked Felix Möhlmann answered

Error when picking virtualized items from rack using queryitems

Hi!

In my model I cant figure out how to pick virtualized items from a rack. I have a lot of items stored in my model so I want to use the virtualized items for the model to run faster. However, when I turn the setting of virtualizing items on, the model cant find the items.

I use queryitems() to get all items in one level for the ASRS to pick all these items.

Attached is a file with the same problem, virtualized_items.fsm

FlexSim 22.1.0
rackorder pickingvirtualized items
· 1
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Could you try to upload the sample model again? It seems the attachment didn't go through.
1 Like 1 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The query works correctly, but the label assignment when creating the sub flow tokens has two small errors:

- The dot-syntax method when accessing labels already returns the value (as opposed to object.labels["labelname"], which returns the label node). Due to this, using value in the expression causes an exception because it is not defined for the array values.

- The Storage.system.queryItems() method returns an array of "Storage.Slot.Item" class values.

1679309988060.png


1679309988060.png (6.0 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.