
ebabtain
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Downloads
Posts posted by ebabtain
-
-
Hi everyone,
I'm a freshman university student and am new to Simio, so please correct me if I make any beginner mistakes or say anything wrong. Also, I apologize for posting this in the general section - I didn't know where to post it.
In my simulation, I am trying to use excelRead and excelWrite to input and output data to an excel file. I am also using labels to show the exact values. During the simulation, I would like to run a MATLAB script to modify the data in the excel sheet, and read it back into Simio. I have no trouble at all running a MATLAB function using the CallMATLAB step. The problem is reading the modified file back into Simio, which is not explained by the simbit or online tutorials, as far as I know.
For example, the values initially in the spreadsheet were all 1's. The first time I use excelRead to read a file, Simio shows the data without a problem. After that, I change the values to 2's, but when excelRead process is triggered, Simio doesn't show changes. Note that the data in the excel file did change. Once I completely stop the simulation and run it again, Simio finally shows the new values.
I apologize if I am completely incorrect, but I have been thinking of what the problem might be. It appears to me that the first time Simio uses excelRead to read a file, it somehow stores a copy of it and works only with it, and when it stops it somehow copies it back? I'm really confused about what's happenning. The point is that I just cannot read the same file more than once.
Is it possible to modify and read an excel sheet several times while the simulation is running, or is it just not possible using excel files? If so, what would be some solutions to this issue? If I decide to use mySQL databases instead of excel files, would I face the same issue? Please note that I am not familiar with databases, and would like to use excel files if possible.
Thank you all. Please let me know if my question is unclear or if you need any more information.
Connecting two Simio models in real-time
in SI General Discussions
Posted
Hi,
Lets say I wanted to create two simple Simio models, where an entity is made, processed by one server, and moved to the next model, in the following way:
source1 > server1 > sink1 >> source2 > server2 > sink2
Where 1 is in model1 and 2 is in model2.
I was wondering if it is possible to set things so that whenever an entity goes into sink1, a new entity is made in the second model (at the same time)? Is there a user-made add-on process step that does something close to this?
If there is a simpler way than making a new process step, please let me know.
Thank you