question

Rober G avatar image
0 Likes"
Rober G asked Rober G edited

FlexScript Error

Good day :)

Could someone please explain the following error message within my models:

1. Flexscript Error MODEL:/Tools/ProcessFlow/CurrentState/Wait for INV>variables/onWaitTimerFired Line 11 Invalid cast from char* to double

1. CSMTest.fsm

2. Flexscript Error MODEL:/Tools/ProcessFlow/CurrentState/Wait for INV>variables/onWaitTimerFired Line 11 Invalid cast from char* to double

CurrentStateModel.fsm

FlexSim 23.0.10
wait for eventflexscript errorwait for event question
csmtest.fsm (66.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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered Rober G edited

The On Wait Timer Fired field of the Wait for INV activity has a FlexScript error. Here are two options to fix it:

1. Remove the Set Label operation in that field and then add it again (so it brings in new updated code that doesn't have this issue).

OR

2. Click the Edit Code button and change the 'double' keyword to 'Variant' on line 11 that starts with 'Variant value = '

It seems that the default Set Label operation set on those activities is using old code that doesn't support being assigned a string value. We'll fix this for future bug fix releases.

· 1
5 |100000

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

Rober G avatar image Rober G commented ·

Thank you @Matthew Gillespie !

0 Likes 0 ·