Jump to content
Simio Forum
gtwirth

Excel Read and Excel Write Steps Example

Recommended Posts

NOTE....Code has been removed from this post. Please use the Excel Read and Excel Write steps that are provided when Simio is installed. There is a ExcelReadWrite simbit. The code is provided in C:\Users\Public\Documents\Simio\Examples\UserExtensions\ExcelReadWrite

ExcelReadWrite.zip

Share this post


Link to post
Share on other sites

Great addition! If only this were here a few weeks ago, to save us creating our own... then again ours also auto generates a graph of the data.

Share this post


Link to post
Share on other sites

I finally got around to testing this, and the immediate restriction I see is that you can only use states and not functions.


I.e. TimeNow, or custom math statements.

Share this post


Link to post
Share on other sites

Good point...We will make an adjustment for the Excel Write and DB Write steps to handle expressions. This way it work work the same way as the Write (text) step.

Share this post


Link to post
Share on other sites

Hi,


I am getting a file corrupted message when trying to open the model. Is there something I need to run or compile beforehand ?


I am using version 5.


Mark

Share this post


Link to post
Share on other sites

Hi,

we would like to write the results of mutiple replications in one excel file (row=run.replicationNumber). We tried to change the excel connect and excel write step but we didn't find a solutuion. Do you have any suggestions for us in order to solve this problem?


Best reg.

Markus Gragert

Share this post


Link to post
Share on other sites

Ditto, I would also like to know...This is a request that I had requested but still no answer....


CSVs and Macros works....yet its a pain...please support the post under the SI Ideas & Suggestions section...

Share this post


Link to post
Share on other sites

I don't think there is a solution around this. The Excel Write step could be setup to to handle replication number, but you would only be able to run one replication at a time. The same worksheet cannot be opened more than once. The way the Excel Write setup works, it opens the worksheet into memory, writes the data into memory during the replication and saves the worksheet when the replication completes.


I recommend using the DB Write step and a MySQL database. MySQL is easy to setup and free to use. We provide instructions on how to setup it up in the DBReadWrite simbit. With the DBWrite, multiple replications can write to the database simultaneously and all the replication can be written to the same table. Once the experiment completes, you can import the data from the database into excel. In the end, the DB is the quickest way to get all your experiment results into one place.

Share this post


Link to post
Share on other sites

Hi Glen,


I have been using the DBWrite step in my current model with MySQL.


It works like a charm, but it slows the model down considerably. (Can take almost 50% to 70% more time)


Is there any reason why it is slowing the model down so much? Any work around suggestions?


Thank you and regards,


H

Share this post


Link to post
Share on other sites

×