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_type
str Type of radio to create. For example, “Bluetooth”. Must match a radio name in the specified library.
- radio_name
str,optional Name to assign to the new radio. If
None, then an instance name is assigned automatically. The default isNone.- antenna_name
str,optional Name to assign to the new antenna. If
None, then an instance name is assigned automatically. The default isNone.- library
str,optional Name of the component library. If
None, then the default library is used. The default isNone.
- radio_type
- Returns:
tuple[EmitNode,EmitNode]A tuple containing the EmitNode of the created radio and antenna.
- Raises:
RuntimeErrorIf the radio or antenna creation fails.
Examples
>>> from ansys.aedt.core import Emit >>> app = Emit() >>> radio, antenna = app.schematic.create_radio_antenna("Bluetooth")