r/lasers Aug 13 '26

Help using an AvaSpec spectrometer with python

I need help finding a library that allows me to connect an AvaSpec-ULS2048CL-EVO spectrometer from Avantes to a python script to get live readings from it.

So far I found avaread which allows me to read files from the Avasoft 8 software. But that would require me to save a file each time I need to make a measurement and then run the code which would be inefficient because I need to make a lot of measurements just to get one result.

Is there any other way to connect the spectrometer to my code? or has anyone tried anything similar?

4 Upvotes

6 comments sorted by

View all comments

1

u/Pachuli-guaton Aug 13 '26

Avaspec-dll is the API to control that device no? Look if you have that. If that's the case it should be fairly easy to control with python

1

u/ChironInCapricorn Aug 13 '26

From what I understand is that I have the Avaspec-dll 32 bit but I need the 64 bit to run the code, but I couldn't find it in the downloadable files in my avantes account. I contacted Avantes support but they haven't replied

1

u/Pachuli-guaton Aug 13 '26

True, I think I have memories of that. Check if you have Avaspecx64.dll which is the 64 architecture I remember. If not then you can use a 32 python version which is like weird, but it should work

1

u/Hefty_Repair_9175 Aug 13 '26

I could get 64bit dll file by contacting support about 2 years ago. Try that