MEagar Posted April 9, 2014 Share Posted April 9, 2014 Could we muster some support for this post to enable us to update values in data tables via a process block !! Link to comment Share on other sites More sharing options...
dsturrock Posted April 9, 2014 Share Posted April 9, 2014 In Enterprise you can update a table state using an Assign Step. In other Simio versions you can have a matrix array that is initialized from a table, then use an Assign Step to update the state values that would correspond to a particular cell. Link to comment Share on other sites More sharing options...
antonio6vieira Posted June 4, 2014 Share Posted June 4, 2014 (edited) Hello! While trying to find answers to my problem I found this "Output table suggestion" could resolve my problem. Could someone please enlighten me as how to this for other simio versions? Thanks. Edited June 5, 2014 by Guest Link to comment Share on other sites More sharing options...
antonio6vieira Posted June 5, 2014 Share Posted June 5, 2014 In Enterprise you can update a table state using an Assign Step. In other Simio versions you can have a matrix array that is initialized from a table, then use an Assign Step to update the state values that would correspond to a particular cell. Could you please be more specific on how to do this workaround for other Simio versions? Link to comment Share on other sites More sharing options...
MEagar Posted June 9, 2014 Author Share Posted June 9, 2014 To not have three million arrays of different types that need to be correlated with an index, the following is painful yet if you don't have enterprise, I will pay for a more optimal solution.: 1. create an index as well as your arrays of type string/real/node/etc. 2. Create a user table of type expression and list the array elements in each column. You should now be able to assign the imported values during the onRunInitialized process to this grid, change the values during the simulation by means of a search block, as well as specify output Statistic elements to these state variables. If you want to make this a dynamic array, this will have to be done in the API, else be sure to specify enough array elements. It seems like allot of work to setup, yet during model creation, working with & cross referencing this table with a search block is well worth it. Link to comment Share on other sites More sharing options...
dsturrock Posted June 9, 2014 Share Posted June 9, 2014 Or, in many cases, just creating the 3 arrays and using the Find step instead of the Search step will be sufficient. Link to comment Share on other sites More sharing options...
MEagar Posted June 9, 2014 Author Share Posted June 9, 2014 What Dave specified is correct and will work well with simplistic logic, You will however run into problems if you need to find a index/row/object/"array element" in a single array, based on conditional logic that needs to be applied across multiple related before mentioned arrays. Link to comment Share on other sites More sharing options...
hugo Posted August 7, 2014 Share Posted August 7, 2014 Hi, Can any of these methods be used to write time series data during the simulation run and then at the en of the simulation write it into a database? Thanks, H 1 Link to comment Share on other sites More sharing options...
sbenmous Posted November 25, 2014 Share Posted November 25, 2014 Hi, I tried to set up this solution for a particular step in my project : I have a source having an arrival table built as stated above : each entry of the table is a realState (unit type: Time in seconds). I tried to update state values during simulation run but it seems that the source or data table stores initial values somewhere in memory and doesn't take into account any modification during simulation run. Does anybody noticed the same behavior as me? Did I do something wrong ? Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts