Running into an issue. Essentially I want use a Date Time Source that has references to quantities of tokens to generate with the value of how many to generate stored in a global table cell. The quantity in those global table cells are subject to change during the simulation run. My attempts in my real model were not working so I built a dummy model and was able to recreate the issue.
The model should run where at time zero a single token is generated based on an initial value of 1 in the referenced global table cell. Then 30 minutes into the run I change the global table cell value to 500. When the next hour occurs the next generation of tokens should read from the global table cell again and generate 500 fresh tokens for a total of 501 tokens generated.
Instead what happens is that only one additional token is being created at the second hour token creation point. It feels like the Date Time Source took a snapshot of the Quantity values at run start and doesn't check again when it is time to execute the token generation? Is this intentional? If so, is there a workaround to force the source to recheck the quantity reference each time it's going to generate tokens?
Secondly, a new issue popped up which can be seen in the attached video. When I push Reset on the model to try again it resets the global table cell value back to 1. However, if I only push Reset one time, the cell itself changes back to 1 as expected, however, when I run the model it's like the Source thinks it's still set to 500 and generates to batches of 500 tokens erroneously. To prevent this issue from happening I can push Reset twice back to back and it appears the source goes back to a value of 1 AND the source recognizes the cell value as 1.
Testing Date Source Arrivals Snapshot Time.fsm