LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running VI including NETWrapper Closes LabView

Hello!  I am running into an issue where a couple seconds after I hit run, LabView closes completely. Not just the VI, but all LabView windows currently open.  I am trying to get an old UV-Vis absorption VI running. When I got it the SetIntegrationTime node didn't have an input for SpectrometerIndex so I connected that and can now run it.  The problem is, every time I hit run it closes LabView entirely.  I'm in LabView version 21 on a Windows 11 computer, with the most recent version of OMNI/SPAM (end user version, not developer version) from Ocean Optics.  Not sure what version of LabView the example was written in; at a guess 8 because that's what other examples from the same source were created in. I'm using a USB2000 UV-Vis spectrometer which works fine with my UV-Vis transmission VI.  I tried single stepping thru the block diagram, and LabView crashes on the step after the GetWavelengths invoke node.  I only get a LabView crash error if I step thru, otherwise LabView crashes but doesn't generate an error message. 

0 Kudos
Message 1 of 2
(489 Views)

We used to use OMNI/SPAM for Ocean Optics but we could not get it to work reliably once we switched to Windows 7 or later.  Windows XP and earlier it worked on.

 

We currently use this driver instead:

https://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7833BD4A31DA1274E04400144FB7D...

 

It uses a USB RAW driver instead of sharing the Ocean Optics standard driver, so you have to switch drivers if you want to use the manufacturer's software instead of LabVIEW, then switch back to the USB RAW drivers afterwards.  Not the nicest solution but it works enough for us.

 

Ocean Optics became Ocean Insight a while back and they have a new API called "OceanDirect" to replace OMNI/SPAM if you want the newest API, but it's not free so we haven't tried it.  If you have a budget and the NI driver I linked isn't acceptable, you could try that:

https://www.oceaninsight.com/products/software/drivers/oceandirect/

 

0 Kudos
Message 2 of 2
(464 Views)