create_radio_antenna#

EmitSchematic.create_radio_antenna(radio_type: str, radio_name: str = None, antenna_name: str = None, library: str = None) tuple[EmitNode, EmitNode]#

Create a new radio and antenna and connect them.

Parameters:
radio_typestr

Type of radio to create. For example, “Bluetooth”. Must match a radio name in the specified library.

radio_namestr, optional

Name to assign to the new radio. If None, then an instance name is assigned automatically. The default is None.

antenna_namestr, optional

Name to assign to the new antenna. If None, then an instance name is assigned automatically. The default is None.

librarystr, optional

Name of the component library. If None, then the default library is used. The default is None.

Returns:
tuple[EmitNode, EmitNode]

A tuple containing the EmitNode of the created radio and antenna.

Raises:
RuntimeError

If the radio or antenna creation fails.

Examples

>>> from ansys.aedt.core import Emit
>>> app = Emit()
>>> radio, antenna = app.schematic.create_radio_antenna("Bluetooth")