Hi jmd2777,
I tried to connect Matlab and Roboguide with a program I found on internet. Roboguide create a server and Matlab is the client that communicate with the server but Matlab cannot connect to Roboguide.
Here is my KAREL program to create the server :
PROGRAM TestServer
%STACKSIZE = 4000
%NOLOCKGROUP
%NOPAUSE=ERROR+COMMAND+TPENABLE
%ENVIRONMENT uif
%ENVIRONMENT sysdef
%ENVIRONMENT kclop
%ENVIRONMENT bynam
%ENVIRONMENT fdev
%ENVIRONMENT flbt
%INCLUDE klevccdf
%INCLUDE klevkeys
%INCLUDE klevkmsk
VAR
file_var : FILE
tmp_int : INTEGER
tmp_str : STRING[128]
status : INTEGER
entry : INTEGER
loop1 : BOOLEAN
BEGIN
SET_FILE_ATR(file_var, ATR_IA)
SET_VAR(entry, '*SYSTEM*','$HOST_CFG[1].$SERVER_PORT',8000,status)
WRITE(' VAR status = ',status,CR)
-- Connect the tag
MSG_CONNECT('C1:',status)
WRITE(' Connect status = ',status,CR)
MSG_DISCO('C1:',status)
WRITE('Disconnect status=',status,CR)
--loop1 = TRU
END TestServeur
I'm not sure if I have to do it like that or if I can just create a file .txt or an excel file and read informations on that excel file with Roboguide (maybe with a karel program or just with roboguide function, I don't know) but the thing is that I have to read these informations in real time. And I didn't found a function on roboguide to read file from my PC.
Also just to be more precise, what I want to do is to move my robot with voice.