LXDeviceAPI

Definition

int GetSampleFrequency_LXDeviceAPI(int device_handling_id, int * sample_frequency);

 

Parameters

Parameter Available Value Description
int device_handling_id
  • return value of OpenDevice
int * sample_frequency
  • output

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::OnMenuGetsamplefrequency()
{
  int sample_frequency; 
  CString cst; 

  if (GetSampleFrequency_LXDeviceAPI(m_iDeviceHandlingID, &sample_frequency) == 1)
  {
    cst.Format(_T("Sampling Frequency = %d Hz"), sample_frequency);

    AfxMessageBox(cst);
  }
}

Result

GetSampleFrequency

GetSampleFrequency