Skip to content
Snippets Groups Projects
Commit bbe45d6d authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

TLM Works!

parent 1601b305
Branches
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -396,7 +396,7 @@ def tlm_final(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3
#check if file name exists
i=1
while os.path.exists(path):
file_name = field_name+"_TLM_"+str(j+1)+"_"str(i)+".txt"
file_name = field_name+"_TLM_"+str(j+1)+"_"+str(i)+".txt"
path= os.path.join(location,file_name)
i=i+1
else:
......@@ -408,7 +408,7 @@ def tlm_final(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3
#check if file name exists
i=1
while os.path.exists(path):
file_name = field_name+"_CTLM_"+str(j+1)+"_"str(i)+".txt"
file_name = field_name+"_CTLM_"+str(j+1)+"_"+str(i)+".txt"
path= os.path.join(location,file_name)
i=i+1
......@@ -422,7 +422,7 @@ def tlm_final(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3
#export to csv for evaluataion
if(innen==0):
if innen==0:
#specify path and file_name
file_name = field_name+"_TLM_"+str(j+1)+".csv"
location =r"\\fileserver.cst.rwth-aachen.de\public\Datentransfer\Asonitis, Alexandros"
......@@ -431,7 +431,7 @@ def tlm_final(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3
#check if file name exists
i=1
while os.path.exists(path):
file_name = field_name+"_TLM_"+str(j+1)+"_"str(i)+".csv"
file_name = field_name+"_TLM_"+str(j+1)+"_"+str(i)+".csv"
path= os.path.join(location,file_name)
i=i+1
else:
......@@ -443,7 +443,7 @@ def tlm_final(field_name ='M00',start=-50*10**(-3),stop=50*10**(-3),step=10**(-3
#check if file name exists
i=1
while os.path.exists(path):
file_name = field_name+"_CTLM_"+str(j+1)+"_"str(i)+".csv"
file_name = field_name+"_CTLM_"+str(j+1)+"_"+str(i)+".csv"
path= os.path.join(location,file_name)
i=i+1
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
%% Cell type:code id:b0bb5705-6d95-44b2-9ef9-83e6b45ba8c6 tags:
``` python
import measurements
from measurements import *
tlm_final()
```
%% Output
C:\Users\user\labcode\hp4155\measurements.py:378: UserWarning: The figure layout has changed to tight
fig.tight_layout()
Voltage(V) Current(A) Resistance(Ohm)
0 0.978464 -0.050 2.080
1 0.980544 -0.049 1.630
2 0.981724 -0.048 1.799
3 0.984142 -0.047 0.686
4 0.983096 -0.046 0.828
.. ... ... ...
96 1.223726 0.046 2.576
97 1.227614 0.047 2.853
98 1.229432 0.048 1.648
99 1.230910 0.049 2.046
100 1.233524 0.050 2.614
[101 rows x 3 columns]
Press enter to continue or anything else to stop the programm: a
An exception has occurred, use %tb to see the full traceback.
SystemExit
C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\IPython\core\interactiveshell.py:3516: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
%% Cell type:code id:67adfae9-ea78-4934-a782-b27592b37d46 tags:
``` python
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment