Filter löschen
Filter löschen

can Matlab load .nitrace file format directly ?

2 Ansichten (letzte 30 Tage)
Ranjith veeran
Ranjith veeran am 15 Jan. 2019
Beantwortet: Ranjith veeran am 1 Feb. 2019
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

Akzeptierte Antwort

Ranjith veeran
Ranjith veeran am 1 Feb. 2019
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

Weitere Antworten (0)

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by