create_radio_antenna#
- EmitComponents.create_radio_antenna(radio_type: str, radio_name: str = None, antenna_name: str = None, library: str = None) tuple[EmitComponent, EmitComponent]#
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, the syslib is used. The default isNone.
- radio_type
- Returns:
EmitComponentThe newly created radio.
EmitComponentThe newly created antenna.
References
>>> oEditor.CreateComponent