Azzera filtri
Azzera filtri

can Matlab load .nitrace file format directly ?

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Ranjith veeran
Ranjith veeran il 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

Più risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by