Bundle Operator (FPScript)
Bundles scalar values into data series, data series into data matrices or signals into signal series.
Syntax
{ Expression1[[, Expression2],...] }
The syntax of the Bundle operator consists of the following elements:
Element |
Description |
---|---|
Expression1...n |
Any expressions for which the results are to be bundled. |
Remarks
All data types except the Empty data type are permitted. You can combine the numeric data types any way you like. The data types are adapted to each other before the bundling so that there is no loss of resolution. If you specify the parameters as constants, their notation determines the data type of the result.
If data series or signals are to be bundled, then these have to have the same number of values.
The result is a signal series if the first expression returns a signal. Its X component is then copied to the result. All other elements can be signals or data series for which the X components, however, are all ignored. If one of the expressions returns a list, then the first element in the list is taken, as long as it is not also a list. Otherwise, the extraction process is repeated recursively. All other elements of the list are ignored and are not copied to the result.
If at least one of the arguments is a quantity, then the first argument with a unit determines the unit of the result and all additional arguments with a unit must have the same SI dimension. These are transformed before bundling into the result unit. All arguments without a unit are viewed as being present in this unit.
Available in
FlexPro View, Basic, Professional, Developer Suite
Examples
{1n, 2., 4n} |
Generates a data series with 3 64-bit floating point values. |
{{1, 2, 4}, {3, 2, 1}} |
Generates a data matrix with two columns and three rows. |
{Signal1, Signal2} |
Combines two signals into a signal series. |
{50, 100 mN, 0.5 N} |
Results in the data series {50 mN, 100 mN, 500 mN}. |