qpit / thorlabs_apt

python module for Thorlabs' APT library
GNU General Public License v2.0
80 stars 47 forks source link

Exception : Could not initialize device: Unknown serial number #8

Open Auriane38 opened 7 years ago

Auriane38 commented 7 years ago

Dear Tobias,

I've been trying to use your software with the BSC203 motor but it raises the exception "Could not initialize device: Unknown serial number". However the serial number I use is the one returned by APT USER and I can easily control the motor via Matlab.

Do you have any clue why this might happen ?

Thanks a lot,

Auriane

tobiasgehring commented 7 years ago

Dear Auriane,

I have no clue :)

What is the output of

>>> import thorlabs_apt as apt
>>> apt.list_available_devices()

?

Cheers,

Tobias

On 03/08/2017 04:26 PM, Auriane38 wrote:

Dear Tobias,

I've been trying to use your software with the BSC203 motor but it raises the exception "Could not initialize device: Unknown serial number". However the serial number I use is the one returned by APT USER and I can easily control the motor via Matlab.

Do you have any clue why this might happen ?

Thanks a lot,

Auriane

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/qpit/thorlabs_apt/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/ABV7Ugs6qbw_om1_H1mCDVC0iVDciE1Rks5rjsitgaJpZM4MW6uT.

Auriane38 commented 7 years ago

The output is [] which is strange because APT User can detect the device and so does Matlab.

In _APTAPI.py, I can't find the hardware type BSC203. Maybe this software cannot support this device ?

Thank you for your quick answer,

Auriane

tobiasgehring commented 7 years ago

Not all hardware types are listed in _APTAPI.py so that is not an indication. I have no idea if the device is supported. Does APT User use the Active X component?

Can you reboot your computer and try again? Maybe some other software (e.g. matlab or APT User) is still accessing the device.

Cheers,

Tobias

On 03/09/2017 03:55 PM, Auriane38 wrote:

The output is [] which is strange because APT User can detect the device and so does Matlab.

In _APTAPI.py, I can't find the hardware type BSC203. Maybe this software cannot support this device ?

Thank you for your quick answer,

Auriane

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/qpit/thorlabs_apt/issues/8#issuecomment-285373470, or mute the thread https://github.com/notifications/unsubscribe-auth/ABV7Ull3315I1xbcOXkP7gt4wbSppP9wks5rkBLzgaJpZM4MW6uT.

Auriane38 commented 7 years ago

Dear Tobias,

I don't know if APT User uses the Active X component, how should I check that ?

I have tried rebooting my computer several times but it still doesn't work.

Thanks,

Auriane

ivalaginja commented 5 months ago

Hi @Auriane38, I know it's been quite a number of years, but have you ever resolved your issue? Because I am seeing the same behavior but only when trying to open a connection to a second motor, so it's really weird. Cheers.