LXDeviceAPI

Definition

 

int SetSampleFrequency_LXDeviceAPI(int device_handling_id, unsigned int sample_frequency);

Parameters

Parameter Available Value Description
int device_handling_id
  • return value of OpenDevice
unsigned int sample_frequency
  • 250,500,1000,2000
Sampling Frequency. unit : Hz.

Return Values

Return  meaning Description
 1  Success
 -3  Fail. No device(correspond to int device_handling_id).
 -10  Fail. Wrong calling order. SetMessageDevice should be called after OpenApi.
 -20  Fail. Not supporting value of unsigned int sample_frequency

Code Example

void CLXDeviceAPI_Sample1View::OnSetsamplefrequency2000hz()
{
  SetSampleFrequency_LXDeviceAPI(m_iDeviceHandlingID, 500); //set as 500Hz 
}