I'm running a university project in Plant Simulation. I'm having problems with simulation because the model runs very slowly. Can anyone tell me if it's a computer problem or a simulation problem? Thanks.
your observer method "PauseBanho" is executed too often, this slows down the simulation speed.
Please have a look at the profiler...
You are launching the PauseBanho from init and from the sensor on Line7 and as the method contains an endless loop your are cummulating these methods without ending them (=> slow down...). You should omit the sensor calls and adapt the thresholds for setting and releasing the pause status e.g. between 5 and 30.
Having done this you will experience an complete different runtime performance.
(sorry for the empty post... :-) )
Thanks for your answer. I've already took out that Method, but I'm having another problem with the Method "linha7". I want that if line7 is empty the gás machine is paused. I put and observer in Line7 but is not working. Can you understand what is wrong with this method?
Thanks a lot.