I input the program code in FlexSim Script, but there are syntax errors all the time, can you help me to solve it?
I input the program code in FlexSim Script, but there are syntax errors all the time, can you help me to solve it?
Hi @Kuo Lien, was one of Jason Lightfoot's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Processor3 only has one output port so it doesn't need a sendtoport trigger - you should delete it.
currently this function lets items send to a port number
for true:
Model.find("StraightConveyor12").subnodes.length
, which is equal to the number of items on straightConveyor12. For example there are 2 items on this conveyor, then the output port is 2 where the is going to.
for false:
Model.find("DP9").subnodes.length
which is equal to number of subnodes of this decision point. I assume the value can be in a range of [0,1]. A result of 1 send involved item to port 1. 0 sends an item to any available port.
I don't know what you want to accomplish in the dynamically choosing of output ports. Perhaps you can describe what it is.
18 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved