Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling low_pass filter on NI USB-6281, daqmx, python

Solved!
Go to solution

The low pass filter can be enabled from lab view and it works. But it I cannot get it to work with Python. Is the way to do it? Thanks.

 

ai_task.ai_channels.add_ai_voltage_chan(physical_channel, max_val=0.1, min_val=-0.1,
terminal_config=TerminalConfiguration.DIFFERENTIAL)
ai_task.ai_lowpass_enable = True
ai_task.timing.cfg_samp_clk_timing(666666, samps_per_chan=666666,
sample_mode=AcquisitionType.FINITE)
ai_task.start()

 

0 Kudos
Message 1 of 3
(2,193 Views)
Solution
Accepted by topic author mikefaltys

Solved my own problem

ai_task.ai_channels.all.ai_lowpass_enable = low_pass_enable

 

this was setting the flag at the task but not for all the ai_channels, strange that it did not throw an error. 

ai_task.ai_lowpass_enable = True
0 Kudos
Message 2 of 3
(2,154 Views)

Hi

 

Great to see a self-response. 

Is it possible to set a cut off frequency to the low_pass filter?

 

Thanks,

Ehsan

0 Kudos
Message 3 of 3
(2,037 Views)