Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Dual-channel spectrometer not implemented using USB #8
With the dual-channel spectrometer (S2000 series using ADC1000-USB) then it is not possible to collect data from the two channels simultaneously using the USB driver (Ocean Optics OmniDriver). The ability to do this isn't documented anywhere in the OmniDriver documentation.
On Thu, Jan 4, 2018 at 11:07 AM, Norm Hoffer firstname.lastname@example.org wrote:
Thank you for contacting Ocean Optics.
The only way that you can get synchronized acquisiton from the two channels of an SD2000 is to place them into external hardware trigger mode, and then send the 5V TTL trigger signal to both channels simultaneously to begin their acquisitions.
External Triggering is in Appendix F on pages 109-112.
Ocean Optics Website
There does not appear to be a way to get the measurements of both channels simultaneously from the spectrometer. Still, it is desirable to support dual-beam measurements to see how well it would work if measurements are retrieved from the spectrometer serially. It looks like MobileDOAS writes the measurements out for both channels when enabled, but does not do the evaluation. Nor does the configuration tab allow for configuration of multiple channels. (It does have a drop down for Master/Slave, but ultimately only one set of references are written the configuration file and only one is used do evaluation.) This would need to be fixed. Once the program is capable of doing the evaluation, the output would need to be written to the evaluation log. Perhaps it is just a matter of writing additional columns for the Slave as it is for the Master. The Wind and Plume dialogs will need to be analyzed to determine the format it is expecting. These dialogs also don't appear to allow users to specify which portion of the measurements taken (e.g. start and end time) should be used for the calculations (it should not use all the measurements). However, there is a 'Start WindMeasurement', menu item under 'Control' menu on the main UI that may do the trick.
Some minor quirks in the evaluation configuration dialog were fixed (and also modified to allow insert/remove of multiple reference files at once). Other changes in CSpectrometer::ScanUSB and elsewhere were made to fix issue with second evaluation log not being written when 2 channels are enabled. To configure, 2 fit windows are created (one for master and one for slave) and configured. The result is two evaluation logs being written and the UI looks something like this:
The Plume Height and Wind Measurement dialogs, however, seem to want both master and slave data written to the same evaluation log file. Some changes are required to allow it to read both eval logs and process the data.