Skip to content

Instantly share code, notes, and snippets.

View crxguy52's full-sized avatar

Victor Zaccardo crxguy52

View GitHub Profile
@idt12312
idt12312 / save_as_csv.py
Last active August 7, 2025 14:59
Load waveform and save it as csv file for RIGOL MSO5000 series oscilloscope
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')