Matlab: Intefacing with External Program

  • #1
685
16
I have an external program (A chess engine) that I want to interface with matlab. If I double-click the Engine.exe, it runs in a dos window. I can then type in commands like
'isready' and it responds with string such as 'ready'. I want to send command to it from matlab and receive the response in matlab.
Anyone knows how to do it?
I am using Windows.
 

Answers and Replies

  • #3
685
16
Yeah! I won't be passing arguments while starting the program. The program will be running separately (doing its calculations). I just want to communicate with it time to time. Your link shows way to type into any running windows program. Thats fine. But it would be more better if I could directly message the program instead of having to specify the co-ordinate for the input field of the program.
Moreover, I also need to read back the text-answer produced by the program.
 

Related Threads on Matlab: Intefacing with External Program

  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
5
Views
24K
Replies
3
Views
7K
Replies
6
Views
972
  • Last Post
Replies
1
Views
3K
  • Last Post
Replies
4
Views
2K
Replies
7
Views
3K
Replies
7
Views
1K
Replies
1
Views
2K
Replies
1
Views
2K
Top