What is the format of DAQ-files produced by the Data Acquisition Toolbox 2.6 (R14SP2)?

4 views (last 30 days)
I would like to read data from DAQ-files created with the Data Acquisition Toolbox using third-party software. Therefore, I would like to know the internal format of DAQ-files.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Apr 2023
Edited: MathWorks Support Team on 19 Apr 2023
The ability to read DAQ-files directly from third-party software is not available in the Data Acquisition Toolbox.
To work around this issue, there are several options.
Note that the DAQ-file format is not formally documented, and may change in a future release of the Data Acquisition Toolbox.
1. After acquiring data, you can export it to another format, such as XLS-files, MAT-files, or HDF-files. For more information, refer to the Data Import and Export (MATLAB Programming) documentation by executing the following command at the MATLAB Command Prompt:
web([docroot,'/techdoc/matlab_prog/f5-4931.html'])
This is the preferred work-around.
2. If MATLAB is available on the target machine, you can leverage DAQREAD to read the DAQ-files at runtime, using either MATLAB Engine or COM Automation. This option will require significant amounts of programming.
For more information about MATLAB Engine and COM Automation support, consult the MATLAB External Interfaces documentation:
web([docroot,'/techdoc/matlab_external/bp_kqh7.html'])
3. If MATLAB is not available on the target machine, you may be able to call DAQREAD in a custom stand-alone application or shared library built with the MATLAB Compiler. This option will require significant amounts of programming.
For more information on the MATLAB Compiler and the related Builder products, refer to the following product information page:
4. Finally, you can inspect the DAQREAD function and create your own equivalent function. This will require significant programming, and may not be compatible with DAQ-files from future versions of the Data Acquisition Toolbox. To view the source of the DAQREAD function, execute the following commands at the MATLAB Command Prompt:
edit daqread
Note that changes made to daqread.m will affect the functionality of DAQREAD. Any edits should instead be made to a copy of this file.

More Answers (0)

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!