Home
Support
TIO 裝置在NI-DAQmx 啟用數位防抖動濾波器 (Debounce Filters)
TIO 裝置在NI-DAQmx 啟用數位防抖動濾波器 (Debounce Filters)
硬體: PXI/CompactPCI>>Controllers
問題: 我該如何在NI-DAQmx啟用NI 66xx 或M系列的裝置的數位濾波器
解答: NI TIO裝置有數位防抖動濾波器可以在可程式化輸入腳位(PFI)被啟用。你可以在裝置的使用手冊中的數位濾波器章節找到其他關於濾波器設定的資訊。您也可以在NI-DAQmx Help 的文件 "Digital Filtering Considerations for TIO-Based Devices" 和 "Digital Filtering Considerations for C Series and M Series Devices"找到相關資訊。在Windows中,這些help被和NI-DAQmx 一起安裝在Start » Programs » National Instruments » NI-DAQ。
當啟用數位濾波器,你必須選擇一個濾波器可以支援的數值。可支援的數值包含100 ns、500 ns、1 µs、5 µs和一個可程式化的設定基於外部濾波器的時脈。不同的計數器輸入不能有不同的自行定義的濾波數值。
如果您使用可程式化的設定,你必須設定濾波器時脈的來源和速度。M系列裝置可以支援濾波器數值125 ns、6.425 us和2.56 ms。您可以參考下面的產品使用手冊的連結得到更多資訊。
使用下列的方法來啟用數位濾波器:
使用LabVIEW:
DAQmx Channel Property Node 是可以用來啟用數位濾波器且設定Counter Input task的數值如下圖所示。如果您使用可程式化的設定,您可以使用DAQmx Channel Property Node來設定濾波器時脈的來源和速度。使用counter input 的digital filter enable property 選擇Counter Input » Frequency » Digital Filter » Enable。設定濾波器速度選擇Counter Input » Frequency » Digital Filter » Minimum Pulse Width。給counter ouotput 則使用同一個路徑。如下圖所示,此量測種類為頻率。

使用ANSI C:
NI-DAQmx C API 根據Counter Input task的種類有屬性可以被設定啟用數位濾波器。舉例來說,您可以啟用Counter Input Frequency task的數位濾波器,您需要使用DAQmxSetCIFreqDigFltrEnable 來啟用濾波器且使用DAQmxSetCIFreqDigFltrEnable來設定最小的脈波寬度。在相同種類的task使用可程式化的濾波器設定,您必須使用DAQmxSetCIFreqDigFltrTimebaseSrc來設定濾波器時脈的來源,且使用DAQmxSetCIFreqDigFltrTimebaseRate來指定他的速度。更多的資訊針對如何使用這些功能,在Start » Programs » National Instruments » NI-DAQ。
相關連結: User Manual: NI 660x User ManualUser Manual: NI 6624 User ManualUser Manual: M Series User ManualKnowledgeBase 30KHKH6I: How Do I Remove Glitches or Add a Debounce Filter to My Digital Signal?Digital Filtering Consideration for TIO-Based Devices
附加檔案:
- enablefilter.jpg
報告日期: 03/14/2006
最後更新: 01/22/2015
文件偏號: 3VDG0388
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.