Pull based on pointer

Pull based on pointer

chanykE2WUT
Collaborator Collaborator
458 Views
1 Reply
Message 1 of 2

Pull based on pointer

chanykE2WUT
Collaborator
Collaborator

[ FlexSim 22.2.1 ]

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

0 Likes
Accepted solutions (1)
459 Views
1 Reply
Reply (1)
Message 2 of 2

FelixMoehlmann
Mentor
Mentor
Accepted solution

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