Convert .dat to .txt or .mat
이전 댓글 표시
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 :)
답변 (5개)
KSSV
2016년 12월 23일
movefile('myfile.dat','myfile.txt');
댓글 수: 3
Nuchaba Nureen
2016년 12월 23일
편집: Nuchaba Nureen
2016년 12월 23일
KSSV
2016년 12월 23일
Then your files are not ascii, attach any one file.
Nuchaba Nureen
2016년 12월 23일
편집: KSSV
2016년 12월 23일
Nuchaba Nureen
2016년 12월 23일
편집: Nuchaba Nureen
2016년 12월 23일
0 개 추천
댓글 수: 2
KSSV
2016년 12월 23일
movefile('baseline.adl','baseline.txt') is working because it is an ascii file...
Nuchaba Nureen
2016년 12월 23일
Walter Roberson
2016년 12월 23일
0 개 추천
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.
Bhavanithya Thiraviaraja
2019년 7월 30일
0 개 추천
You can open the .dat file in MATLAB by double clicking the .dat file from the 'Current Folder'.

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
Medha
2024년 12월 13일
0 개 추천
none of the answers are helpful
카테고리
도움말 센터 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!