• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login
  1. Home
  2. Mohamed13
  3. Posts
  • Profile
  • Following 0
  • Followers 0
  • Topics 1
  • Posts 4
  • Best 2
  • Controversial 0
  • Groups 0

Posts made by Mohamed13

  • RE: Sending commands from Matlab to Duet board

    t=tcpclient('192.168.2.1',23);
    writeline(t,"G1 X100");

    Just make sure to enable telnet in the config file. and Telnet client in the program features, you can access it from the Control Panel.

    posted in Duet Web Control
    undefined
    Mohamed13
    10 Dec 2024, 11:42
  • RE: Sending commands from Matlab to Duet board

    I was able to connect to the board using Telnet. I created the tcpclient with port number 23 and it worked fine. I just had to enable telnet in my board config file.

    Thanks everyone. I will leave it here so maybe someone will need it.

    posted in Duet Web Control
    undefined
    Mohamed13
    10 Dec 2024, 11:17
  • RE: Sending commands from Matlab to Duet board

    I still don't get it. How should I connect matlab to Duet board? I'm new to Duet board and providing the steps is much appreciated.
    I read over the provided link, but I didn't know what exactly should be done.

    posted in Duet Web Control
    undefined
    Mohamed13
    10 Dec 2024, 07:43
  • Sending commands from Matlab to Duet board

    Hello everyone,

    I am using Duet3 mini5+ and I'm trying to send commands from Matlab to the Duet board for motion control.
    I tried to initiate a tcpclient with the ip address of the Duet board. see the commands below:

    t=tcpclient('192.168.2.1',80);
    writeline(t,"G1 X100")
    

    I keep getting the same error :
    Error using matlabshared.asyncio.internal.MessageHandler/onError
    An existing connection was forcibly closed by the remote host

    Is my approach correct? If yes, then what could be the issue? If not, please tell me what to do.

    posted in Duet Web Control
    undefined
    Mohamed13
    6 Dec 2024, 09:44
Unless otherwise noted, all forum content is licensed under CC-BY-SA