Invalid down cast error

Invalid down cast error

sudheer_r
Not applicable
13 Views
5 Replies
Message 1 of 6

Invalid down cast error

sudheer_r
Not applicable

[ FlexSim 23.2.0 ]

ACR_9.fsm

I am getting below error. Any feedback on this error type

1694058853176.png

0 Likes
Accepted solutions (1)
14 Views
5 Replies
Replies (5)
Message 2 of 6

arunTTT2P
Explorer
Explorer
Accepted solution

Battery label is not created as a tracked variable type, so you have to convert it as a tracked variable type (kinetic) and the label dischargeRate is not present on the ACRs.

Message 3 of 6

sudheer_r
Not applicable

I have changed Battery to tracked variable

Still below error is occurring

Attached the model for reference

ACR_9.fsm

1694065520173.png


0 Likes
Message 4 of 6

moehlmann_fe
Observer
Observer
As Arun said, you have to set it as a kinetic Tracked Variable to be able to set a rate.
Message 5 of 6

sudheer_r
Not applicable
Yeah Its working now
0 Likes
Message 6 of 6

mischa_spelt
Advisor
Advisor

You may have a sign error still. If current.dischargeRateLoaded is positive, then you probably want to set the Tracked Variable rate to -1 * current.dischargeRateLoaded . If it is negative, the tracked variable rate is correct but the time calculation to empty needs to be multiplied by -1.

0 Likes