Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Igloo2-based radiation-tolerant System Board
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
DIOT Igloo2-based radiation-tolerant System Board
Commits
fdde016b
Commit
fdde016b
authored
Feb 23, 2022
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding scripts for climatic chamber tests
parent
f6df8617
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
0 deletions
+83
-0
header_csv.txt
sw/testing/header_csv.txt
+1
-0
parse_log.py
sw/testing/parse_log.py
+71
-0
run.sh
sw/testing/run.sh
+11
-0
No files found.
sw/testing/header_csv.txt
0 → 100644
View file @
fdde016b
Date,P12V_V,P12V_I,P1V2_V,P3V3_V,Amb_T,LDO_T,FPGA_T,Com_E,Flash_E,Ping_E
sw/testing/parse_log.py
0 → 100755
View file @
fdde016b
#!/usr/bin/python3
import
sys
import
pandas
as
pd
import
matplotlib.pyplot
as
plt
import
matplotlib.dates
as
mdates
from
datetime
import
datetime
import
time
import
numpy
as
np
import
datetime
as
dt
def
get_data
(
filename
):
data
=
pd
.
read_csv
(
filename
)
#convert date column to datetime type
data
[
'Date'
]
=
pd
.
to_datetime
(
data
[
'Date'
])
return
data
#####################################################
def
plot_temps
(
data
,
period
):
x
=
data
[
'Date'
]
.
dt
.
to_pydatetime
()
mask
=
data
[
'Date'
]
>=
(
data
[
'Date'
]
.
iloc
[
-
1
]
-
period
)
tstamp
=
time
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
,
time
.
gmtime
())
fig
,
ax
=
plt
.
subplots
(
3
,
2
)
fig
.
suptitle
(
'DI/OT System Board IGL (
%
s)'
%
tstamp
)
sel_cols
=
[
'Amb_T'
,
'LDO_T'
,
'FPGA_T'
]
ax
[
0
,
0
]
.
set_ylabel
(
'deg C'
)
ax
[
0
,
0
]
.
plot
(
x
[
mask
],
data
[
mask
][
sel_cols
])
ax
[
0
,
0
]
.
legend
(
sel_cols
)
sel_cols
=
[
'P12V_V'
]
ax
[
1
,
0
]
.
set_ylabel
(
'V'
)
ax
[
1
,
0
]
.
plot
(
x
[
mask
],
data
[
mask
][
sel_cols
],
scaley
=
True
)
ax
[
1
,
0
]
.
legend
(
sel_cols
)
sel_cols
=
[
'P12V_I'
]
ax
[
2
,
0
]
.
set_ylabel
(
'A'
)
ax
[
2
,
0
]
.
set_xlabel
(
'<day> <time>'
)
ax
[
2
,
0
]
.
plot
(
x
[
mask
],
data
[
mask
][
sel_cols
],
scaley
=
True
)
ax
[
2
,
0
]
.
legend
(
sel_cols
)
sel_cols
=
[
'P1V2_V'
,
'P3V3_V'
]
ax
[
0
,
1
]
.
set_ylabel
(
'V'
)
ax
[
0
,
1
]
.
plot
(
x
[
mask
],
data
[
mask
][
sel_cols
],
scaley
=
True
)
ax
[
0
,
1
]
.
legend
(
sel_cols
)
sel_cols
=
[
'Com_E'
,
'Flash_E'
,
'Ping_E'
]
ax
[
1
,
1
]
.
set_ylabel
(
'Cnt'
)
ax
[
1
,
1
]
.
plot
(
x
[
mask
],
data
[
mask
][
sel_cols
],
scaley
=
True
)
ax
[
1
,
1
]
.
legend
(
sel_cols
)
# Not used for now
ax
[
2
,
1
]
.
set_facecolor
(
'tab:gray'
)
ax
[
2
,
0
]
.
set_xlabel
(
'<day> <time>'
)
mng
=
plt
.
get_current_fig_manager
()
mng
.
resize
(
*
mng
.
window
.
maxsize
())
plt
.
show
()
#####################################################
if
len
(
sys
.
argv
)
<
3
:
print
(
"You did not specify the csv file and/or period (in minutes)"
)
sys
.
exit
()
data
=
get_data
(
sys
.
argv
[
1
])
period
=
dt
.
timedelta
(
minutes
=
int
(
sys
.
argv
[
2
]))
plot_temps
(
data
,
period
)
\ No newline at end of file
sw/testing/run.sh
0 → 100755
View file @
fdde016b
#!/bin/bash
# while [ 1 ]; do
# echo "Date:" `date +"%Y-%m-%d %H:%M:%S"`
# (cd ../tgingold/masterfip && sudo ./read-mon.sh)
# sleep 1
# done
#exctract only CSV file from the log
cat
rh-log |
grep
CSV |
sed
's/^.....//'
>
data.log
cat
header_csv.txt data.log
>
data.csv
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment