Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1074001919 occurred at Read Spectra.vi using HR2000

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

0 Kudos
Message 1 of 4
(5,064 Views)

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

0 Kudos
Message 2 of 4
(5,038 Views)

How do you know you will get exactly 17 bytes back?

0 Kudos
Message 3 of 4
(5,016 Views)

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?

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
0 Kudos
Message 4 of 4
(5,005 Views)