 | ITuningGetResult Method (ResultDataType, Int32, Int32, Int32, Int32) |
Returns a result of the specified type for specified pair of ports and a pair of modes.
The result data is in a form of two-dimensional double array, where first dimension
is the number of frequency points and the second dimension is 3.
First column of the array is frequency data in GHz for each frequency point of simulation.
The second and the third columns are real and imaginary parts of scattering parameters
respectively.
Namespace:
EMInvent.InventSim.COMServer
Assembly:
InventSim (in InventSim.exe) Version: 5.1.12.6+develop
SyntaxObject GetResult(
ResultDataType dataType,
int port1,
int port2,
int mode1,
int mode2
)
Function GetResult (
dataType As ResultDataType,
port1 As Integer,
port2 As Integer,
mode1 As Integer,
mode2 As Integer
) As Object
Dim instance As ITuning
Dim dataType As ResultDataType
Dim port1 As Integer
Dim port2 As Integer
Dim mode1 As Integer
Dim mode2 As Integer
Dim returnValue As Object
returnValue = instance.GetResult(dataType,
port1, port2, mode1, mode2)
Parameters
- dataType
- Type: EMInvent.InventSim.SimulatorResultDataType
Data type of the result i.e. scattering, impedance or admittance. - port1
- Type: SystemInt32
First port index of scattering parameter. - port2
- Type: SystemInt32
Second port index of scattering parameter. - mode1
- Type: SystemInt32
Mode index at the first port. - mode2
- Type: SystemInt32
Mode index at the second port.
Return Value
Type:
ObjectDouble array with simulation result.
Examples
double[,] result = app.ActiveProject.Simulation.GetResult(ResultDataType.Scattering, 2, 1, 1, 1);
See Also