How can I control Timer/Conter input of an NI DAQ Pad-6259 by using the data acquisition toolbox ?
5 ビュー (過去 30 日間)
古いコメントを表示
I Want to meassure the frequency of a rectangular binary signal with a counter input of an NI DAQ Pad-6259. I tried the way described in the matlab help. Here is the example.
s = daq.createSession('ni'); s.addCounterInputChannel('cDAQ1Mod5', 'ctr0', 'Frequency') s.inputSingleScan
if I do this, the method "inputSingleScan()" returns NaN.
0 件のコメント
回答 (1 件)
Manisha
2012 年 9 月 19 日
Hi Peter,
It seems that your code is correct. I would double check your hardware setup.
1. Is your signal connected to the correct terminal. You can find the correct terminal by executing
s.Channels(1).Terminal
2. What is the amplitude of your signal. Make sure amplitude is high enough for your counter to detect it.
3. Are you getting the correct frequency using National Instruments MAX?
Hope this helps,
Manisha
参考
カテゴリ
Help Center および File Exchange で Data Acquisition Toolbox Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!