
xlsx EXCEL file, and the sheet where the information is located. The second parameter holds the names of the. The first parameter of the Set in Excel command tells Simul8 what information is to be written to Excel, in this case gbl_Utilisation. We then use the Set in Excel command to send the information to Excel. Please note that you have to add to KPIs, the Utilization % of Resource 1, for the command’s parameter to display correctly. We first store the utilisation result we wish to report in a global variable using the get_result command. If you’d like to export to Excel the value of a global variable which stores the utilisation result of Resource 1, you can use the Set in EXCEL command. You can do this by exporting an already created Excel Connection, using the “Export Excel Connection” Command.Īs when importing, you can export all Excel Connections, using the “Export all Excel Connections” command. Often you may want to report the results of your simulation back to Excel. Step 3: Sending information Back to Excel We then increment these so that the next time the visual logic is run the next cell is read. We use local variables to represent the row and column numbers. We look at our spreadsheet where we stored our data from Excel to set the maximum number of Resources available. Time Check logic is repeated on a fixed time interval.
#Run 8 train simulator build your own route code
Next, we want to change the staff level each hour based on the imported data, so we place our Visual Logic code in the Time Check section. Generally, we read in all the information we need during 'On Reset' logic as this way the information will be updated just before a run. We try to avoid reading information in from Excel during a run (such us on Start Run), as this could really slow down the simulation. The remaining parameters tell Simul8 the EXCEL cell to start copying from and how many rows and columns of data to copy. xlsx file, and the sheet where the information is located. As our variable is an internal spreadsheet the cell reference tells Simul8 what cell to start writing the information in. The first parameter of the command holds the Simul8 variable the information is to be written to, in this case the ss_Staff Availability. If you haven’t created an Excel Connection, or if you want to import information from EXCEL to a global variable, you can use the Get from EXCEL command. If you ‘d like to import all Connections at once, you can use the “Import all Excel Connections” command. Given that we have created an Excel Connection for it, we can use the “Import Excel Connection” command in Visual Logic for importing the data. Step 1: Getting the information from Excelįirst, we want to input the staff availability pattern below from an Excel file named “Staff Availability Pattern” into Simul8.

The following examples show how the two approaches are implemented over three steps, for importing data from Excel, for using this data, and from exporting data to EXCEL.

Whether you are looking for a train game for kids or for yourself, Train Sim is definitely something you should try out.ĭo you enjoy our Train Simulator game? Follow on social media to get the latest news and updates.Visual Logic commands for transferring data. Keep track of your progress and make the most of this train simulator game! These can be declining a single train, crashing more than 10 passengers, trying out all the weather variations on a single scene, etc. You can see the list of the achievements that need to be unlocked and how many points they bring you. Of course, you can manually switch the lights on and off whenever you feel like it. You can also choose a night option, and the lights will automatically turn on. When you get bored of the nice weather, you can try driving trains while it’s raining or snowing. You can also drop the freight cars while moving. Another great option is that you can decouple. You can also change the train and its carriage cars while you are playing.

However, you can choose the one you like most. Here are the current options you can choose from:Īs you see, there is an option to build your own, customized 3D terrain.Įach environment suggests a train type that is appropriate for the terrain’s specifics. This train driving simulator includes terrains that are geographically realistic 3D environments which provide a different experience every time you play.

Whether looking to experience driving a train or just want to enjoy your favorite train setup in your preferred environment, this app is perfect for every train lover. Control your more than 50 historical and modern trains which are perfectly recreated in 3D for your mobile device. Train Sim is the realistic train game suitable for both adults and kids who enjoy trains.
