Skip to content
Snippets Groups Projects
Commit 33714913 authored by jsiegle's avatar jsiegle
Browse files

Reorganizing FPGAThread to parallel IntanThread

parent 1e449666
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ DataThread::DataThread(SourceNode* s) : Thread ("Data Thread"), dataBuffer(0)
DataThread::~DataThread()
{
deleteAndZero(dataBuffer);
//deleteAndZero(dataBuffer);
}
void DataThread::run() {
......
......@@ -54,7 +54,7 @@ public:
virtual bool updateBuffer() = 0;
DataBuffer* dataBuffer;
ScopedPointer<DataBuffer> dataBuffer;
virtual bool foundInputSource() = 0;
virtual bool startAcquisition() = 0;
......
......@@ -72,8 +72,6 @@ FPGAThread::~FPGAThread() {
std::cout << "FPGA interface destroyed." << std::endl;
// probably not the best way to do this:
deleteAndZero(dataBuffer);
deleteAndZero(dev);
}
......
......@@ -37,8 +37,6 @@
/**
--UNDER CONSTRUCTION--
Communicates with the custom acquisition board via an Opal Kelly FPGA.
@see DataThread, SourceNode
......@@ -54,11 +52,9 @@ public:
FPGAThread(SourceNode* sn);
~FPGAThread();
bool foundInputSource() {return true;}
bool startAcquisition();
bool stopAcquisition();
int getNumChannels() {return 32;}
float getSampleRate() {return 25000.0;}
bool foundInputSource(); // {return true;}
int getNumChannels();// {return 32;}
float getSampleRate();// {return 25000.0;}
private:
......@@ -67,6 +63,12 @@ private:
char dll_date[32], dll_time[32];
UINT32 i;
bool initializeFPGA(okCFrontPanel*, char*);
bool closeFPGA();
bool startAcquisition();
bool stopAcquisition();
int m_u32SegmentSize;
unsigned char pBuffer[50000]; // request a 1MB block of data
......@@ -79,8 +81,7 @@ private:
int Ndatabytes;
bool updateBuffer();
bool initializeFPGA(okCFrontPanel*, char*);
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FPGAThread);
};
......
......@@ -45,7 +45,7 @@ FileReaderThread::~FileReaderThread() {
deleteAndZero(input);
deleteAndZero(dataBuffer);
//deleteAndZero(dataBuffer);
}
......
......@@ -43,7 +43,7 @@ IntanThread::IntanThread(SourceNode* sn) : DataThread(sn),
IntanThread::~IntanThread()
{
//closeUSB();
deleteAndZero(dataBuffer);
//deleteAndZero(dataBuffer);
}
int IntanThread::getNumChannels()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment