Ofdm#
SCPI Commands :
- [SOURce<HW>]:BB:OFDM:ACPLength
- [SOURce<HW>]:BB:OFDM:ACPSymbols
- [SOURce<HW>]:BB:OFDM:BWOCcupied
- [SOURce<HW>]:BB:OFDM:CPSYmbols
- [SOURce<HW>]:BB:OFDM:DCMode
- [SOURce<HW>]:BB:OFDM:LGUard
- [SOURce<HW>]:BB:OFDM:MODulation
- [SOURce<HW>]:BB:OFDM:NALLoc
- [SOURce<HW>]:BB:OFDM:NOCCupied
- [SOURce<HW>]:BB:OFDM:NSUBcarriers
- [SOURce<HW>]:BB:OFDM:OUTPath
- [SOURce<HW>]:BB:OFDM:PRESet
- [SOURce<HW>]:BB:OFDM:RGUard
- [SOURce<HW>]:BB:OFDM:SAMPling
- [SOURce<HW>]:BB:OFDM:SCSPace
- [SOURce<HW>]:BB:OFDM:SEQLength
- [SOURce<HW>]:BB:OFDM:STATe
- [SOURce<HW>]:BB:OFDM:SUBCarriers
- Commands in total: 114Subgroups: 16Direct child commands: 18
- get_acp_length ( ) int
- set_acp_length ( cp_length: int ) None
# [SOURce<HW>]:BB:OFDM:ACPLength # get: value: int = driver.source.bb.ofdm.get_acp_length() # set: driver.source.bb.ofdm.set_acp_length(cp_length = 1)
For f-OFDM/OFDM, enables additional alternative CP.
- Parameters:
cp_length – integer
- get_acp_symbols ( ) int
- set_acp_symbols ( cp_symbols: int ) None
# [SOURce<HW>]:BB:OFDM:ACPSymbols # get: value: int = driver.source.bb.ofdm.get_acp_symbols() # set: driver.source.bb.ofdm.set_acp_symbols(cp_symbols = 1)
For f-OFDM/OFDM, defines number of symbols on that the cyclic prefix/the alternative cyclic prefix is applied.
- Parameters:
cp_symbols – integer
- get_bw_occupied ( ) float
# [SOURce<HW>]:BB:OFDM:BWOCcupied value: float = driver.source.bb.ofdm.get_bw_occupied()Queries the occupied bandwidth.
- Returns:
occ_bw: float
- get_cp_symbols ( ) int
- set_cp_symbols ( cp_symbols: int ) None
# [SOURce<HW>]:BB:OFDM:CPSYmbols # get: value: int = driver.source.bb.ofdm.get_cp_symbols() # set: driver.source.bb.ofdm.set_cp_symbols(cp_symbols = 1)
For f-OFDM/OFDM, defines number of symbols on that the cyclic prefix/the alternative cyclic prefix is applied.
- Parameters:
cp_symbols – integer
- get_dc_mode ( ) C5GdcMode
- set_dc_mode ( dc_mode: C5GdcMode ) None
# [SOURce<HW>]:BB:OFDM:DCMode # get: value: enums.C5GdcMode = driver.source.bb.ofdm.get_dc_mode() # set: driver.source.bb.ofdm.set_dc_mode(dc_mode = enums.C5GdcMode.PUNC)
Sets the DC subcarrier mode.
- Parameters:
dc_mode – UTIL | PUNC | SKIP
UTIL: Uses the DC subcarrier for all allocations.
PUNC: Replaces the DC subcarrier by zeroes for all allocations.
SKIP: Skips the DC subcarrier in the discrete Fourier transformation (DFT) .
- get_lguard ( ) int
# [SOURce<HW>]:BB:OFDM:LGUard value: int = driver.source.bb.ofdm.get_lguard()Queries the number of left guard subcarriers.
- Returns:
left_guard_sc: integer
- get_modulation ( ) C5Gmod
- set_modulation ( mod_type: C5Gmod ) None
# [SOURce<HW>]:BB:OFDM:MODulation # get: value: enums.C5Gmod = driver.source.bb.ofdm.get_modulation() # set: driver.source.bb.ofdm.set_modulation(mod_type = enums.C5Gmod.FBMC)
Selects the modulation type.
- Parameters:
mod_type – UFMC | FBMC | GFDM | FOFDm | OFDM
UFMC: Universal Filtered Multi-Carrier modulation, see ‘UFMC’.
FBMC: Filter Bank Multi-Carrier modulation, see ‘FBMC’.
GFDM: Generalized Frequency Division Multiplexing, see ‘GFDM’.
FOFDm: Filtered-OFDM modulation, see ‘f-OFDM’.
OFDM: Orthogonal Frequency-Division Multiplexing modulation, see ‘OFDM’.
- get_nalloc ( ) int
- set_nalloc ( no_of_alloc: int ) None
# [SOURce<HW>]:BB:OFDM:NALLoc # get: value: int = driver.source.bb.ofdm.get_nalloc() # set: driver.source.bb.ofdm.set_nalloc(no_of_alloc = 1)
Sets the number of scheduled allocations.
- Parameters:
no_of_alloc – integer
- get_noccupied ( ) int
- set_noccupied ( num_occ_sc: int ) None
# [SOURce<HW>]:BB:OFDM:NOCCupied # get: value: int = driver.source.bb.ofdm.get_noccupied() # set: driver.source.bb.ofdm.set_noccupied(num_occ_sc = 1)
Sets the number of occupied subcarriers.
- Parameters:
num_occ_sc – integer
- get_nsubcarriers ( ) int
- set_nsubcarriers ( no_of_sub_carr: int ) None
# [SOURce<HW>]:BB:OFDM:NSUBcarriers # get: value: int = driver.source.bb.ofdm.get_nsubcarriers() # set: driver.source.bb.ofdm.set_nsubcarriers(no_of_sub_carr = 1)
Sets the number of available subcarriers.
- Parameters:
no_of_sub_carr – integer
- get_out_path ( ) str
- set_out_path ( k_114_output_path: str ) None
# [SOURce<HW>]:BB:OFDM:OUTPath # get: value: str = driver.source.bb.ofdm.get_out_path() # set: driver.source.bb.ofdm.set_out_path(k_114_output_path = 'abc')
Specifies the output path and output file of the exported OFDM signal generation settings. By default, the output path is /var/user/K114-Export and the output file is Exported_K114_settings_K96.xml. See also Example ‘Default Exported_K114_settings_K96.xml file’.
- Parameters:
k_114_output_path – string
- preset ( ) None
- preset_with_opc ( opc_timeout_ms: int = -1 ) None
# [SOURce<HW>]:BB:OFDM:PRESet driver.source.bb.ofdm.preset() driver.source.bb.ofdm.preset_with_opc(opc_timeout_ms = 3000)Sets the parameters of the digital standard to their default values (
*RSTvalues specified for the commands) . Not affected is the state set with the command SOURce<hw>:BB:OFDM:STATe.preset_with_opc()does the same aspreset(), but waits for the operation to complete before continuing further. Use theRsSmbv.utilities.opc_timeoutto set the timeout value.- Parameters:
opc_timeout_ms – Maximum time to wait in milliseconds, valid only for this call.
- get_rguard ( ) int
# [SOURce<HW>]:BB:OFDM:RGUard value: int = driver.source.bb.ofdm.get_rguard()Queries the number of right guard subcarriers.
- Returns:
right_guard_sc: integer
- get_sampling ( ) float
# [SOURce<HW>]:BB:OFDM:SAMPling value: float = driver.source.bb.ofdm.get_sampling()Queries the sampling rate.
- Returns:
samp_rate: float
- get_sc_space ( ) float
- set_sc_space ( sub_car_sp: float ) None
# [SOURce<HW>]:BB:OFDM:SCSPace # get: value: float = driver.source.bb.ofdm.get_sc_space() # set: driver.source.bb.ofdm.set_sc_space(sub_car_sp = 1.0)
Sets the frequency distance between the carrier frequencies of the subcarriers.
- Parameters:
sub_car_sp – float
- get_seq_length ( ) int
- set_seq_length ( seq_len: int ) None
# [SOURce<HW>]:BB:OFDM:SEQLength # get: value: int = driver.source.bb.ofdm.get_seq_length() # set: driver.source.bb.ofdm.set_seq_length(seq_len = 1)
Sets the sequence length of the signal in number of symbols.
- Parameters:
seq_len – integer
- get_state ( ) bool
- set_state ( state: bool ) None
# [SOURce<HW>]:BB:OFDM:STATe # get: value: bool = driver.source.bb.ofdm.get_state() # set: driver.source.bb.ofdm.set_state(state = False)
Activates the standard.
- Parameters:
state – 1 | ON | 0| OFF
- get_subcarriers ( ) int
# [SOURce<HW>]:BB:OFDM:SUBCarriers value: int = driver.source.bb.ofdm.get_subcarriers()Queries the number of subcarriers per subband.
- Returns:
subc_per_subband: integer
Cloning the Group
# Create a copy of the original group, that exists independently
ofdm_copy = driver.source.bb.ofdm.clone()
Subgroups