LXDeviceAPI

Definition

 

int GetEEGRefElectrode_LXDeviceAPI(int device_handling_id , int * eeg_refelectrode);

Parameters

Parameter Available Value Description
int device_handling_id
  • return value of OpenDevice
int * eeg_refelectrode
  • 0 : A1
  • 1 : A2
  • 2 : A1,A2
  • 3 : Cz (ch18)
Retrieving the selected EEG reference electrode. Cz is available only if EEG Cap is introduced.

Return Values

Return  meaning Description
 1  Success
 -3  Fail. No device(correspond to int device_handling_id).
 -10  Fail. Wrong calling order. GetFilterFrequency should be called after OpenApi.

Code Example

void CLXDeviceAPI_Sample1View::OnMenuGeteegrefelectrode()
{
  int eeg_refelectrode; 
  CString cst_eegref; 

  if (GetEEGRefElectrode_LXDeviceAPI(m_iDeviceHandlingID,&eeg_refelectrode) == 1)
  {
    if (eeg_refelectrode == 0)		cst_eegref = _T("A1");
    else if (eeg_refelectrode == 1)	cst_eegref = _T("A2");
    else if (eeg_refelectrode == 2)	cst_eegref = _T("A1+A2");
    else if (eeg_refelectrode == 3)	cst_eegref = _T("Cz(ch18)");

    AfxMessageBox(_T("EEG Reference Electode = ") + cst_eegref); 
  }
}

Result

EEG reference electode

EEG reference electode