question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked Mischa Spelt commented

Invalid down cast error

ACR_9.fsm

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

1694058853176.png

FlexSim 23.2.0
code
1694058853176.png (101.2 KiB)
acr-9.fsm (96.2 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

·
Arun Kr avatar image
1 Like"
Arun Kr answered Mischa Spelt commented

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.

· 4
5 |100000

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

SudheerReddy avatar image SudheerReddy commented ·

I have changed Battery to tracked variable

Still below error is occurring

Attached the model for reference

ACR_9.fsm

1694065520173.png


0 Likes 0 ·
1694065520173.png (37.4 KiB)
acr-9.fsm (95.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann SudheerReddy commented ·
As Arun said, you have to set it as a kinetic Tracked Variable to be able to set a rate.
1 Like 1 ·
SudheerReddy avatar image SudheerReddy Felix Möhlmann commented ·
Yeah Its working now
0 Likes 0 ·
Show more comments

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.