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 |
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 |
This example reads the X-unit and transfers it to the result. |