FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder

FlexPro Documentation 2025

flexpro.object

Creates a reference to an object in the project database.

Syntax

flexpro.object(Path)

The syntax of the flexpro.object function consists of the following elements:

Element

Description

Path

A string with the name and path in the project database of the object whose properties you want to access.

Result

An object from the flexpro.DataObject class for data objects or from the flexpro.Object class for other objects. Some properties are only available in the flexpro.DataObject class.

Availability

FlexPro Professional, Developer Suite

Examples

x = flexpro.object(r'\Data Set').data.x.value
y = np.sin(x)
this.data = flexpro.Data(value_y = y, value_x = x)

Reads the X-component from a data set in the root folder, calculates the sine function for the X-data and returns a signal with the calculated Y component and the X component

x = flexpro.object(r'\Data Set').data.x.value
ux = flexpro.object(r'\Data Set').data.x.unit
y = np.sin(x)
this.data = flexpro.Data(y, "V", x, ux)

This example reads the X-unit and transfers it to the result.

 

See Also

unit_y Property

unit_z Property