Hi, i need help please!
i am trying to connect flightgear to matlab throuhgt UDP
in order to test the PID closed loops of my autopilot.
I have noticed than i am not receiving data from flightgear
to matlab, in the other way it works ok.
I have simplied the problem to next experiment:
I have opened two instances of matlab,
I have created UDP object and opened port in both matlabs
>> u = udp('127.0.0.1', 5500)
>> fopen(u)
the same for both instances,
then i send a string in one of matlab instance:
>> fprintf(u, 'Aqui estamos');
and i try to get data in the other matlab instance:
>> fscanf(u)
and the result is :
Warning: A timeout occurred before the Terminator was reached.
ans =
''
Do someone knows what is incorrect in my experiment?
i am not a software expert and it seems very simple but i am expending a lot of time!
Thanks
Jose Luis
i am trying to connect flightgear to matlab throuhgt UDP
in order to test the PID closed loops of my autopilot.
I have noticed than i am not receiving data from flightgear
to matlab, in the other way it works ok.
I have simplied the problem to next experiment:
I have opened two instances of matlab,
I have created UDP object and opened port in both matlabs
>> u = udp('127.0.0.1', 5500)
>> fopen(u)
the same for both instances,
then i send a string in one of matlab instance:
>> fprintf(u, 'Aqui estamos');
and i try to get data in the other matlab instance:
>> fscanf(u)
and the result is :
Warning: A timeout occurred before the Terminator was reached.
ans =
''
Do someone knows what is incorrect in my experiment?
i am not a software expert and it seems very simple but i am expending a lot of time!
Thanks
Jose Luis