Controlling When GoldSim Exchanges Data with the Spreadsheet File

Whenever a Spreadsheet element An element that can dynamically link to an Excel spreadsheet. is used in a model, GoldSim uses the following information to determine when during the simulation it should import data from or export data to the spreadsheet file:

The following table summarizes how this information is used to determine when to exchange data with the spreadsheet file:

Type of Exchange
Specified in Element
Recalculate
Setting
Offsets
defined
When does GoldSim exchange data with spreadsheet file?
Export only Not available No Export all data at end of simulation
Not available Yes Export data from just before its offset changes*
Export all data at end of simulation
Import only Not available No Import all data at beginning of simulation
Not available Yes Import all data at beginning of simulation
Import data when its offset changes
Export and Import Off No Export all data at end of simulation
Import all data at beginning of simulation
On No Export and Import all data at beginning of simulation
Export and Import all data whenever an Export variable changes
Export all data at end of simulation
Off Yes Export and Import all data at beginning of simulation
Export data from just before its offset changes*
Export all data at end of simulation.
Import data when its offset changes
On Yes Export and Import all data at beginning of simulation
Export and Import all data whenever an Export variable changes
Export data from just before its offset changes*
Export all data at end of simulation
Import data when its offset changes
*The value that is exported when an export offset changes is the value from the update immediately before the offset changed. Hence, if the offset was "Realization A single model run within a Monte Carlo simulation. It represents one possible path the system could follow through time.", when Realization changes from 1 to 2, GoldSim would export the value from the end of Realization 1 using an offset of 1. Similarly, if the offset was "Month", when Month changes from 1 to 2, GoldSim would export the value from the end of Month 1 using an offset of 1.

Several points about spreadsheet recalculations are worth noting:

Note: When you use a Spreadsheet element, there may be a delay of several seconds at the start of a simulation as Excel is loaded into memory. Once it is loaded, however, the simulation should progress rapidly.
Note: If you are only importing data from a spreadsheet and you have not specified any dynamic offsets and you have already imported the data previously, if GoldSim cannot find the spreadsheet when you try to run the model it will use the data that was imported previously and will log a warning message to the Run Log Text that is stored with a GoldSim model once it has been run. It contains basic information regarding the simulation, and any warning or error messages that were generated..
Warning: You should never try to open a spreadsheet that is linked to GoldSim while a simulation is running. In addition, prior to running a GoldSim model that is linked to a spreadsheet, all referenced spreadsheets should be closed. If you try to interact with a spreadsheet that is being used by GoldSim during a simulation, all interaction with the spreadsheet is blocked by GoldSim.

If you are importing data from a spreadsheet, you can tell GoldSim to import the data while in Edit Mode The state of a model when it is being edited and does not contain simulation results. by selecting Update Spreadsheet Outputs via the Options>> menu button. When you do this, GoldSim will import the data currently existing in the spreadsheet. If the information being imported is impacted by data that is being exported to the spreadsheet (and that data can be computed in Edit Mode), GoldSim will export the data to the spreadsheet, trigger a recalculation, and import the data from the spreadsheet to GoldSim, where it can be viewed as an output of the spreadsheet element.