plotty cleanup

This commit is contained in:
Tristan Krause 2019-05-16 10:07:27 +02:00
parent 4072550994
commit 4966256418
6 changed files with 15 additions and 35 deletions

View file

@ -1,5 +1,5 @@
# Name: Makefile
# Project: B15F (board15 Famulus Edition)
# Project: B15F (Board 15 Famulus Edition)
# Author: Tristan Krause
# Creation Date: 2019-03-22
@ -17,8 +17,9 @@ PATH_TMP_LIB = ../lib/
# outputs
OUT_TMP_DRV = $(PATH_TMP_LIB)/libb15fdrv.so
OUT_TMP_CLI = $(PATH_TMP_BIN)/cli.elf
OUT_DRV = $(PATH_LIB)/libb15fdrv.so
OUT_TMP_CLI = $(PATH_TMP_BIN)/cli.elf
OUT_DRV = $(PATH_LIB)/libb15fdrv.so
OUT_PLOTTY = $(PATH_TMP_BIN)/plotty
# compiling & linking parameters
CFLAGS = -std=c++17 -O3 -Wall -Wextra -fPIC
@ -47,7 +48,7 @@ cli: drv $(OBJECTS_CLI)
install: drv
@echo "Installing driver..."
@mkdir -p $(PATH_INCLUDE)
cp plotty $(PATH_BIN)
cp $(OUT_PLOTTY) $(PATH_BIN)
cp $(OUT_TMP_DRV) $(PATH_LIB)
cp drv/*.h $(PATH_INCLUDE)

View file

@ -1,21 +0,0 @@
set margin 10,10
unset key
set grid
set title ''
set xlabel 'U_{DS} [V]'
set ylabel 'I_D [mA]'
set xrange [0:5]
set yrange [0:50]
set label at 4,2 'U_{GS} [V] = 440' left
set label at 4,4 'U_{GS} [V] = 460' left
set label at 4,7 'U_{GS} [V] = 480' left
set label at 3,14 'U_{GS} [V] = 500' left
set label at 2,22 'U_{GS} [V] = 520' left
set label at 1,33 'U_{GS} [V] = 540' left
set label at 0,38 'U_{GS} [V] = 560' left
set label at 0,38 'U_{GS} [V] = 580' left
set label at 0,38 'U_{GS} [V] = 600' left
unset output
set terminal qt
unset output
plot "/tmp/tempfile0" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 440' w l,"/tmp/tempfile1" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 460' w l,"/tmp/tempfile2" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 480' w l,"/tmp/tempfile3" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 500' w l,"/tmp/tempfile4" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 520' w l,"/tmp/tempfile5" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 540' w l,"/tmp/tempfile6" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 560' w l,"/tmp/tempfile7" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 580' w l,"/tmp/tempfile8" using ($1*0.004888):($2*0.048876) binary format="%int16%int16" endian=big title 'U_{GS} [V] = 600' w l

Binary file not shown.

Binary file not shown.

Binary file not shown.