フィルターのクリア

can Matlab load .nitrace file format directly ?

2 ビュー (過去 30 日間)
Ranjith veeran
Ranjith veeran 2019 年 1 月 15 日
回答済み: Ranjith veeran 2019 年 2 月 1 日
I am developing an application in which i have implemented a code that reads the data from .txt file generated by NI- I/O trace using matlab.
In the above mentioned case, NI- IO trace converts .nitrace file format to .txt file format which i need to do manually. Now I need to read the data generated by NI- I/O trace directly from '.nitrace' file format. I want to know if its possible and If not possible to load the data directly using matlab, i wish to program the follwing operation of converting the .nitrace file to .txt file using matlab:
"NI I/O trace > file > export> .txt file"
any leads or approches are welcome.
Thanks,
Ranjith

採用された回答

Ranjith veeran
Ranjith veeran 2019 年 2 月 1 日
function no_out = nitrace2txt(x)
h = actxserver('WScript.Shell');
winopen(x) %Invokes ni io trace.exe
h.SendKeys('%'); %invokes attention to io trace
pause(1); %wait
h.SendKeys('%'); %points file menu
pause(1); %wait
h.SendKeys('{DOWN}'); %opens file menu
pause(1); %wait
h.SendKeys('E'); %points export
pause(1); %wait
h.SendKeys('~'); %perform exporting
pause(1); %wait
h.SendKeys('~'); %save file in the same folder
pause(1); %wait
h.SendKeys('%{F4}'); %closes ni io trace
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by