You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 KiB
26 KiB
None
<html>
<head>
</head>
</html>
In [4]:
import time
import numpy as np
import tclab
In [ ]:
In [17]:
n = 300
t = np.linspace(0,n-1,n)
T1 = np.empty_like(t)
with tclab.TCLab() as lab:
lab.Q1(40)
for i in range(n):
T1[i] = lab.T1
print(T1[i])
time.sleep(1)
In [18]:
import matplotlib.pyplot as plt
plt.plot(T1, '.r')
plt.show()
In [21]:
import pandas as pd
DF = pd.DataFrame(T1)
DF.to_csv("data.csv", index=False)