I am writting a class a Thorlabs Optical Spectrometer. I am using python ctypes to read a provided FTSLib.dll.
Even though the class runs properly, I can engage the instrument, measure, process, and release it I get the following error, which shows up randomly when I try to read from the instrument:
OSError: exception: access violation reading 0x0000000000000004
Any ideas where does this come from?