leeres plottyfile wirft exception

This commit is contained in:
Tristan Krause 2019-06-07 11:02:46 +02:00
parent 198feef12f
commit 22a5b466db
7 changed files with 492 additions and 1 deletions

View file

@ -103,6 +103,7 @@ void kennlinieZweiterQuadrant()
if(ba[k] > bb[k] && bb[k] % 50 == 0 && bb[k] != 0)
{
uint16_t i_d = ba[k] - bb[k];
std::cout << "added" << std::endl;
pf.addDot(Dot(u_gs, i_d, bb[k] / 50));
}
curve++;

View file

@ -3,6 +3,11 @@
#include <b15f/b15f.h>
#include <b15f/plottyfile.h>
/*
* Inkrementiert DAC 0 von 0 bis 1023 und speichert zu jeder Ausgabe den Wert von ADC 0 in einem Puffer.
* Die Funktion ADC 0 abhängig von DAC 0 wird als Graph geplottet.
*/
const char PLOT_FILE[] = "plot.bin";
int main()