LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ocean Optics Spectrometer Data Acquisition

Hi all,

 

I am using the Ocean Optics HR4000CG-UV-NIR spectrometer and trying to get the spectrum using a LabVIEW programme. Unfortunately, it does not run (even following the step by step instructions on the Ocean Optics website!) and props up the following error:

 

Error 1097 occurred at Call Library Function Node in Wrapper_Create.vi->Trial.vi

Possible reason(s):

LabVIEW:  An exception occurred within the external code called by a Call Library Function Node. The exception may have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.

 

where Trial.vi is the VI that I made to read the spectrometer data. I have seen many threads in this regard, but it seems that the problem has not been clearly sorted out. Could anyone please help me? Following the earlier threads: I deleted the ooidrv.ini file, but to no avail. I am working using LabVIEW 8.6, 32 bit on Windows XP Professional.

 

Thanks and cheers,

Krishnan

0 Kudos
Message 1 of 7
(3,457 Views)

Hi Krishnan,

 

could you provide a few information?

 

- Windows Version

-LabVIEW Version

- Which Driver /Software did you install? 

 

I found this Link with Ocean Optics Software, but not sure if you used this or got instrument driver from somewhere else. 

Perhaps you can provide the source of your VIs and the link to the step by step instructions you used.

 

The error 1097 just indicates that the DLL/Function you or the instrument driver tried to call has returned an error. One possible reasons could be, that the DLL isn't compatible with your current LabVIEW version and thus doesn't call it properly.

 

But to find the problem it would be useful if you could provide a few more information about the drivers etc. you are using.

 

Best regards,

Lam

 

 

 

 

0 Kudos
Message 2 of 7
(3,426 Views)

Hi Lam,

 

Thanks for the reply. As I had written in the post, here are thedetails:

 

1. Windows version - XP Professional

2. LabVIEW version - 8.6

3. Driver installed - OmniDriver32Windows (from the Ocean Optics website)

 

The LabVIEW version seems compatible. The VI that I made was just following the step by step instructions on the Ocean Optics website that tells you how to use Wrapper.llb to get data readings from a spectrometer.

 

Thanks in advance for the help!

Krishnan

0 Kudos
Message 3 of 7
(3,422 Views)

Hi,

 

Are you sure that the data types your are passing to the DLL are correct.  This is an area that can be a headache and casue for this type of error.

 

 

-------
Mark Ramsdale
-------
0 Kudos
Message 4 of 7
(3,410 Views)

If you already ensured, that all values passed to the dlls have the right datatype you could use the DLL-checker to verify, that these dlls are really compatible with your current LabVIEW version:

 

How can I verify that my DLL is working

0 Kudos
Message 5 of 7
(3,375 Views)

A quick read of that white paper would indicate that it is specific to LabVIEW Real Time, so I'm not sure how it applies to his specific question, although if it is shown to be compatible with LabVIEW RT then I guess that would mean it will work with "regular" LabVIEW, although if it shown to be incompatible with the "subset of Win32" it might still work on a full OS version.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 6 of 7
(3,368 Views)

Hi all,

 

Thanks for your inputs, though finally I found out that the problem was with the version of the LabVIEW I was using. It seems that LabVIEW 8.6 stopped interfacing properly with the spectrometer. I installed LabVIEW 2011 and the problem got sorted out! Though I agree, updating the software might not be the most professional way to troubleshoot!

 

Cheers,

Krishnan

0 Kudos
Message 7 of 7
(3,365 Views)