question

Maíra A avatar image
2 Likes"
Maíra A asked Patricia_brenny R commented

Railworks exception error

At the moment that i add the move train activite this error is shown:

time: 1000.000000 exception: Exception Caught in ObjectFunction250__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /RailSystem1 i: /ConnectPoint1/Locomotive2399 class: /RailSystem1


time: 1000.000000 exception: Exception caught in TreeNode::receivemessage()

time: 1000.000000 exception: Exception caught in Executive::processeventinlist().


What could be the solution?


model_test.fsm

FlexSim 22.2.0
exceptionrailworksrail
model-test.fsm (64.5 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

Patricia_brenny R avatar image
2 Likes"
Patricia_brenny R answered Patricia_brenny R commented

Hey there!

Your model seems to be working fine in my version of FlexSim 22.2 + Railworks , I believe this is can be fixed by downloading the most recent Railworks for your respective installed FlexSim version. Which can be found at this link: https://account.flexsim.com/downloads/#/

1677510713187.png

Alternatively, the exception is related to the destination field of the MoveTrain process flow activity

1677509015541.png

This is a very sensitive field and you need to guarantee that the reference used will, in fact, link to the desired Rail or RailControlPoint.

Try setting up your reference like this, skipping the second step of adding the "token.destino" label, and using modelfind directly on the field.

1677510523088.png

Using the " Model.find("Rail"+string.fromNum(token.secao_bloqueio)) " directly on the Final Destiny field should solve the problem.

Your process flow will be looking like this, and as you can see the token sucessfully reached the activity:

1677510868187.png



1677509015541.png (14.4 KiB)
1677510523088.png (15.3 KiB)
1677510713187.png (18.9 KiB)
1677510868187.png (20.6 KiB)
· 2
5 |100000

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

Maíra A avatar image Maíra A commented ·

Hello @Patricia_brenny R !


I'm already using the most recent version... But your solution about put the label configuration in the Final Destiny worked here. Thank you so much!

2 Likes 2 ·
Patricia_brenny R avatar image Patricia_brenny R Maíra A commented ·
Then I believe we've worked on the solution to accept those kind of references in the new release that will be available for download shortly!


Glad to help! :)

1 Like 1 ·