rscpi 0.1.0

Rust library for USBTMC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
import matplotlib.pyplot as plt
import numpy as np

# read binary file
data = np.fromfile('../output/data.bin', dtype=np.uint8)

print(data.shape)

# plot data
plt.plot(data)
plt.show()
plt.savefig('../output/plot.png')  # Saves the plot as a PNG file