Skip to content

DataTable#

A data table containing all data acquired during project execution


property ColumnCount#

Gets the count of the columns in the data table.

There is one column for each parameter in a test. The content is equivalent to the result view of a test in Measmatic test UI.

Returns#

Type Description
int The count of the columns in the data table.

Example#

Prints out the column count for every test of a data export

for test in data_export.Tests:
    data_table = test.DataTable
    print(data_table.ColumnCount)


property LastMeasurementIndex#

Gets the index of the measurement run for which the last data was recorded in this data table.

Available since Measmatic 2.3.27

Returns#

Type Description
int The index of the measurement run for which the last data was recorded in this data table.

property RowCount#

Gets the count of the rows in the data table.

Usually there is one row for each test run. There might also be test which write multiple rows during on run.

Returns#

Type Description
int The count of the rows in the data table.

Example#

Prints out the row count for every test of a data export

for test in data_export.Tests:
    data_table = test.DataTable
    print(data_table.RowCount)


method GetParameter(parameterIndex: int)#

Returns the test parameter with the specified index.

Raises an error if there is no parameter for the given index.

Parameters#

Name Description
parameterIndex The index of the parameter.

Returns#

Type Description
{{T:Atv.Measmatic.Python.Proxies.PyProxyTestParameter}} The test parameter.

method GetParameterCaption(parameterIndex: int)#

Returns the caption of the test parameter with the specified index.

Raises an error if there is no parameter for the given index.

Parameters#

Name Description
parameterIndex The index of the parameter.

Returns#

Type Description
string The caption of the test parameter.

method GetRow(rowIndex: int)#

Returns the row of the data table with the specified index.

Parameters#

Name Description
rowIndex The index of the row.

Returns#

Type Description
DataTableRow The data table row.