Example Code

Ocean FX spectrometer Driver (Rebranded Ocean Optics as Ocean Insight)

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Driver

  • LabVIEW Instrument Design Libraries for High-Speed Serial Instruments

    Other

  • ocean FX

Code and Documents

Attachment

Description

I had problem obtaining high speed data from Ocean FX spectrometer using omnidriver. I decided to implement the known OBP protocol for controlling and reading data from the Ocean FX spectrometer directly via the USB port. 

How to Use

I had written a small driver to replace the WinUSB driver with mine to read and write the USB port Labview Visa. Step 1. Replace the WinUSB driver with the OceanFX driver. Step 2 run the simple spectrometer VI to see if there is communication. The save high speed data into binary allows triggered high-speed acquisition from Ocean FX spectrometer. The analysis file provided will convert and graph the saved binary data. Enjoy!

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
mario_Cevese
Member
Member
on

Dear Chiki77

thanks for your contribution. I have an OceanFX, and I have tested your programs.

Is there any further evolution? I am comparing what you made with the Ocean Flame library available at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7833BD4A31DA1274E04400144FB7D2...

It would be great if you have done (or if you can make) something like that (with single blocks to make all operations)

Thanks

Mario

Duckelly
Member
Member
on

Where did you find the bytes for the commands?

Duckelly
Member
Member
on

Where is the WinUSB driver that you replaced?