question

MPeyman avatar image
0 Likes"
MPeyman asked Kavika F answered

save output via custom code

Hi All,

I have connected my model to python and I want to get the result with different runs. So here In the attached model I'm trying to save the out put of each run in the statcol.csv file but always it gives me 0 for the column.

this is the out put of the python that connected to the flexsim and read the statcol.csv file. i tried to get 5 runs but it gives me 3 without any information and get stuck.

Operator tableRow EntryTime ExitTime

0 operator1 1.0 0.0 0.0

1 operator2 2.0 0.0 0.0

simulation elapsed time: 6.5s

Operator tableRow EntryTime ExitTime

0 operator1 1.0 0.0 0.0

1 operator2 2.0 0.0 0.0

simulation elapsed time: 5.78s

Operator tableRow EntryTime ExitTime

0 operator1 1.0 0.0 0.0

1 operator2 2.0 0.0 0.0

simulation elapsed time: 7.32s

p1.png

peyman-flex-model-original_Zones.fsm

FlexSim 23.0.8
connectionsoutputstatcollector
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

Kavika F avatar image
0 Likes"
Kavika F answered

Hey @MPeyman, I feel like you're not getting much data because you export the statistics collector table after .5 seconds of the model running.

1710176033553.png

Have you tried extending that time?


1710176033553.png (18.2 KiB)
· 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.