필터 지우기
필터 지우기

Read from other software same PC. GUI Matlab

조회 수: 1 (최근 30일)
Carlos
Carlos 2017년 5월 5일
답변: Sachin Kumar 2017년 5월 8일
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.

채택된 답변

Sachin Kumar
Sachin Kumar 2017년 5월 8일
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);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by