UHD System
- class UsrpSystem(*args, **kwargs)
Bases:
PhysicalScenario
[UsrpDevice
],Serializable
Scenario of USRPs running the UHD server application.
- Parameters
seed (int, optional) – Random seed used to initialize the pseudo-random number generator.
- yaml_tag: Optional[str] = 'UsrpSystem'
YAML serialization tag
- new_device(*args, **kwargs)
Create a new UHD device managed by the system.
- Parameters
parameters. (Device initialization) –
to (Refer) – class:.UsrpDevice for further details.
Returns: A handle to the initialized device.
- Return type
- add_device(device)
Register an existing UHD device to be managed by the system.
- Parameters
device (UsrpDevice) – The device to be added.
- Return type
None
UHD Device
- class UsrpDevice(ip, port=5555, carrier_frequency=700000000.0, tx_gain=0.0, rx_gain=0.0, *args, **kwargs)
Bases:
PhysicalDevice
,Serializable
- Parameters
*args – Device base class initialization parameters.
**kwargs – Device base class initialization parameters.
- yaml_tag: Optional[str] = 'USRP'
YAML serialization tag
- property_blacklist: Set[str] = {'topology', 'velocity', 'wavelength'}
Set of properties to be ignored during serialization.
- trigger()
Trigger the device.
- Return type
None
- property ip: str
Internet protocol address of the remote host.
- Return type
str
- Returns
IP adress.
- property port: int
Internet protocol port of the remote host.
- Return type
int
- Returns
Port.
- property tx_gain: float
- Return type
float
- property rx_gain: float
- Return type
float
- property sampling_rate: float
Sampling rate at which the device’s analog-to-digital converters operate.
- Returns
Sampling rate in Hz.
- Return type
sampling_rate (float)
- Raises
ValueError – If the sampling rate is not greater than zero.
- property max_sampling_rate: float
Maximal device sampling rate.
Returns: The samplin rate in Hz.
- Return type
float
- property carrier_frequency: float
Central frequency of the device’s emissions in the RF-band.
- Returns
Carrier frequency in Hz.
- Return type
frequency (float)
- Raises
ValueError – On negative carrier frequencies.