Controlling two Tic T825 with python via USB

Hello, I’m trying to control two stepper motors using two Tic T825 through USB with a python script. I’m able to perfectly control each stepper motor individually using PyTic but once both controllers are connected to the laptop with usb cables then I can’t connect to any of the controllers anymore. In fact, the program crashes when already requesting the serial number of the connected devices with:

tic = pytic.PyTic()
serial_nums = tic.list_connected_device_serial_numbers()

I am hoping someone can steer me in the right direction…

-Ruben

If you are just running those two lines code and it is crashing, it sounds like there might be a bug in the PyTic library (which we did not write), so you might consider controlling the Tics in a different way. You can find some examples in the “Writing PC software to control the Tic” section of the Tic’s user’s guide, including a Python example that uses the PyYAML library in the “Example code to run ticcmd in Python” sub-section. The documentation in that Python example explains how to specify which Tic you want to address when using multiple Tics.

Brandon