Formulas to control more than one channel Forum Home › Forums › Understanding the Software › Using Formulas › Formulas to control more than one channel This topic has 3 replies, 2 voices, and was last updated 1 year, 10 months ago by Mikhail. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 19, 2023 at 5:53 pm #13528 DHagueParticipant Hi, I have a button in a scheme that needs to reset multiple counter channels to 0, is there a way to accomplish this with a formula as I am unable to set the button to activate multiple channels. October 20, 2023 at 9:59 am #13534 MikhailModerator Hi, Are the counter channels connected to hardware counters? How do you reset a single counter? October 20, 2023 at 3:49 pm #13536 DHagueParticipant The counters will be done in software, right now I reset a counter by using a SetVal(CnlNum, 0) formula. October 23, 2023 at 7:40 am #13538 MikhailModerator Create a new function and set multiple SetVal inside it. For example, public double MySetVal() { SetVal(101, 0); SetVal(102, 0); return Cmd; } Then specify MySetVal() in the output formula of the channel. This reply was modified 1 year, 10 months ago by Mikhail. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In