mhs5200_upload_arb_waveform
Upload a custom arbitrary waveform to the signal generator memory. Specify a memory slot (0-15) and a file with 2048 samples (each 0-4095) in JSON or text format.
Instructions
Upload custom arbitrary waveform data to device memory.
The waveform data must contain exactly 2048 samples, each an integer from 0 to 4095 (12-bit resolution). 2048 is the midpoint (zero crossing).
Args: params: Upload parameters containing: - arb_index (int): Memory slot (0-15, corresponds to ARB00-ARB15) - filepath (str): Path to data file JSON format: [0, 100, 200, ...] Text format: one integer per line
Returns: JSON confirming upload success with slot number and sample count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |