Create formula to Reset 2 input channel to Zero

Forum Home Forums Understanding the Software Using Formulas Create formula to Reset 2 input channel to Zero

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10795
    CCKOH
    Participant

    Hi All,

    I’m need a simple formula to reset both input channel let say Val(201) & Val(202) to Zero by applying a formula to one Output Channel.

    Can someone help me to debug my formula below as I’m keep receive formula error while upload to server.

    Error msg = {Line 527, column 8: error CS1520: Method must have a return type}

    My formula:

    public ResetArc(int u, int d)

    {
    SetVal(Val(u),0);

    SetVal(Val(d),0);

    }

    Thank a lot for your Help.

    • This topic was modified 8 months, 3 weeks ago by CCKOH.
    #10803
    Mikhail
    Moderator

    Hi,
    You can try:

    public double ResetArc(int u, int d)
    {
      SetVal(u, 0);
      SetVal(d, 0);
      return 0;
    }
    • This reply was modified 8 months, 3 weeks ago by Mikhail.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.