Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up HR4000

Hello,

 

I'm trying to use my HR4000 Spectrometer with LabVIEW 2010.

 

I currently have VISA 5.1.2, I've installed the Ocean Optics 2000 4000 driver as well as the HR4000.inf file. Afterwards I used VISA to create a resource which is recognized by LabVIEW, by recognized I mean it shows up as a resource option in the VI.

 

The VI I'm working with is the Acquire Continuous Waveform.vi which is one of the examples provided with the 2000 4000 driver, and when I run it I receive no errors but also no waveform appears.

 

What am I missing?

0 Kudos
Message 1 of 15
(5,593 Views)

Explain 'I used VISA to create a resource'. I hope you don't mean you used the VISA wizard for the USB connection.

0 Kudos
Message 2 of 15
(5,581 Views)

Uh oh, yes that's exactly what I meant...

 

0 Kudos
Message 3 of 15
(5,572 Views)

Why? That discards the inf file you got with the driver. You need to undo everything and use the provided windows driver.

0 Kudos
Message 4 of 15
(5,570 Views)

     Sorry, relatively inexperienced with LabVIEW in general and especially so with anything other than a DAQ. I've been given a spectrometer and told, "Here, make this work." by my research advisor.

 

     I used VISA to make a new one because originally, I tried using the inf file provided with the driver and I was met with the same issue. So now, I've removed the VISA driver(s) I made and am using the HR4000_vista.inf file provided with the Ocean 2000 4000 driver. When using the VI's, two visa resource names show: LPT1 and USB0::0x2457::0x1012::NI-VISA-40001::RAW. Running with either one still does not produce a waveform.

 

Thanks for your help so far.

0 Kudos
Message 5 of 15
(5,540 Views)
That looks like the VISA wizard resource. Did you also delete the compiled version of the driver? What does windows device manager say is being used?
0 Kudos
Message 6 of 15
(5,532 Views)

My apologies for the delayed response; I've been out of town without internet access. I went into my program files and deleted any files that I created with VISA however I haven't checked what the device manager says.

 

I'll be in the lab tomorrow to find out more.

0 Kudos
Message 7 of 15
(5,508 Views)

Under the device manager it reads the HR4000 as an NI-VISA USB device

0 Kudos
Message 8 of 15
(5,487 Views)

Then you missed something. Did you also delete the pnf file?

0 Kudos
Message 9 of 15
(5,484 Views)

Hello I face the same problem here; I just find no clues out. It's Win 7 64 bit, LV 2011 32bit.

 

Following original post, I see no waveform out.

 

 

0 Kudos
Message 10 of 15
(5,419 Views)