BRXman (Customer) asked a question.

ADD A FEATURE: SCALE STATEMENT CLAMPING

The scale statement help file clearly states "NOT for clamping actual output value." Please add a checkbox in the SCALE statement TO CLAMP THE OUTPUT VALUES. This is of immense value when processing mA readings. Since the functionality is NOT there, i have to add tons of statements to manually do the clamping outside the SCALE statement.


  • HOST_franji1 (HOST Engineering)

    There's also a CLAMP instruction. Regardless, clamping is common when doing scale, which is why we added it as part of LERP, but originally did not provide it directly in SCALE.

     

    For now, look at replacing SCALE/logic with LERP (Linear intERPolation - multi-step scaling), or look at adding the CLAMP instruction after the SCALE to replace the extra logic that you added to clamp manually.

    Selected as Best
  • RBPLC (Customer)

    If you want clamping built into a scaling function, use LERP. If you want to clamp use the CLAMP function. Adding clamping to the SCALE function is not needed because of the LERP function.

  • HOST_franji1 (HOST Engineering)

    There's also a CLAMP instruction. Regardless, clamping is common when doing scale, which is why we added it as part of LERP, but originally did not provide it directly in SCALE.

     

    For now, look at replacing SCALE/logic with LERP (Linear intERPolation - multi-step scaling), or look at adding the CLAMP instruction after the SCALE to replace the extra logic that you added to clamp manually.

    Selected as Best
    • BRXman (Customer)

      Thanks for the information. In the help text for the SCALE statement where it says "NOT for clamping" could a note be added "SEE CLAMPING INSTRUCTION AND/OR LERP:" (And if it already says so aplogies...) 😄

      • Durallymax (Customer)

        Maybe a pop-up can be added :)

         

        I like that DmD SCALE does not clamp. Psuite has no way to let a SCL or SCLN go out of bounds which is not always ideal. In some cases you aren't able to get the process to the bounds and need to just grab a couple reference points and let scaling go from there, then provide clamping elsewhere which means going old skool like a Click and doing it in a math block. I like that DmD gives you that flexibility, but that's always been their strength.

        Expand Post
      • HOST_franji1 (HOST Engineering)

        If we do change SCALE - it would be an option to clamp at the bottom and/or the top.