Interfacing Matlab with an external chess engine via command line

  • Context: MATLAB 
  • Thread starter Thread starter I_am_learning
  • Start date Start date
  • Tags Tags
    Matlab Program
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
I_am_learning
Messages
681
Reaction score
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.
 
Physics news on Phys.org
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.