1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00

Adding Vm and Vrms measure for Scope example with basic signals

This commit is contained in:
Juan64Bits
2010-05-03 18:17:44 -05:00
parent 622f59856f
commit 07888ac4c4
17 changed files with 755 additions and 220 deletions

View File

@@ -4,6 +4,8 @@
#include <QtGui/QMainWindow>
#include "ADCw.h"
#define PI 3.14159265
namespace Ui
{
class MainWindow;
@@ -17,6 +19,8 @@ public:
MainWindow(QWidget *parent = 0);
~MainWindow();
bool getSign(int val){if(val<0) return 0; else return 1;}
public slots:
void updateGraph();
@@ -28,6 +32,12 @@ private:
QTimer *timer1;
ADCw *ADC1;
bool CHANNEL;
bool sign1_CH1, sign2_CH1; ;
bool sign1_CH2, sign2_CH2;
int deltaCountCH1, deltaCountCH2;
int idxCH1, idxCH2;
double valCH1[200], valCH2[200];
};
#endif // MAINWINDOW_H