AllenInstitute / pytic

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

Interfacing with multiple tics #2

Open ananya-sp opened 5 years ago

ananya-sp commented 5 years ago

When using pytic with multiple tic controllers, if I connect to a tic (tic.connect_to_serial_number(serial_nums[0]) and then connect to another (tic.connect_to_serial_number(serial_nums[1]) and then try to connect to the first tic again I get a NULL pointer error in tic_handle_open This can easily be tested for by just writing (tic.connect_to_serial_number(serial_nums[0]) twice. How do I avoid this error? Or is there a way to interface with multiple tic controllers without using the connect command first?