question

Chien_yu C avatar image
0 Likes"
Chien_yu C asked Jacob Gillespie answered

runfunction not enough parameter.

I am trying to do a basic simulation by resetting the model, run the model and exit. The equivalent flexscript is
resetmodel();

runfunction();

cmdexit();

from the ref. page, those three should be enough. But when I tried it out on script console, I am getting "Not enough parameters in call to command runfunction". I tried with go(), but that would not block the script, thus existing the program immediately. thx

FlexSim 20.2.3
flexsim commands
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

·
Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered

The documentation for runfunction() is incorrect. The signature should be:

runfunction(num noreset)

So just pass 1 into runfunction();

5 |100000

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

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.