robertkjonesjr
Member
I think it constantly runs because you are constantly calling it. What you need is a one-shot - are you up for a script? You could probably do alarm or trigger, but an option is a script. When the button presses, choose User Defined action and call the program. In here, write whatever value you were intending, but also assign a tag the value of GetNow() or what have you - that way it only runs when you press the button.
There are likely plenty of ways to approach this - others will have some good ideas to.
There are likely plenty of ways to approach this - others will have some good ideas to.