AllenInstitute / pytic

PyTic - An Object-Oriented Python Wrapper for Pololu Tic Stepper Drivers
Other
10 stars 6 forks source link

Wrapper Issue #4

Open JGVD21 opened 4 years ago

JGVD21 commented 4 years ago

I'm trying to control 7 Polulu T249 driver boards.

At the moment I'm experimenting with only one of them.

When I run the example, I cannot detect the connected device with python, but the Tic GUI works fine and the USB device is detected perfectly.

When I print "tic.list_connected_device_serial_numbers()" and "tic.connect_to_serial_number(serial_nums)" I get the following.

OUTPUT: No Tic devices connected. 0 2020-09-09 16:12:35,433 - PyTic - ERROR - Serial number device not found.

Any help would be appreciated.

sandeepa-embross commented 2 years ago

I'm trying to control 7 Polulu T249 driver boards.

At the moment I'm experimenting with only one of them.

When I run the example, I cannot detect the connected device with python, but the Tic GUI works fine and the USB device is detected perfectly.

When I print "tic.list_connected_device_serial_numbers()" and "tic.connect_to_serial_number(serial_nums)" I get the following.

OUTPUT: No Tic devices connected. 0 2020-09-09 16:12:35,433 - PyTic - ERROR - Serial number device not found.

Any help would be appreciated.

I am facing the same problem. Were you able to solve this?

sandeepa-embross commented 2 years ago

I'm trying to control 7 Polulu T249 driver boards.

At the moment I'm experimenting with only one of them.

When I run the example, I cannot detect the connected device with python, but the Tic GUI works fine and the USB device is detected perfectly.

When I print "tic.list_connected_device_serial_numbers()" and "tic.connect_to_serial_number(serial_nums)" I get the following.

OUTPUT: No Tic devices connected. 0 2020-09-09 16:12:35,433 - PyTic - ERROR - Serial number device not found.

Any help would be appreciated.

Hi.. Did you find any solution to this problem, I am facing same problem

inregards2pluto commented 1 year ago

I'm trying to control 7 Polulu T249 driver boards.

At the moment I'm experimenting with only one of them.

When I run the example, I cannot detect the connected device with python, but the Tic GUI works fine and the USB device is detected perfectly.

When I print "tic.list_connected_device_serial_numbers()" and "tic.connect_to_serial_number(serial_nums)" I get the following.

OUTPUT: No Tic devices connected. 0 2020-09-09 16:12:35,433 - PyTic - ERROR - Serial number device not found.

Any help would be appreciated.

Are you making sure to include an index value when defining serialNums in the connect_to_serial_number function? I use the following script and it connects fine:

# Connect to first available Tic Device serial number over USB
serialNums = tic.list_connected_device_serial_numbers()
print(serialNums[0])
tic.connect_to_serial_number(serial_number=serialNums[0])

If you aren't including the index value, the entire serialNums list is assigned to serial_number as opposed to the single serial number.

Jurendicd commented 1 year ago

Hi, I have an issue with connecting to the pololu tic36v4, as i also get an error no tic devices connected when running the example code. While browsing the code i can see there is no mention of the tic36v4, so maybe it is not supported. Is there a way to add this controller too? Or am i doing something completely wrong? Please advise