AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

weihua B avatar image
0 Likes"
weihua B asked Braydn T commented

Changing the position of DP from one conveyor to another in code.

How to change the position of the Decision Point from one conveyor to another conveyor in code? It would be better to have a flexsim model as an example. Thanks for any help.

FlexSim 19.0.0
conveyorcodedecision pointsposition
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

·
Matt Long avatar image
0 Likes"
Matt Long answered Braydn T commented

I'm not sure in what kind of real world scenario you would have decision points be moving along a conveyor. In FlexSim, when you hit reset, a table is created for the entire conveyor system to include all of the conveyors, where they're connected, their decision point, station and photo eye positions etc. Changing a decision points position would not update this data until the model is reset. I would recommend finding another way to accomplish this. Perhaps by creating a series of decision points that each have a check as to whether they should let the flowitem pass through or whether they should perform some other logic when the flowitem arrives.

· 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.

thank you a lot for your help! I may not have made it clear. The question I want to ask is how to drive the position of the decision point on the conveyor through parameters. It may be clearer by looking at the picture in the attachment.

0 Likes 0 ·

I highly recommend that you do not dynamically change the position of the Decision Point, as this can create problems in the conveyor system. As Matt said the positions of the DPs are determined when the model is reset, changing them during runtime is not recommended.

I'm still not sure I fully understand what you are wanting to accomplish by altering the position of the DP dynamically. What is it you're trying to accomplish?

0 Likes 0 ·

@weihua B

Did this answer help you? If so, could you please accept it? If not, could you let us know what else we can do to help you? Thanks!

0 Likes 0 ·

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.