Convert .dat to .txt or .mat
148 次查看(过去 30 天)
显示 更早的评论
I used DAQ-Adlink USB-2405 to record vibration signals by Visual Signal program then I will receive two files which are 'filename.dat' and 'filename.adl'. When I opened .adl, it shown info as below
# ChannelNames: AI0 [g] (10.31 mV/g)
# DataUnit: [g]
# ChannelScales: 96.9932104752667
I think that ".adl" is created to extract data from ".dat" file. So, I would like to process the signal by MATLAB then can I convert it into .txt or .mat file?
Thank you so much for your help :)
0 个评论
回答(4 个)
Nuchaba Nureen
2016-12-23
编辑:Nuchaba Nureen
2016-12-23
2 个评论
KSSV
2016-12-23
movefile('baseline.adl','baseline.txt') is working because it is an ascii file...
Walter Roberson
2016-12-23
The file format for ADLINK .dat files appears to be documented at http://www.adlinktech.com/publications/manual/Software/DAQCreator/DAQCreatorManual.pdf starting on PDF page 57.
I do not at the moment find any code to import the files, but the documentation should make it possible to write some.
0 个评论
Bhavanithya Thiraviaraja
2019-7-30
You can open the .dat file in MATLAB by double clicking the .dat file from the 'Current Folder'.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231864/image.png)
Select the output type as 'Numeric Type' or 'String Array' according to your needs and click Import selection. You can see the imported .mat file in your workspace
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!