Modbus Comm Bug

Forum Home Forums Runtime Bugs Communicator Bugs Modbus Comm Bug

Viewing 16 post (of 16 total)
  • Author
    Posts
  • #8096
    MikhailMikhail
    Moderator

    It’s a useful formula.
    Just a note: you can simplify

    if (ChannelErrors[CnlNum] >= n) {return double.NaN;}
    else {return Val();}

    to
    return ChannelErrors[CnlNum] >= n ? double.NaN : Val();

Viewing 16 post (of 16 total)
  • You must be logged in to reply to this topic.