09-12-2013 11:38 AM - last edited on 09-13-2013 11:32 AM by Matt_McLaughlin
Hello!
I'm using LabVIEW 2011 (32-bit) on a Windows 7 computer. I downloaded the Ocean Optics 2000 4000 driver and installed the driver as described in the Ocean Optics 2000 4000 Instrument Driver Readme.
So Shawn, I think I use the Driver Revision 1.3.2 (Original Release Date: 11/12/2009 , Current Revision Date: 03/15/2013).
I installed the driver for LabVIEW 2010 ( http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=7833BD4A31DA1274E04400144FB7D2... because obviously there exists no driver esspecially for LabVIEW 2011.
Is this the correct way to do it, or should I install the driver version for LabVIEW 2012?
When I use my HR2000 sectrometer I struggle with the OceanOptics20004000LogSpectrum.vi and I get the following error message (also attached).
Error -1074001919 occurred at Read Spectra.vi
Possible reason(s):
Instrument not synchronized properly. Power cycle the instrument.
When I unplug the device, plug it in again and click on continue nothing happens. The VI can't read the spectrum.
An Excel file is produced, but only contains the header (also attached).
The strange thing is, that the example file AquireContinuousWaveform.vi works and I can see the spectrum.
Do you have any idea how to fix this? Do you think it's a problem with the driver?
Thanks for any help!
Christina
09-12-2013 04:54 PM
Okay I couldn't solve the problem, but I found where or what it is in detail:
The problem occurs in the Query Status.vi. In this vi there is a VISA Read Function, which gives the following error message as its output:
Error -1073807339 occurred at VISA Read in Ocean Optics 2000 4000.lvlib:Query Status.vi
Possible reason(s):
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
I used Single Stepping (as you can see in the attached Probe Watch Window in QueryStatusVI.png). The input for this Function is the VISA resource name, a byte count (set to 17) and an error in. I don't understand why it gives this error as its output.
Do you have any idea?
Christina
09-13-2013 12:07 PM
How do you know you will get exactly 17 bytes back?
09-13-2013 03:36 PM
Hi Christina,
Have you tried adding a delay to the Query Status.vi between the VISA write and VISA read? That may allow the VI time to receive the instrument's reply.
Have you tried using the default value in the Number of Spectrum control (the default is 5)?
It is possible that the machine is in an odd state. Are you running any other code before trying this example?