How to measure and generate a frequency signal through the digital channels on the NI daq card

2 ビュー (過去 30 日間)
Yan
Yan 2011 年 2 月 13 日
In the daq card instruction manual, there is a function of this card called 'counter', which can be used to measure and generate the frequency signal. But I have no idea on calling this function from matlab. Could you please let me know if it is possible and how to use it? If you can let me have an simple example, I would be grateful.

回答 (1 件)

Mark Shore
Mark Shore 2011 年 2 月 13 日
National Instruments makes many DAQ boards. You'll have to be more specific.
And you will likely need either MATLAB's Data Acquisition or Instrument Control Toolbox, or NI's LabVIEW to interface with the board.
http://www.mathworks.com/products/daq/supportedio14005.html
http://www.mathworks.com/products/instrument/hardware/national-instruments.html
  4 件のコメント
Yan
Yan 2011 年 2 月 15 日
Hi, Mark. I have got it working properly with matlab code by amending the driver. If you have trouble testing this card, I have an old version of this card which is USB 6251 and is on the list of supported devices. If you can help me work out how to measure and generate the frequency signal through the digital channels of USB6251, I will be able to know how to do it on my new card.
Cheers.
Mark Shore
Mark Shore 2011 年 2 月 16 日
Hi Yan. My NI hardware is quite different, and I'm happy for now to use LabVIEW for the data acquisition end, and then MATLAB for post-processing. The linking step I did was to rewrite large TDMS files into a binary format easily read by MATLAB. I just envisioned too many complications otherwise, and it was cheaper to purchase and learn LabVIEW.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by