Skip navigation

FlexPro Documentation 2025

flexpro.run

Executes an FPScript statement and returns the result as a flexpro.data object.

Syntax

flexpro.run(FPScript)

The syntax of the flexpro.run functionconsists of the following parts:

Part

Description

FPScript

A string with the FPScript code.

Result

A flexpro.Data object that represents the result value as FlexPro data with a unit.

Available In

FlexPro Professional, Developer Suite

Examples

this.data = flexpro.run('(Signal)[0, 500]')

Returns a section of the signal.

 

See Also

call Function