06-08-2015 12:21 PM
I have a USB-6211 DAQ and am looking to add a lowpass filter at 1Hz. The code below shows my current implimentation however I am not sure what I am doing incorrectly as the filter is not being applied.
DAQmxSetAILowpassEnable(task_handle_, channel.c_str(), true);
DAQmxSetAILowpassCutoffFreq(task_handle_, channel.c_str(), 1);
// where:
// channel = "Dev1/ai0:5"
// task handle is being set via:
// DAQmxErrChk(DAQmxCreateTask("", &task_handle_));
// and started via:
// DAQmxErrChk(DAQmxStartTask(task_handle_));
The current order I am using is:
- Create task
- CreateAIVoltageChan
- CfgSampClkTiming
- RegisterEveryNSampleEvent
** SetAILowpassEnable
** SetAILowpassCutoffFreq
- StartTask
06-08-2015 02:03 PM
06-08-2015 03:26 PM
How might I approach this then in software? Do I have access somehow to C functions as part of the Digital Filter Design Toolkit?