ImportSet

Sets of imported data from external files.

Example

app = pf.GetApplication()
app:NewProject()

graph = app.CartesianGraphs:Add()

    -- Import S-parameter results from the specified Touchstone file
    
importSet = app:ImportResults(FEKO_HOME..[[/shared/Resources/Automation/SParameters.s2p]],
                              pf.Enums.ImportFileTypeEnum.Touchstone)

    -- Duplicate the import set and change the source file of the copied import set 
    -- to a different Touchstone file
    
importSetCopy = importSet:Duplicate()
importSetCopy.Filename = FEKO_HOME..[[/shared/Resources/Automation/SParameters.s3p]]

    -- Retrieve the result data from the import sets.
    
s2p = importSet.ImportedData[1]
s3p = importSetCopy.ImportedData[1]

    -- Plot the result data on the Cartesian graph and change the trace labels accordingly
    
s2pTrace = graph.Traces:Add(s2p)
s2pTrace.Label = "s2p"
s3pTrace = graph.Traces:Add(s3p)
s3pTrace.Label = "s3p"

Property List

Filename
The file containing the import data. Changing this property will re-import the results from the newly specified file. (Read/Write string)
Label
The object label. (Read/Write string)
Type
The object type string. (Read only string)

Collection List

ImportedData
The collection of imported data in the import set. (ImportedDataCollection of ResultData.)

Method List

Delete ()
Delete the import set.
Duplicate ()
Create a duplicate import set. (Returns a ImportSet object.)
Refresh ()
Refresh the imported data.

Property Details

Filename
The file containing the import data. Changing this property will re-import the results from the newly specified file.
Type
string
Access
Read/Write
Label
The object label.
Type
string
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only

Collection Details

ImportedData
The collection of imported data in the import set.
Type
ImportedDataCollection

Method Details

Delete ()
Delete the import set.
Duplicate ()
Create a duplicate import set.
Return
ImportSet
The duplicated import set.
Refresh ()
Refresh the imported data.