Commit 362963d3 authored by Guillaume Blanchy's avatar Guillaume Blanchy
Browse files

small modif on test.py

Showing with 8 additions and 8 deletions
+8 -8
from ohmpi import OhmPi from ohmpi import OhmPi
import matplotlib.pyplot as plt #import matplotlib.pyplot as plt
import numpy as np import numpy as np
a = np.arange(13) + 1 a = np.arange(13) + 1
...@@ -8,10 +8,10 @@ m = a + 1 ...@@ -8,10 +8,10 @@ m = a + 1
n = a + 2 n = a + 2
seq = np.c_[a, b, m, n] seq = np.c_[a, b, m, n]
k = OhmPi(idps=True) k = OhmPi(idps=False)
k.pardict['injection_duration'] = 0.5 k.settings['injection_duration'] = 0.5
k.pardict['nb_stack'] = 1 k.settings['nb_stack'] = 1
k.pardict['nbr_meas'] = 1 k.settings['nbr_meas'] = 1
#k.sequence = seq #k.sequence = seq
#k.reset_mux() #k.reset_mux()
#k.switch_mux_on([4, 7, 5, 6]) #k.switch_mux_on([4, 7, 5, 6])
...@@ -24,15 +24,15 @@ k.pardict['nbr_meas'] = 1 ...@@ -24,15 +24,15 @@ k.pardict['nbr_meas'] = 1
#k.rs_check(tx_volt=12) #k.rs_check(tx_volt=12)
# x = [] # x = []
for i in range(5): for i in range(1):
out = k.run_measurement(injection_duration=0.5, nb_stack=5, strategy='vmin', tx_volt=5, autogain=True) out = k.run_measurement(injection_duration=0.5, nb_stack=1, strategy='vmin', tx_volt=5, autogain=True)
#x.append(out['R [ohm]']) #x.append(out['R [ohm]'])
k.append_and_save('out.csv', out) k.append_and_save('out.csv', out)
data = out['fulldata'] data = out['fulldata']
inan = ~np.isnan(data[:,0]) inan = ~np.isnan(data[:,0])
if True: if False:
fig, axs = plt.subplots(2, 1, sharex=True) fig, axs = plt.subplots(2, 1, sharex=True)
ax = axs[0] ax = axs[0]
ax.plot(data[inan,2], data[inan,0], 'r.-', label='current [mA]') ax.plot(data[inan,2], data[inan,0], 'r.-', label='current [mA]')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment