Returns the data of a formula or a data set or calls an FPScript or Python function with arguments and returns the result.
Syntax
flexpro.call(Path[, Argument1, Argument2, ... , Argument10])
The syntax of the flexpro.call functionconsists of the following elements:
Element |
Description |
---|---|
Path |
A string with the name and path in the project database of an FPScript or Python formula, a data set or an FPScript or Python function. |
Argument1, Argument2, ... , Argument10 |
Optional. The arguments that are passed to the function. You can use flexpro.Data objects or Pyton data types, which can then be converted into FlexPro data. |
Result
A flexpro.Data object that represents the result value as FlexPro data with a unit.
Available In
FlexPro Professional, Developer Suite
Examples
x = np.linspace(0, 10, 100) |
Creates a "Signal" data structure with Y and X components and calls the "Transform" function in the root folder with the signal as an argument. |
data = flexpro.call(r'Data Set') |
Returns the data from "Data Set". |
See Also