set_frontend

Configures the input impedance, coupling, gain, and attenuation for each channel.

Setting the bandwidth is only available on Moku:Pro. Read about [how to select the bandwidth for your application](../README.md#bandwidth)

Parameters

integer required
Target channel
allowed values:
Moku:Lab1, 2
Moku:Go1, 2
Moku:Pro1, 2
Moku:Delta1, 2
string required
Impedance
allowed values:
Moku:Lab50Ohm, 1MOhm
Moku:Go1MOhm
Moku:Pro50Ohm, 1MOhm
Moku:Delta50Ohm, 1MOhm
string required
Input Coupling
allowed values:AC, DC
string
Input attenuation (required when gain is not set)
default: None
allowed values:
Moku:Lab0dB, 20dB
Moku:Go0dB, 14dB
Moku:Pro0dB, 20dB, 40dB
Moku:Delta-20dB, 0dB, 20dB, 32dB
string
Input gain (required when attenuation is not set)
default: None
allowed values:
Moku:Lab0dB, -20dB
Moku:Go0dB, -14dB
Moku:Pro0dB, -20dB, -40dB
Moku:Delta20dB, 0dB, -20dB, -32dB
string
Input bandwidth
default: 300MHz
allowed values:
Moku:Pro300MHz, 600MHz
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
    "bandwidth": "300MHz",
    "attenuation": "20dB",
    "coupling": "DC",
    "impedance": "1MOhm"
}
1
2
3
4
5
6