XScale (FPScript)

09.10.2019
Analyzing Data Mathematically > Reference > FPScript Functions > Data Manipulation > XScale

XScale (FPScript)

Scales the X component of a signal or signal series.

Syntax

XScale(DataSet, Offset [ , Scale ])

 

The syntax of the XScale function consists of the following parts:

Part

Description

DataSet

The data set whose X component is to be scaled.

Permitted data structures are signal and signal series. All numeric data types are permitted.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

Offset

A scalar value, by which the X component is shifted.

Permitted data structures are scalar value. All numeric data types are permitted.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

Scale

A scalar value, by which the X component is multiplied.

Permitted data structures are scalar value. All numeric data types are permitted.

If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated.

 

Remarks

The result has the same structure as the argument DataSet.

The function transforms the X component according to: Scale * DataSet.X + Offset. If you want to transform the Y component of a signal, you can use the arithmetical operators Addition (+) and Multiplication (*), e. g. 1000. mV/V * Signal + 100 mV.

Available in

FlexPro View, Standard, Professional, Developer Suite

Examples

XScale(Signal, 5.8 ms)

Moves the signal by 5.8 milliseconds.

XScale(Signal, 0, 1000 ms/s)

Converts the time values of a signal from "s" to "ms".

 

See Also

Addition Operator (+)

Multiplication Operator (*)

Share article or send as email:

You might be interested in these articles