Modbus Comm Bug Forum Home › Forums › Runtime Bugs › Communicator Bugs › Modbus Comm Bug This topic has 15 replies, 2 voices, and was last updated 1 month, 2 weeks ago by Mikhail. Viewing 16 post (of 16 total) ← 1 2 Author Posts January 19, 2021 at 1:32 pm #8096 MikhailModerator 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(); Author Posts Viewing 16 post (of 16 total) ← 1 2 You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In