can Matlab load .nitrace file format directly ?

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 File Operations 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by