CablePort

A cable port is created on a cable harness schematic.

Example

app = cf.GetApplication()
project = app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Cables.cfx]])

    -- Add a voltageSource with a magnitude of 1, 50 Ohm impedance and zero phase

cableHarness = project.Cables.Harnesses["CableHarness1"]
terminal1 = cableHarness.Connectors["CableConnector1"].Pins["Pin2"].Terminal
terminal2 = cableHarness.Connectors["CableConnector2"].Pins["Pin1"].Terminal
port2 = project.Ports:AddCablePort(cableHarness, terminal1, terminal2)
standardConfiguration1 = project.SolutionConfigurations["StandardConfiguration1"]
voltageSource1 = standardConfiguration1.Sources:AddVoltageSource(port2)

    -- Change and existing voltageSource's impedance

voltageSource1.Impedance = 75

Inheritance

The CablePort object is derived from the Port object.

Property List

Faulty
True if the port is faulty. (Read only boolean)
Harness
The cable harness. (Read/Write CableHarness)
Label
The port label. (Read/Write string)
Suspect
True if the port is suspect. (Read only boolean)
Terminal
The port terminal. (Read only Terminal)
Type
The object type string. (Read only string)
Visible
Specifies whether the port must be shown or hidden. (Read/Write boolean)

Method List

Delete ()
Delete the port.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

Property Details

Faulty
True if the port is faulty.
Type
boolean
Access
Read only
Harness
The cable harness.
Type
CableHarness
Access
Read/Write
Label
The port label.
Type
string
Access
Read/Write
Suspect
True if the port is suspect.
Type
boolean
Access
Read only
Terminal
The port terminal.
Type
Terminal
Access
Read only
Type
The object type string.
Type
string
Access
Read only
Visible
Specifies whether the port must be shown or hidden.
Type
boolean
Access
Read/Write

Method Details

Delete ()
Delete the port.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A properties table.
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(table)
A table of properties defining the new state of the object.

Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
The default properties table.