question

Joe S2 avatar image
0 Likes"
Joe S2 asked Ryan Clark commented

Checking inputs to entrytrigger

I'm trying to connect two objects to a network node and then write a code to perform calculations contained within both. When I connect one object to a network node I know I can access it by parnode(1). However, I cannot seem to access the second object with parnode(2). This led me to explore other inputs to the function and got me wondering if there is any way to see what is getting passed into entrytrigger in a similar notion that UserCommands have a parameter list and a known call location?

If there is no way to check these inputs, is there a known way to access the second object attached to the network node?


Thank you

FlexSim 20.2.3
customcodeentry triggerentrytrigger
· 6
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

parnode(1) has got a value that is different what you expect. This value describes the entering connection of the traveler on your network and it does not contain a destination of any 3D fixed resource object or module object connection. Any Flow logic in a model is a result of a declaration of a destination in tasksequence which is evaluated by the navigator. The navigator checks if the destination is connected to your path system. Then a Taskexecuter is sent to the right network node, where a navigator find this connection. If your 3D object has got multiple connections a navigator sends a taskexecuter to the nearest node. If you want to divert the Taskexecuter to a different exit point node you adjust the travel destination to that point or network node before this exit point. The unload task will find the nearest exit point for a destination object by a navigator.

If you just let travel your taskexecuters on your network and you want to identify the connected 3D fixed resource objects of a network node you find them in the attribute tree of a navigator in the model tree.

0 Likes 0 ·
Joe S2 avatar image Joe S2 Joerg Vogel commented ·

I have a traffic control flexsim object and a task executor attached to a network node, I access the task executor through parnode(1) which seems to be an entering connection check. the traffic control doesn't enter or exit, it also doesn't appear in either the network node tree or the navigator tree. Since the traffic controller cannot be accessed via parnode(1) (since it doesn't enter or exit) how can I access this object?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Joe S2 commented ·

would you mind to attach a model? It take so much time to get a model description slice by slice each time you describe it a bit more. Please take a step back and don’t try to write source code on developer level. There are already pointers declared which translate parnodes with literal descriptive names. It is so much easier to understand and to help you if you can describe what you want to achieve.

0 Likes 0 ·
Show more comments
Ryan Clark avatar image Ryan Clark commented ·

Hi @Joe S2,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers

·

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.