19 lines
458 B
Python
19 lines
458 B
Python
|
import sys, matplotlib
|
||
|
from pymso5000.mso5000 import MSO5000
|
||
|
|
||
|
with MSO5000(address = "172.17.99.12") as mso:
|
||
|
print(f"Identify: {mso.identify()}")
|
||
|
|
||
|
mso.set_channel_enable(0, True)
|
||
|
mso.set_channel_enable(1, True)
|
||
|
|
||
|
data = mso.query_waveform((0, 1))
|
||
|
print(data)
|
||
|
|
||
|
import matplotlib.pyplot as plt
|
||
|
plt.plot(data['x'], data['y0'], label = "Ch1")
|
||
|
plt.plot(data['x'], data['y1'], label = "Ch2")
|
||
|
plt.show()
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
pass
|