Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Instrument control toolbox UDP problems!

Status
Not open for further replies.

jlcortex

New member
Jun 22, 2008
5
ES
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top