PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I select the filter on PXI-5122 from NI-Scope or NI-DAQ?

The PXI-5122 has both an anti-aliasing and a noise filter.

How can I directly enable/disable a specific filter from NI-Scope or NI-DAQ? I see some input BW attributes, but I should think it's possible to directly select a filter?

I am using CVI 7.1.1.

Thanks in advance.
0 Kudos
Message 1 of 8
(4,874 Views)
Hi Menchar,
You will need to use the niScope_ConfigureChanCharacteristics function and set the max sampling rate higher than 35 Mhz. The NI 5122 offers two filters that limit the bandwidth of the signal path a 20 MHz noise filter and a 35 MHz antialias filter. If you set the max sampling rate higher than 35 Mhz these filters will be disabled.

Hope this helps!

Brooks W.
National Instruments
0 Kudos
Message 2 of 8
(4,858 Views)
Thanks Brooks, but I still don't have a good answer. I fully understand that there are two filters available, and that they are exclusive - both can't be simultaneously enabled.

What if I want to sample at, say, a 10 MSample/Sec rate (or a 5 MHz BW, take your pick) with one of the following conditions:

1. Noise filter only on
2. Anti-aliasing filter only on
3. Neither filter on.

These conditions overlap: simply specifying a sampling rate won't unambiguously select a filter. Simply specifying a channel bandwidth won't unambiguously select a filter condition either.
0 Kudos
Message 3 of 8
(4,855 Views)
Hi Menchar,

There is no other way to "directly enable/disable a specific filter from NI-Scope or NI-DAQ". You will need to use the "niScope_ConfigureChanCharacteristics" function.

This means that if you don't call the function "niScope_ConfigureChanCharacteristics", you can expect the default behavior (filter on). Also, if you use the function above and send a "0" for the parameter "maxInputFrequency", you can expect the default behavior. For the 5122, you can expect the following behavior for different inputs to the "maxInputFrequency" parameter:
1to 20M = 20 MHz noise filter on
21M to 35M = 35 MHz anti-alias filter on
36M to 100M = Full bandwidth/no filters (100 MHz)

Best Regards,
Brooks W.
National Instruments
0 Kudos
Message 4 of 8
(4,853 Views)
Hi Brooks -

So if I configure an input channel with the function you suggest to indicate a max input frequency of say 25 MHz, can I then select a sample rate arbitrarily low (say 1 MS/sec) and still be certain that the antialias filter didn't get turned off and the noise filter turned on? That is, does the max input frequency parameter exclusively govern filter selection?
0 Kudos
Message 5 of 8
(4,850 Views)
Hi Menchar,
Yes, the max input frequency parameter does exclusively govern channel bandwidth (and indirectly filter selection). Yes, the anti-alias filter will be on at 25Mhz and you can specify a low "minimum sample rate" (say 1 Mhz). You have got the right idea...

Best Regards,
Brooks W.
National Instruments
0 Kudos
Message 6 of 8
(4,846 Views)
The spec sheet states the anti-aliasing filter as the default filter. How can I assure that  for sampling rates below 20 MHz, the noise filter is on and not the anti-aliasing filter? I really need the noise filter to be on.
0 Kudos
Message 7 of 8
(4,687 Views)
Hi Westlinwind,
You will need to use the "niScope_ConfigureChanCharacteristics" function or niScope Configure Chan Characteristics.vi.

Set the "maxInputFrequency" to something between 1 to 20 Mhz.  This will enable the noise filter.

Best Regards,
Brooks W.
National Instruments
0 Kudos
Message 8 of 8
(4,679 Views)