Dear Community,
Is it possible to set the Time tag of Timer through parameter OR somehow through c# code?
Thank you.
Hi Muhammad,
you want an automation routine to dynamically update this to execute something faster or slower on a connector level?
not sure if it would serve your use case, and it is not exactly change one specific timer, but are you aware that each element in DataMiner has a General Parameter called Timer Base? The Timer base ranges from 0 to 1, and it functions as a multiplier to the Timers in the connector (i.e. all of them). You can set this manually or with automation (similar to setting any parameter on an element), and basically you could say that you slow down or speed up the time for that element (all Timers would go off faster or slower).
a use case could be for example that you say: whenever an element goes into critical alarm state, I want to double the speed of the data collection on it, or whenever it is in active service use, or at specific times of the day, etc.
Hi,
This is not possible. The only way to adapt the timer speed at runtime is by changing the [Time base] parameter, which will be applied to all (non-fixed) timers. See here
An alternative to modify different speeds for different timers could be to define a faster timer (e.g. 5s) which decrements a counter value every time the timer goes off. When the counter reaches zero then the desired content is being executed and the counter is then set again to the configured value. E.g. if the content needs to be executed every 30s then set the configured value to 6 when the timer speed is 5s, if the content needs to be executed every 40s then set the configured value to 8. Multiple counters can be used with the same timer if different content needs to be executed at different times.
Regards,