Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6211 low pass filter c

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

0 Kudos
Message 1 of 3
(3,979 Views)
The 6211 does not have an internal filter.
0 Kudos
Message 2 of 3
(3,971 Views)

How might I approach this then in software? Do I have access somehow to C functions as part of the Digital Filter Design Toolkit?

0 Kudos
Message 3 of 3
(3,962 Views)