Unable to recognize Ocean optics 4000

Hello Sweepme,

I have added the spectrometer module and the corresponding ocean optics 4000 , however, the software gives an error that is could not recognize my ocean optics 4000 device, how should I address this problem?

2 Likes

Hi Shu-Jen,

to help you with this question, I would need to see whether there are any messages in the Debug widget. Can you check whether there is any debug output and paste it here as text or as screenshot?

You can find the Debug widget via key F2. It will then popup in the Dashboard or via menu “Widgets” → “Debug” → “Show”.

One reason could be that you need to installt an OceanOptics hardware driver (not a SweepMe! driver) first so that you can see the device in the Windows device manager as Ocean Optics equipment.

Best, Axel

Hi Axel,

Thanks for your feedback, indeed the problem seems to be missing some driver for the Ocean Optics 4000, I have contacted Ocean optics about where I can get such a driver. I actually realized one additional issue, when I try to open one of my old OLED program, it is giving the attached error, where can I find these missing modules?

Hi Shu-Jen,

I remember that the correct driver was often installed when installing the software from OceanOptics that you might find on a CD shipped with your spectrometer. There seem to be a new software called OceanView

Maybe you can give it a try and see it will install the drivers for your spectrometer. If that works, please let us know and we add some information to the webpage of the instrument driver.

Regarding your missing modules, I can just guess but if you have used your setting at another computer beforehand where our Add-on modules have been installed, they might not be available on your new computer setup yet.

You can read more about the Add-on modules here
https://sweep-me.net/services/add-on-modules

Add-on modules can be purchased as lifetime license and come as a bundle of 13 modules, including Condition, ControlWidgets, CustomFunction, Form, ReadValues etc.

Maybe check whether you have used one of them in your setting.

Furthermore, you can check whether some of the free basic or instrument modules are not yet activated.

You can find a list of all modules here:
https://sweep-me.net/modules

If a certain module is not yet activated, you can activate them in the version manager.

The error message in your screenshot is complaining about a missing widget. Add-on modules like Form or ControlWidgets are able to provide further widgets to the Dashboard that cannot be created if these Add-on modules have been used. This could explain why you see the error message about the missing widget that can not be found in the Dashboard.

There should be a further error message about missing modules that have not been loaded correctly. Maybe also check the Debug widget.

If you are interested in purchasing the Add-on Modules, please write us to contact@sweep-me.net

Thanks and best
Axel

Thanks, the Ocean optics problem is resolved by downloading the Ocean view from Ocean Optics!

1 Like

Hi Axel, I am experiencing a new issue, after loading the Ocean view, the sweepme can recognize the spectrometer, however, we could not see any relevant sweep value and an error came back, how could I address this issue?


Hi Shu-Jen,

you can also run the Spectrometer module without any sweep mode by selecting “None”. In this case, no sweep value must be selected. Just fill the options and start the measurement.

If you select a sweep mode such as “Integration time in s”. You can use the Sweep editor attached to the Spectrometer module to define a sweep of integration times. This is very similar to the SMU module.

Besides taking the Sweep editor as Sweep value, you can also select another source from another module. This can sometimes be helpful to change the integration time depending on other factors.

I guess in your case, you can use Sweep mode = None and just set a constant integration time in the Options section.

Let me know if this works for you or if there are any further issues.

Thanks and best, Axel

Hi Axel, Many thanks for you reply, I tried by selecting none for the sweep mode, it turns out another strange error, ‘Spectrometer’ object has no attribute ‘minimum_integration_time_micros’, do I need to change some setting to my Ocean optics 4000? I have tried both of my Ocean optics 4000 spectrometer but both have this error!


Thanks for the further screenshots.

The error that you get comes from this line in the code:

Here, the driver tries to query the minimum integration time to later check that no smaller integration times are applied.

However, it seems to fail although this code already worked for Ocean Optics USB4000 spectrometer. The good news so far is, that the driver is already able to create the self.spectrometer object which comes from the underlying python-seabreeze library that is shipped with the driver.

It is not immediately clear why this function does not work. One reason could be the fact that we had to repackage the driver for SweepMe! 1.5.6 to work with Python 3.9 and supporting 64bit.

It might be that the API of the underlying python-seabreeze was changed in the meanwhile and the command ‘minimum_integration_time_micros’ does not exist anymore.

The documentation of the python-seabreeze library does not list this old command anymore, but instead provides this new function
https://python-seabreeze.readthedocs.io/en/latest/api.html#seabreeze.spectrometers.Spectrometer.integration_time_micros_limits

that returns both limits, the upper and lower one.

So, I guess it must be replaced.

You can test this by creating a custom version of the driver in the Version manager and adapt the errorneous line.

Read here how to create custom version:
https://wiki.sweep-me.net/wiki/Version_manager#Create_custom_versions

Once the custom version is activated, you modify the code and when running a measurement you can see the error messages as usual in the Debug widget and also add print functions to investigate the objects.

If you need professional help with doing the changes, please write to contact@sweep-me.net and we can take a look at the problem.

If the above suggestion works for you, please let us know.

Thanks and best,
Axel