question

David Chan avatar image
0 Likes"
David Chan asked Felix Möhlmann answered

Pull based on pointer

Hi I am not sure if this was answered in earlier post, if anyone knows about it please let me know.


I am having an item that used a label array which contains the pointer of the processor that I would like to send to. At the downstream queue, I am trying to pull the item where the label array contains that object pointer. However the sql WHERE statement is not working with pointer or name of the object. Is there a way to use the object pointer in this query?

1661233659791.png


The model file is upload with the name "pulling by pointer.fsm"

Regards

David

FlexSim 22.2.1
list query
1661233659791.png (10.3 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

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered

Using a pointer works. You just need a way to put it into the query ('/Processor1' is still just a string, not a pointer).

You can use:
- a pointer label on the pulling object

1661238969465.png

- a FlexSim command to get a pointer to the object enclosed in curly braces

1661239000806.png

- edit the puller value to point to the target object and use that in the query

1661239081574.png

- create an extra list field that contains the name as a string and use this in the query

1661239220062.png


1661238969465.png (18.0 KiB)
1661239000806.png (12.6 KiB)
1661239081574.png (38.1 KiB)
1661239220062.png (17.3 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.