Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial connection to Pluto drive - MotionLab vs IngeniaLink python binding #170

Open
psi-jmonaco opened this issue Mar 25, 2022 · 2 comments

Comments

@psi-jmonaco
Copy link

psi-jmonaco commented Mar 25, 2022

SETUP Pluto drive with actuator powered with an external power supply @ 15 V. Pluto firmware version 2.7.8

What works
Can use MotionLab2 software to configure drive, use move interface to perform homing, position control, etc.

What does not work
From a restart of Windows system, without running MotionLab2, attempt to use IngeniaLink python bindings to connect to the drive over serial connection via USB.

Per the following command history, the device is found on COM3 using the network.scan_slaves() method, and this matches the port info shown for COM ports in the OS.

Per the following, the connection to the drive over serial COM3 fails on the first attempt. Subsequent attempts to connect are also unsuccessful because the port is now in use.

import ingenialink as il
Cannot load IXXAT vcinpl library: Could not find module 'vcinpl' (or one of its dependencies). Try using the full path with constructor syntax.

from ingenialink.serial.network import SerialNetwork

network = SerialNetwork()

f = network.scan_slaves()

f
Out[5]: ['COM3']

target = f[0]

target
Out[7]: 'COM3'

servo = network.connect_to_slave(target)
Traceback (most recent call last):

  File "C:\Users\###\AppData\Local\Temp/ipykernel_6024/2623984246.py", line 1, in <module>
    servo = network.connect_to_slave(target,

  File "C:\Users\###\anaconda3\envs\ingenia\lib\site-packages\ingenialink\serial\network.py", line 86, in connect_to_slave
    raise ILError('Could not connect to "{}"'.format(target))

ILError: Could not connect to "COM3"


servo = network.connect_to_slave(target)
Traceback (most recent call last):

  File "C:\Users\###\AppData\Local\Temp/ipykernel_6024/2623984246.py", line 1, in <module>
    servo = network.connect_to_slave(target,

  File "C:\Users\###\anaconda3\envs\ingenia\lib\site-packages\ingenialink\serial\network.py", line 72, in connect_to_slave
    raise_null(self.__net_interface)

  File "C:\Users\###\anaconda3\envs\ingenia\lib\site-packages\ingenialink\utils\_utils.py", line 251, in raise_null
    raise exc.ILCreationError(msg)

ILCreationError: Serial port open failed (Device is in use)
@mguirg3
Copy link

mguirg3 commented Apr 27, 2022

I am having the same issue. Have you been able to figure out a solution?

@psi-jmonaco
Copy link
Author

unfortunately no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants