ImportedDataCollection

A collection of imported data.

Example

app = pf.GetApplication()
app:NewProject()
graph = app.CartesianGraphs:Add()

app:ImportResults(FEKO_HOME..[[/shared/Resources/Automation/SParameters.s2p]],
                              pf.Enums.ImportFileTypeEnum.Touchstone)

    -- Retrieve the newly imported data collection from the first import set
    
importedDataCollection = app.ImportedDataSets[1].ImportedData

    -- Retrieve the label of the first imported data in the collection

label = importedDataCollection[1].Label

    -- Add the first imported data in the collection to the cartesian graph
    
graph.Traces:Add(importedDataCollection[1])

Usage locations (collections)

The following objects contain the ImportedDataCollection collection:

Property List

Count
The number of ResultData items in the collection. (Read only number)
Type
The object type string. (Read only string)

Method List

Contains (label string)
Checks if the collection contains an item with the given label. (Returns a boolean object.)
Item (index number)
Returns the ResultData at the given index. (Returns a ResultData object.)
Item (label string)
Returns the ResultData with the given label. (Returns a ResultData object.)
Items ()
Returns a table of ResultData. (Returns a List of ResultData object.)
UniqueName (label string)
Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)

Index List

[number]
Returns the ResultData at the given index in the collection. (Read ResultData)
[string]
Returns the ResultData with the given name in the collection. (Read ResultData)

Property Details

Count
The number of ResultData items in the collection.
Type
number
Access
Read only
Type
The object type string.
Type
string
Access
Read only

Method Details

Contains (label string)
Checks if the collection contains an item with the given label.
Input Parameters
label(string)
The label of the ResultData.
Return
boolean
The success of the check.
Item (index number)
Returns the ResultData at the given index.
Input Parameters
index(number)
The index of the ResultData.
Return
ResultData
The ResultData at the given index.
Item (label string)
Returns the ResultData with the given label.
Input Parameters
label(string)
The label of the ResultData.
Return
ResultData
The ResultData with the given label.
Items ()
Returns a table of ResultData.
Return
List of ResultData
A table of ResultData.
UniqueName (label string)
Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.
Input Parameters
label(string)
The base name.
Return
boolean
The generated unique name label for ResultData.