Ignoring special values

Forum Home Forums Understanding the Software Formulas Ignoring special values

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18003
    oley
    Participant

    Some output channels I use have special values if uninitialized.
    After restart the device the channel value is 0x7FFF or 0x7FFFFFFF.
    In this case the values should not be presented.
    Should I use script or is there a simpler solution?

    #18004
    manjey73
    Participant

    yes, you need a script, you can even use it in the input formula, something like this

    (Cnl == 0x7FFF || Cnl == 0x7FFFFFFF) ? SetData(CnlNum, 0, 0): Cnl

    however, I did not try to check for two values at once.
    instead of the first 0, you can double.NaN

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.