Attenuation

SCPI Commands

ROUTe:ATTenuation
class Attenuation[source]

Attenuation commands group definition. 1 total commands, 0 Sub-groups, 1 group commands

get(channel_list: str) List[int][source]
# SCPI: ROUTe:ATTenuation
value: List[int] = driver.route.attenuation.get(channel_list = r1)

Sets or queries the level of attenuation, if a step attenuator is available in the module, for example in the R&S OSP-B171H and in the R&S OSP-B157WN. Also, you can control attenuators by the standard command method RsOsp.Route.Close. set, allowing joint control of attenuators and relays, and saving their target states in joint path definitions. Similar to method RsOsp.Route.Close.set, the parameter <channel list> uses the following syntax:

INTRO_CMD_HELP: (@FxxMyy(sssee) )

  • xx = 01, 02, 03,…,99 (frame ID in, e.g., switch unit name F01)

  • yy = 01, 02, 03,…,20 (module ID in, e.g., slot position M02)

  • sss = 000 … n (state of the attenuator to be controlled in a module)

  • ee = 01 … m (element number of the attenuator to be controlled)

For example, in the R&S OSP-B171H:

INTRO_CMD_HELP: (@FxxMyy(sssee) )

  • sss = 000 … 015 (attenuator steps)

  • ee = 01 … 02 (attenuator number in module version .42) ee = 01 … 04 (attenuator number in module version .44)

Note that in the string ‘sss’, you can omit leading zeros.

param channel_list

Channel list string as described above, selecting a module and attenuator and specifying the attenuation level to be set. The query also requires the element number ‘ee’, but it ignores the state information ‘sss’. You can submit the value of ‘sss’ as 000 (or any arbitrary 3-digit value) , or you can omit it, entering only ee. The range and interpretation of the state value sss depends on the specific attenuator used in the module. For details, refer to the module description.

return

attenuation_list: No help available

get_multiple_channels(channels: List[str]) List[int][source]

ROUTe:ATTenuation

Same as get_single_channel(), but for multiple channels.

param channels

Example value (without quotes): [‘F01M03(0002)’, ‘F01M04(0003)’]

get_single_channel(channel: str) List[int][source]

ROUTe:ATTenuation

Same as get(), but you do not need to enter round brackets or the ‘@’ character.

param channel

example value (without quotes): ‘F01M03(0001,0002,0003,0004)’

set(channel_list: str) None[source]
# SCPI: ROUTe:ATTenuation
driver.route.attenuation.set(channel_list = r1)

Sets or queries the level of attenuation, if a step attenuator is available in the module, for example in the R&S OSP-B171H and in the R&S OSP-B157WN. Also, you can control attenuators by the standard command method RsOsp.Route.Close. set, allowing joint control of attenuators and relays, and saving their target states in joint path definitions. Similar to method RsOsp.Route.Close.set, the parameter <channel list> uses the following syntax:

INTRO_CMD_HELP: (@FxxMyy(sssee) )

  • xx = 01, 02, 03,…,99 (frame ID in, e.g., switch unit name F01)

  • yy = 01, 02, 03,…,20 (module ID in, e.g., slot position M02)

  • sss = 000 … n (state of the attenuator to be controlled in a module)

  • ee = 01 … m (element number of the attenuator to be controlled)

For example, in the R&S OSP-B171H:

INTRO_CMD_HELP: (@FxxMyy(sssee) )

  • sss = 000 … 015 (attenuator steps)

  • ee = 01 … 02 (attenuator number in module version .42) ee = 01 … 04 (attenuator number in module version .44)

Note that in the string ‘sss’, you can omit leading zeros.

param channel_list

Channel list string as described above, selecting a module and attenuator and specifying the attenuation level to be set. The query also requires the element number ‘ee’, but it ignores the state information ‘sss’. You can submit the value of ‘sss’ as 000 (or any arbitrary 3-digit value) , or you can omit it, entering only ee. The range and interpretation of the state value sss depends on the specific attenuator used in the module. For details, refer to the module description.

set_multiple_channels(channels: List[str]) None[source]

ROUTe:ATTenuation

Same as set_single_channel(), but for multiple channels

Parameters

channels – example value (without quotes): [‘F01M01(0301)’, ‘F02M03(0101)’]

set_single_channel(channel: str) None[source]

ROUTe:ATTenuation

Same as set(), but you do not need to enter round brackets or the ‘@’ character.

Parameters

channel – example value (without quotes): ‘F02M03(0101)’