ほとんどどんなオシロスコープのデータでも読み込めるfunction import numpy as np import matplotlib.pyplot as plt import itertools def load_scope_data(flist, j): # This loads data from oscilloscope # It takes file name and returns data list # NaN data is ... fname1 = flist[j] for i, k, m in itertools.product(range(100) , [None, '\t', ','] , ['utf-8', 'shift-jis']): try: dat = np.loadtxt(fname1 , encoding = m , skiprows = i , delimiter= k).T except ValueError: # print(f'fail') # print(i, k, m) pass else: print(f'load successful: {fname1}') print(f'skiprows = {i}, encoding = {m}, delimiter = {k}') print(dat.shape) break num = len(dat) fig, ax ...