46 #include "babymeg_global.h"
47 #include "babymegclient.h"
81 #include <Eigen/SparseCore>
93 #define MAX_DATA_LEN 2000000000L
94 #define MAX_POS 2000000000L
111 using namespace MNEX;
123 class BabyMEGProjectDialog;
132 class BABYMEGSHARED_EXPORT BabyMEG :
public ISensor
135 Q_PLUGIN_METADATA(IID
"mne_x/1.0" FILE
"babymeg.json")
139 friend class BabyMEGSetupWidget;
140 friend class BabyMEGProjectDialog;
141 friend class BabyMEGSQUIDControlDgl;
167 virtual QSharedPointer<
IPlugin> clone() const;
177 QString getFilePath(
bool currentTime = false) const;
189 virtual
void unload();
191 void showProjectDialog();
193 void showSqdCtrlDialog();
199 void splitRecordingFile();
205 void toggleRecordingFile();
208 virtual
bool start();
211 virtual
IPlugin::PluginType getType() const;
212 virtual QString getName() const;
214 virtual QWidget* setupWidget();
217 void setFiffData(QByteArray DATA);
218 void setCMDData(QByteArray DATA);
219 void setFiffGainInfo(QStringList);
228 void comFLL(QString t_sFLLControlCommand);
235 void UpdateFiffInfo();
245 void cmdConnectionChanged(
bool p_bStatus);
251 void fiffInfoAvailable();
257 void DataToSquidCtrlGUI(MatrixXf tmp);
262 void SendCMDDataToSQUIDControl(QByteArray DATA);
269 MatrixXd calibrate(const MatrixXf& data);
271 bool readProjectors();
273 bool readBadChannels();
275 void changeRecordingButton();
277 QSharedPointer<QTimer> m_pTimerRecordingChange;
278 qint16 m_iBlinkStatus;
284 void initConnector();
295 QSharedPointer<BabyMEGSQUIDControlDgl> SQUIDCtrlDlg;
297 FiffInfo::SPtr m_pFiffInfo;
298 qint32 m_iBufferSize;
302 QString m_sBabyMEGDataPath;
303 QString m_sCurrentProject;
304 QString m_sCurrentSubject;
305 QString m_sCurrentParadigm;
306 QString m_sRecordFile;
307 qint32 m_iSplitCount;
311 QString m_sFiffHeader;
312 QString m_sBadChannels;
314 SparseMatrix<
double> m_sparseMatCals;
318 QSharedPointer<RawMatrixBuffer> m_pRawMatrixBuffer;
320 QAction* m_pActionSetupProject;
321 QAction* m_pActionRecordFile;
322 QAction* m_pActionSqdCtrl;
323 QAction* m_pActionUpdateFiffInfo;
FIFF measurement file information.
The BabyMEGClient class provides a TCP/IP communication between Qt and Labview.
CircularMatrixBuffer class declaration.
The IPlugin class is the base interface class of all plugins.
The ISensor class provides an interface for a sensor plugin.
FiffInfo class declaration.
Contains the declaration of the CircularBuffer_old class.
The BabyMEGClient class provides a TCP/IP communication between Qt and Labview.
PluginOutputConnector with specified Measurement.
Contains the declaration of the NewRealTimeMultiSampleArray class.
Contains the declaration of the BabyMEGSQUIDControlDGL class.
declaration of the RtCmdClient Class.
FIFF class declaration, which provides static wrapper functions to stay consistent with mne matlab to...
Contains declaration of IIinverseAlgorithm interface class.
The RealTimeMultiSampleArrayNew class is the base class of every RealTimeMultiSampleArrayNew Measurem...