Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB device not present in VISA resource list

I have an Agilent 6000 series oscilloscope connected to my PC via a USB cable.  I am able to see the device in Measurement & Automation explorer, and I am able to send/receive data via a Visa test panel.  However, I am encountering problems when I try to interface with the device via Labview 8.5 vi's.  In the "USB RAW - Bulk.vi" in the Labview examples, the device is not listed in the "USB RAW VISA Resource Name" pulldown menu.  This is perplexing, as yesterday, the device did appear in the menu, and I was able to connect to the device and send/receive data using this vi.  I have tried power cycling the device and my computer, but to no avail.

However, if I open a new vi, and create a VISA resource control, the device does appear in the menu.  In this context, I am seemingly able to connect and send data to the device but unable to read data.  Again, I can send/receive data perfectly well in Measurement & Automation explorer, and in Agilent's I/O program, but not in Labview itself.

Any advice would be greatly appreciated.

LRC
0 Kudos
Message 1 of 13
(8,140 Views)
Your instrument is not USB RAW and you should not be using that example. You should be trying to use the driver at http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=9745. If for some reason, you want to create your own code, use use either the Instr or USB Instr class of the VISA Resource Name.
0 Kudos
Message 2 of 13
(8,138 Views)
To add to this discussion, you should be using the drivers for this device instead of the USB Bulk.vi
After you download and install the drivers, you should be able to open a VISA session from the drop down menu.

Please verify that your device is showing up in MAX first.
Let us know if this helps.
Christian A
National Instruments
Applications Engineer
0 Kudos
Message 3 of 13
(8,096 Views)

I hate to bring up an old topic, but I'm experiencing a similar issue with a SATO CL412e USB printer. I have created a driver using the VISA Driver Development Wizard. I had no problems. I see the device in both Device Manager and MAX. If I first create a VISA Resource control or constant, the USB device shows up along with COM1 and LPT1. I can then write to the printer with no problems. If I save and close the vi and open it back up, the USB device is no longer in the VISA Resource List. Even after selecting Refresh from the drop down. Sometimes it just disappears from the list just after creating the VISA Resource control or constant. I can manually type the VISA Resource alias in the drop down box and communicate with the printer, but I can't expect someone to remember to type something in there if it doesn't show up in the list. I am using VISA 5.0.2. I have the VISA class set to Instr. I can change it to USB RAW and it seems to consistently show the USB printer; however, I need it to also show the COM ports as we do still have some printers that are Serial. I guess I could use the list VISA resources vi and build the list of VISA resources. Any suggestions would be great.

Thanks

Rick

0 Kudos
Message 4 of 13
(7,428 Views)

Does the device still show up in MAX when it doesn't show up in the VISA resource control?

 

 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 5 of 13
(7,399 Views)

Yes, it still shows up in MAX and Device Manager.

Rick

0 Kudos
Message 6 of 13
(7,396 Views)

Hi Rick,

 

Would it be possible to generate a MAX Report so that I can look a little deeper into your system.  Once you generate the report you can post it on our ftp: ftp://ftp.ni.com/incoming.  Just reply to this thread with the name of the file so that I know to look at it.  

 

 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support
0 Kudos
Message 7 of 13
(7,380 Views)

My device (Ocean Optics USB2000) shows up neither in MAX nor in the VISA resource list of the Setup.vi I downloaded last week. The spectrometer does work however under another software (LoggerPro). Could it be that MAX will not see the device because another driver is already installed? I would think that it should not matter as long as I do not run the other program.

 

Best regards, Ole

0 Kudos
Message 8 of 13
(7,352 Views)

Hello,

 

I'm assuming you got your driver from Ocean Optics.  Have you downloaded NI's driver for the USB2000?  It's available at the link below.  In the future, all 3rd party supported drivers are available for download at www.ni.com/idnet.

 

Ocean Optics USB2000

http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=8113

 

As a general rule MAX shows only NI devices, however, there are exceptions.  Try switching out your USB cable.  If that doesn't work, then let me know and we'll troubleshoot this further.

 

 

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
0 Kudos
Message 9 of 13
(7,330 Views)

Hi Shawn,

 

I had tried unconnecting. Now I tried again. Still no success. NO, I did not get a driver directly from Ocean Optics but via Logger Pro. I have now uninstalled LoggerPro. Windows can still recognize the spectrometer. Note that it calls it 650 and not 2000. 650 is written in paint on top of the spectrometer and 2000 on a bar code on the bottom. Yes I allready downloaded the ni-drivers (I suppose it is the Initialize.vi and OceanOptics2000-4000SpectrometerSetup.vi) I attach a screen shot.

 

PS: I forgot if I mentioned that the spectrometer works under LoggerPro

 

Best regards

 

Ole

0 Kudos
Message 10 of 13
(7,324 Views)