question

Mr Y avatar image
0 Likes"
Mr Y asked Joerg Vogel edited

how to ouput error message without opening flexsim?

Hi,

I am wondering how to export error message in system console to external files when runing model silently? Thanks!

.

FlexSim 19.0.0
racksilent unattendedexport error messagerun silently
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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Mr Y commented

You can use the following command to get the system console output when running FlexSim silently:

string systemConsoleText = applicationcommand("getconsoletext", 2);

Attached (runscriptdemo.zip) is a zip file containing 3 files that show an example of how you can silently run a FlexSim model and then export results to a text file, including the output and system console text.

Extract these 3 files to your computer somewhere (I put them on my Desktop).

Edit runScriptDemo.bat so that it has correct paths to where you have installed FlexSim, where the model is, and where the script file is.

"C:\Program Files\FlexSim 2019\program\flexsim.exe" "C:\Users\username\Desktop\test_1.fsm" /maintenance nogui_disablemsg_runscript /scriptpath "C:\Users\username\Desktop\script.txt"

runscriptdemo.zip (17.1 KiB)
· 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.

Mr Y avatar image Mr Y commented ·

@phil.bobo really thanks for you response, it's really helpful! Here I have one more question. How to make experiments of parallel operation with different parameters in one model when flexsim running silently, if I don't use experimenter built in flexism? Thansk again!


0 Likes 0 ·

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.