RawDataFiles changed, start of tab
This commit is contained in:
parent
a35e1a8adf
commit
7cc7533214
BIN
Code-C/main
BIN
Code-C/main
Binary file not shown.
|
@ -57,7 +57,7 @@ void *threadCalculBoth(void *vargp){
|
||||||
fileName = queueGetTabChar(rawDataQueue);
|
fileName = queueGetTabChar(rawDataQueue);
|
||||||
power(fileName,nRow,nCol,period,invTimeBandWidth);
|
power(fileName,nRow,nCol,period,invTimeBandWidth);
|
||||||
average(fileName,nRow,nCol);
|
average(fileName,nRow,nCol);
|
||||||
remove(fileName);
|
//remove(fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,53 +3,34 @@ import numpy as np
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import struct
|
import struct
|
||||||
import csv
|
import csv
|
||||||
import sys
|
|
||||||
|
|
||||||
#"C:\Users\quent\OneDrive\Bureau\ENSC\TransD\Framboisier\02400001.TXT"
|
#"C:\Users\quent\OneDrive\Bureau\ENSC\TransD\Framboisier\02400001.TXT"
|
||||||
#! /usr/bin/env python3
|
#! /usr/bin/env python3
|
||||||
# -*- coding: UTF-8 -*-
|
# -*- coding: UTF-8 -*-
|
||||||
|
|
||||||
csv_reader1 = csv.reader(open('./RawDataFiles/RawData1.csv')) #Ouvre le fichier .csv
|
csv_reader1 = csv.reader(open('../RawDataFiles/RawData1.csv')) #Ouvre le fichier .csv
|
||||||
# bigx = float(-sys.maxsize-1)
|
|
||||||
# bigy = float(-sys.maxsize-1)
|
|
||||||
# smallx = float(sys.maxsize)
|
|
||||||
# smally = float(sys.maxsize)
|
|
||||||
capteurs = []
|
capteurs = []
|
||||||
|
|
||||||
# for ligne in csv_reader1:
|
for ligne in csv_reader1:
|
||||||
# capteurs.append(ligne)
|
capteurs.append(ligne)
|
||||||
# if float(ligne[0]) > bigx:
|
|
||||||
# bigx = float(ligne[0])
|
|
||||||
# if float(ligne[1]) > bigy:
|
|
||||||
# bigy = float(ligne[1])
|
|
||||||
# if float(ligne[0]) < smallx:
|
|
||||||
# smallx = float(ligne[0])
|
|
||||||
# if float(ligne[1]) < smally:
|
|
||||||
# smally = float(ligne[1])
|
|
||||||
|
|
||||||
# capteurs.sort()
|
x = []
|
||||||
x_arr = []
|
y = []
|
||||||
y_arr = []
|
|
||||||
|
|
||||||
for capteur in capteurs:
|
for capteur in capteurs:
|
||||||
x_arr.append(capteur[0])
|
x.append(capteur[0])
|
||||||
y_arr.append(capteur[1])
|
y.append(capteur[1])
|
||||||
|
|
||||||
fig1 = plt.figure(1, figsize = (5.91, 2.758))
|
# fig1, (ax1, ax2) = plt.subplots(2, 1)
|
||||||
ax1 = plt.axes()
|
# fig1 = plt.figure(1, figsize = (5.91, 2.758))
|
||||||
# fig2 = plt.figure(1, figsize = (5.91, 2.758))
|
# ax1 = fig1
|
||||||
# fig3 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig4 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig5 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig6 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig7 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig8 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig9 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
# fig10 = plt.figure(1, figsize = (5.91, 2.758))
|
|
||||||
|
|
||||||
ax1.set_xlabel('Temps')
|
np.empty([8, 500])
|
||||||
ax1.set_ylabel('Tension')
|
np.array([[]])
|
||||||
ax1.title("Données tableau 1")
|
|
||||||
ax1.plot(x_arr, y_arr, color = 'r')
|
|
||||||
|
|
||||||
plt.show() #Affiche le tableau à l'écran
|
plt.xlabel('Temps')
|
||||||
|
plt.ylabel('Tension')
|
||||||
|
plt.title("Données tableau 1")
|
||||||
|
plt.plot(x, y, color = 'r')
|
||||||
|
|
||||||
|
plt.show() #Affichage du plot
|
Loading…
Reference in a new issue