mhs5200_set_offset
Set the DC offset for a signal generator channel by specifying a percentage of half the peak-to-peak amplitude (Vpp/2). Allowed range is -120 to +120, where 0 centers the signal.
Instructions
Set the DC offset for a channel.
The offset is specified as a percentage of half the peak-to-peak amplitude (Vpp/2). For example, with a 5Vpp signal: - offset_percent = 100 shifts the signal by +2.5V - offset_percent = -120 shifts the signal by -3.0V
Formula: DC offset voltage = (Vpp / 2) × (offset_percent / 100)
Args: params: Offset parameters containing: - channel (1 or 2): Target channel - offset_percent (float): Offset as percentage of Vpp/2 (-120 to +120, 0 is center)
Returns: JSON confirming the new offset setting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |