This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import visa | |
| import argparse | |
| import csv | |
| def load_waveform(chidx, points_request): | |
| inst.write(f':WAV:SOUR CHAN{chidx}') | |
| inst.write(':WAV:MODE RAW') | |
| inst.write(f':WAV:POIN {points_request}') | |
| inst.write(':WAV:FORM BYTE') |