Topic
Swapping Units
Startseite ' Community ' FPScript ' Swapping Units
- Dieses Thema hat 2 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 13 Jahren, 4 Monaten von John Gerhardy aktualisiert.
-
AutorBeiträge
-
17.01.2012 um 08:41 Uhr #33494John GerhardyTeilnehmer
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,
John17.01.2012 um 08:41 Uhr #33496John GerhardyTeilnehmerHello,
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,
John17.01.2012 um 12:32 Uhr #33495Bernhard KantzTeilnehmerThe [b]Value[/b] operator removes the unit of its argument.
To introduce the new unit, you can use the [b]Unit[/b] operator.
For example to change the unit of dataset DS from volts to ampere, one could writeDS = Unit Value DS
The FPScript functions [b]AdjustUnit()[/b] and [b]ChangeUnit()[/b] can only convert units of the same SI dimension.
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.