Convert .dat to .txt or .mat

166 ビュー (過去 30 日間)
Nuchaba Nureen
Nuchaba Nureen 2016 年 12 月 23 日
回答済み: Bhavanithya Thiraviaraja 2019 年 7 月 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 :)

回答 (4 件)

KSSV
KSSV 2016 年 12 月 23 日
movefile('myfile.dat','myfile.txt');
  3 件のコメント
KSSV
KSSV 2016 年 12 月 23 日
Then your files are not ascii, attach any one file.
Nuchaba Nureen
Nuchaba Nureen 2016 年 12 月 23 日
編集済み: KSSV 2016 年 12 月 23 日
My file is too large. So, I compress it to .rar file. please download via this link https://drive.google.com/file/d/0B4b2LCHm92qKZWpVdHVVTElhclk/view?usp=sharing

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


Nuchaba Nureen
Nuchaba Nureen 2016 年 12 月 23 日
編集済み: Nuchaba Nureen 2016 年 12 月 23 日
.dat file: https://drive.google.com/file/d/0B4b2LCHm92qKZWpVdHVVTElhclk/view?usp=sharing
.adl file: https://drive.google.com/file/d/0B4b2LCHm92qKOVYxdkRPTTlfbTQ/view?usp=sharing
  2 件のコメント
KSSV
KSSV 2016 年 12 月 23 日
movefile('baseline.adl','baseline.txt') is working because it is an ascii file...
Nuchaba Nureen
Nuchaba Nureen 2016 年 12 月 23 日
But it show only info below which is not actual data
# ChannelNames: AI0 [g] (10.31 mV/g)
# DataUnit: [g]
# ChannelScales: 96.9932104752667

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


Walter Roberson
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.

Bhavanithya Thiraviaraja
Bhavanithya Thiraviaraja 2019 年 7 月 30 日
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

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by