Filter löschen
Filter löschen

Read from other software same PC. GUI Matlab

1 Ansicht (letzte 30 Tage)
Carlos
Carlos am 5 Mai 2017
Beantwortet: Sachin Kumar am 8 Mai 2017
Dear experts,
I have some troubles to interconnect 2 software programs. One is programmed in Visual studio and the other one is a GUI in matlab. Both software tools are running in the same PC.
In my particular case, the software programmed in Visual Studio has to send a sort of signal/bit/flag or something like that in order to get up the software programmed in Matlab which performs several calculations when it receives the signal sent from the Visual Studio Software.
- How can I do to interconnect both software in Matlab?
- Besides, which function can I use to hear the Visual studio software?
- What should I hear (thread,signal,...) in order to wait the notice signal coming from Visual Studio?
Thank you in advance for your time.
Best regards,
Carlos.

Akzeptierte Antwort

Sachin Kumar
Sachin Kumar am 8 Mai 2017
Simple technique is, write data to a file from the program and hear/read the same file from GUI functions to find the data. You can use normal fread() function inside GUI callbacks.
fileID = fopen('filename.txt','r');
A = fscanf(fileID,'%d'); %read a number
fclose(fileID);

Weitere Antworten (0)

Kategorien

Mehr zu Debugging and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by