Jump to content

Recommended Posts

Posted

Hi, I need to execute a process only during three hours per day, but I cannot use the timer because It just represent a point in time and I need a period of time

 

Someone can recommend me an simbit, or give me some advice in topic

 

Thanks in advance

Posted

To the best of my knowlegde every process can be enable or disable by using ProcessName.Enabled. You can assign this state variable true at the beginning of the three hour period (not a must but probabily using a timer element) and false at the and of the three hour period. I hope it works?

  • Thanks 1
Posted

Heidy, maybe you can do it using 2 timers. The first one for the starting time and the second one for the 3 hrs period.

You can also use the first timer and a Delay step of 3hrs, then a Fire step. 

Rds

  • Thanks 1
Posted

Hi, It works using ProcessName.Enabled. I think It could work also with the delay step generally, but in my case I cannot do it in that way because the process with the period time was related to a server that accomplished the funtion of allow passing depending of the type of entities to my system model. Thanks a lot, for both of you, for your answers.

Sorry to bother you again, but I just wondering If someone know how can I exclude the zero numbers on a tally wich value is determinated by a state. I tried in the Tally's advance options in exclussion expression like State==0 and also as Tally==0, but inmediately does not appear in the results tab

Posted

I think setting the exclusion expression property of the tally1 step as TallyStatistic1.Lastrecordedvalue == 0 will work for u?. 

  • Like 1
Posted

Thanks, but I tried with a decide step before the tally that verify State>0. And it works perfectly.

How ever, Where comes from the .lastrecordedvalue?

Because it didn't appear in the expression tab but the Simio's model accept the expression and it surprised me pleasantly

Posted

you can not find .lastrecordedvalue from dropdown menu. Just type it, it will work. Tally1.lastrecordedvalue means just the last tokens value (in your case state's value recorded by tally1 element. I think if Tally1.lastrecordedvalue == 0 which means 1 for exclusion property this tally step should be skipped for this token. And, it is the case what you want to achieve. Just try, I think it should work...

Posted
1 hour ago, gocken said:

you can not find .lastrecordedvalue from dropdown menu. Just type it, it will work. Tally1.lastrecordedvalue means just the last tokens value (in your case state's value recorded by tally1 element. I think if Tally1.lastrecordedvalue == 0 which means 1 for exclusion property this tally step should be skipped for this token. And, it is the case what you want to achieve. Just try, I think it should work...

since exclusion property checks the expression at the start of the simulation run to determine if this step should be excluded from the run my suggestion does not work. simply omit this suggestion:( and thus decide step before the tally step best suits your purpose.

  • Thanks 1
×
×
  • Create New...