LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Code execution issue Labview OceanOptics USB4000

Hi I'm quite new to LabVIEW, but I was tasked in my lab to edit a vi that was made few years back.

 

I'm using LabVIEW 2021 SP1 (64 bit) to execute this code. I use an Oceanoptics USB 4000 along with Omnidriver to get the spectrum

 

The vi uses a number of sub vis that try to get the spectrum out of the code and plot against the magnetic field supplied from a Kepko power supply. The spectrometer initializes with no problem and the wrapper is used as a local variable to transfer the data across the case structures. However the subvi that is used to set the integration and getting the spectrum value just cease to execute and the code just gets stuck. It doesn't allow me to abort it either without having to end the task from task manager. 

 

I did try running the subvis separately by adding the necessary wrapper to create, open, close, and destroy which does not give me any issue at all. I'm just not sure what's happening here. Does anyone have any tips for me?

 

Thank you

0 Kudos
Message 1 of 3
(956 Views)

I'm pretty sure that the code you're calling there are DLL calls wrapped up inside LabVIEW VIs.  If the DLLs are 32-bit only your 64-bit LabVIEW can't use them.  Do you have a 32 bit LabVIEW version you can use?  If not, you can install the 32 bit version alongside the 64 bit one and they share a license.

 

Also, can you post actual code files instead of screenshots?  It's VERY difficult to troubleshoot screenshots even under normal situations, but in the case of the ones you posted there are many cases where wires appear to be going under structures and it's impossible to tell where they connect to for certain.

0 Kudos
Message 2 of 3
(921 Views)

Hi Kyle, 

 

Thank you for your reply. Yes, I believe the version issue could be the problem here it was initially written in Labview 2012 but I have 2021 atm. I will try and run the vi on 32bit and check. Sorry about the screenshots. I have attached the Labview Vi along with the Sub Vis that I used here. 

The wrapper dll came with the omnidriver software so I'm not sure if that can be run without installing it. 

0 Kudos
Message 3 of 3
(887 Views)