read raw data using daq toolbox

1 回表示 (過去 30 日間)
Jim Hokanson
Jim Hokanson 2017 年 11 月 19 日
コメント済み: Jim Hokanson 2018 年 1 月 9 日
It appears that with the old acquisition toolbox it was possible to read raw data from a NI DAQ using daqread(). Is it possible to get raw data using the new acquisition toolbox code? To be specific, by raw data I mean values as int16.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 1 月 9 日
Compare the https://www.mathworks.com/help/releases/R2012a/techdoc/ref/daqread.html R2012a daqread() (from before the session-based interface) to the current https://www.mathworks.com/help/matlab/ref/daqread.html daqread() and you will not see and substantial difference. Neither one of them reads directly from a device, only from .daq files.
Notice the 'DataFormat', 'native' option of daqread()
  1 件のコメント
Jim Hokanson
Jim Hokanson 2018 年 1 月 9 日
Interesting. It sure is hard to find anything on '.daq' files.
Based on your answer and a bit more thinking on my end I have the following thoughts:
1) The legacy interface is still supported for now, which means daqread is still technically an option.
2) Since you can read raw data from a .daq file, presumably the legacy interface saves the data in a raw format.
3) It still does not look like it is possible to use the newer DAQ interface to extract the "native" (raw) data.
4) In general it seems like '.daq' files are being phased out and replaced by having the user save the data themselves. See:

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

カテゴリ

Help Center および File ExchangeSimultaneous and Synchronized Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by