Forum FlexPro – Discuss your topic!

Swapping Units

Home > Community > FPScript > Swapping Units

Viewing 3 posts - 1 through 3 (of 3 total)
  • Autor
    Beiträge
  • #12751
    John GerhardyJohn Gerhardy
    Teilnehmer

    Hello,

    two channel from an endurance test were pluggen into the wrong channel and I would like to swap the date for analysis in FP. Since several datasets are concatinated in a formel I thought swap the units there unfortunately without success.
    The data looks like this:
    Dataset A [Unit A]
    Dataset B [Unit B]

    What I would like is:
    Dataset A [Unit B]
    Dataset B [Unit A]

    It this possible in FPScript?

    Regards,
    John

    #8417
    John GerhardyJohn Gerhardy
    Teilnehmer

    Hello,

    two channel from an endurance test were pluggen into the wrong channel and I would like to swap the date for analysis in FP. Since several datasets are concatinated in a formel I thought swap the units there unfortunately without success.
    The data looks like this:
    Dataset A [Unit A]
    Dataset B [Unit B]

    What I would like is:
    Dataset A [Unit B]
    Dataset B [Unit A]

    It this possible in FPScript?

    Regards,
    John

    #9217
    Bernhard KantzBernhard Kantz
    Teilnehmer

    The Value operator removes the unit of its argument.
    To introduce the new unit, you can use the Unit operator.
    For example to change the unit of dataset DS from volts to ampere, one could write

    DS = Unit Value DS

    The FPScript functions AdjustUnit() and ChangeUnit() can only convert units of the same SI dimension.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.

Weisang GmbH

Sophie-Krämer-Straße 13
D-66386 St. Ingbert
Germany

Tel. +49 6894 929600
Fax. +49 6894 92960 26

zum Unternehmen