Avena Webapp API - v0.0.1
    Preparing search index...

    Function padChannel

    • Formats a LabJack channel number as the chNN token used in subjects.

      Parameters

      • channel: number

        LabJack channel number.

      Returns string

      ch followed by the number zero-padded to at least two digits.

      padChannel(3);   // "ch03"
      padChannel(120); // "ch120"