Coder Social home page Coder Social logo

I got this error when I used matlab :Error using XPlaneConnect.getDREFs (line 27) [getDREFs] ERROR: Multiple clients open. You must specify which client to use. about xplaneconnect HOT 7 CLOSED

nasa avatar nasa commented on July 29, 2024
I got this error when I used matlab :Error using XPlaneConnect.getDREFs (line 27) [getDREFs] ERROR: Multiple clients open. You must specify which client to use.

from xplaneconnect.

Comments (7)

jason-watkins avatar jason-watkins commented on July 29, 2024

Hi magedmikhail.

This is usually caused by calling openUDP more than once, and not specifying which socket you want to use in subsequent calls.

Could you post an SSCCE?

from xplaneconnect.

magedmikhail avatar magedmikhail commented on July 29, 2024

Dear all
please Can you tell me the steps to set the connection between matalb and
x plane.

  1. I have - x Plane 10 ready
  2. I Copied the X-Plane Plugin folder (xpcPlugin/XPlaneConnect) to the
    plugin directory ([X-Plane Directory]/Resources/plugins/)
  3. matlab ready for Example1

what I should to do for x plane setting option for input output and net
connection(IP for data output and UDP) how you set them up to match with
matlab

Socket = openUDP( 49005); is this correct or Socket = openUDP(
'127.0.0.1',49005);

getDREFs('sim/test/test_float') (My problem here)

On Tue, Jun 16, 2015 at 2:12 PM, Jason Watkins [email protected]
wrote:

Hi magedmikhail.

This is usually caused by calling openUDP more than once, and not
specifying which socket you want to use in subsequent calls.

Could you post an SSCCE http://sscce.org/?


Reply to this email directly or view it on GitHub
#76 (comment).

Thanks,
Dr. Maged mikhail
Maged B. Mikhail Ph.D.
Tennessee State University
Dept. of Electrical and Computer Engr.
Intelligent Control Systems Lab Rm. 201
Work: (615) 963-5328
Cell: (615) 710-6745
E_mail: [email protected] [email protected]

from xplaneconnect.

jason-watkins avatar jason-watkins commented on July 29, 2024

Socket = openUDP( 49005); does appear to be a bug in the sample script. I have corrected it for the next release. Socket = openUDP( '127.0.0.1',49005); is indeed correct.

Could you verify that you get the same error with a freshly opened copy of MATLAB? Because the example script does not include robust error handling, it's possible for sockets to be abandoned but left open if some other error causes the example script to exit early.

from xplaneconnect.

teubert avatar teubert commented on July 29, 2024

Hello Maged Mikhail,

Were you able to get this working? I wanted to check in and make sure you got all your questions answered.

~Chris

from xplaneconnect.

dangmoran1991 avatar dangmoran1991 commented on July 29, 2024

Got the same problem here, and can not solve....
I also have:

  1. x Plane 10 ready
  2. I Copied the X-Plane Plugin folder (xpcPlugin/XPlaneConnect) to the
    plugin directory ([X-Plane Directory]/Resources/plugins/)
  3. matlab ready for Example1

and the problem is like:
problem

And when I run this example again, I got

Example
xplaneconnect Example Script-
Setting up Simulation
错误使用 XPlaneConnect.getDREFs (line 27)
[getDREFs] ERROR: Multiple clients open. You must specify which client to use.

出错 XPlaneConnect.Example (line 16)
getDREFs('sim/test/test_float')

Thank you.
Moran

from xplaneconnect.

jason-watkins avatar jason-watkins commented on July 29, 2024

Hi Moran.

I've just pushed an update to the repository that fixes several issues with the MATLAB example script. Could you update to the latest version of master and let me know if it works for you?

Thanks,
Jason

from xplaneconnect.

jason-watkins avatar jason-watkins commented on July 29, 2024

@ magedmikhail @dangmoran1991

Since I haven't heard anything more, I'm going to hope that no news is good news and you've both gotten things up and running. Feel free to comment here or open a new issue if we can provide any additional help.

Thanks,
Jason

from xplaneconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.