From 9ae497516fab07d2f905de2b5ad56357d7c2d0a0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 24 Mar 2021 09:59:02 +0100 Subject: romunit.pas: more verbose errors on too short pulses --- ROM.lpi | 9 +++--- ROM.lps | 101 +++++++++++++++++++++++++++++++----------------------------- romunit.pas | 4 +++ 3 files changed, 61 insertions(+), 53 deletions(-) diff --git a/ROM.lpi b/ROM.lpi index 0e77c85..43d2710 100644 --- a/ROM.lpi +++ b/ROM.lpi @@ -1,7 +1,7 @@ - + @@ -23,9 +23,10 @@ - - - + + + + diff --git a/ROM.lps b/ROM.lps index d1a363d..88fa634 100644 --- a/ROM.lps +++ b/ROM.lps @@ -1,14 +1,14 @@ - + - - + + @@ -17,8 +17,8 @@ - - + + @@ -58,124 +58,127 @@ - - + + - - + + - - + + - - + + - + - - + + - + - + - + - + - + - + - - - + + - - + + - - + + - - + + - - + - - + + - + + - + - - + + - + - + - + - + - + - - + + - - + + - + + + + + diff --git a/romunit.pas b/romunit.pas index a3289c5..613124a 100644 --- a/romunit.pas +++ b/romunit.pas @@ -300,6 +300,10 @@ begin for i:=0 to length(outPuls)-2 do if outPuls[i+1]['x']<=outPuls[i]['x'] then writeln('Der Outpuls ist nicht sortiert!'); + if length(inPuls)<2 then + writeln('Der Inpuls hat nur '+intToStr(length(inPuls))+' Datenpunkte!'); + if length(outPuls)<2 then + writeln('Der Outpuls hat nur '+intToStr(length(outPuls))+' Datenpunkte!'); // Extrema identifizieren exList[0]:=findeExtrema(inPuls,false); -- cgit v1.2.3-70-g09d2