Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RIGOL DS2072 - USB NI-VISA Initialization Error

Hi all,

I'm trying to configure my RIGOL DS2072 oscilloscope to work with LabView through USB, but I'm can't seem to figure it out.

I have LabView 2013 Evaluation on Windows 8 x64, NI-VISA 5.4 and also got Rigol's software UltraSigma (to retrieve printscreens which works fine).

I'm using the LabView examples for DS2000 series and when I run any of them, LabView just hangs and I cannot stop the program unless I disconnect the USB cable. After I reconnect the cable and re-run the VI I get this error.

−1073807240 The value of some parameter (which parameter is not known) is invalid

 

The error gets triggered from 'VISA Clear' module which, from what I've read, it clears the devices read/write buffers (http://zone.ni.com/reference/en-XX/help/371361H-01/lvinstio/visa_clear/)

This is similar to this person's issue, but I have the latest NI-VISA and it didn't fix it. - https://decibel.ni.com/content/message/46529

 

Also i've noticed that those DS2000 series example from the NI website have not been specifically tested for DS2072. This may be a reason, but I would assume that they all have similar configurations. 

 

Just to be sure that the program works, I've connected through LAN cable and it worked fine. Now to me it seems that NI-VISA has some issues with my type of oscilloscope. Can anyone look into this for me. I'd really appreciate your help. 

 

Thank you

Dragos.

0 Kudos
Message 1 of 18
(9,485 Views)

Are you getting these examples from the driver provided on the site below?
http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=CEDF09A2AA8F261BE0440021287E65...

Which example are you running? Can you provide a screen shot of the error?

 

Wan L
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 18
(9,470 Views)

Since the USB connection requires that the instrument be recognized as USBTMC, could you also include a screen shot from MAX. It would also require an inf file from Rigol. You should check to see if they have something tested with Win8 and a 64-bit OS. This windows driver is a key difference between USB and Ethernet connections.

Message 3 of 18
(9,454 Views)

USB ID tags have to be redone in the driver so it will work with Win 8. I had this issue with other USB driver for Win7 x64 and it was worse with Win8.

Contant Rigol to have them update the usb driver inf file so it is properly recognized in Win 8.

Message 4 of 18
(9,436 Views)

This documentation may help: USB Instrument Control Tutorial

http://www.ni.com/white-paper/4478/en#toc1

0 Kudos
Message 5 of 18
(9,411 Views)
Oh please. That tutorial is the absolute last thing that should be looked at. Why would you want to destroy the USBTMC standard in favor of trying to write your own? Have you done this and can provide an example?
0 Kudos
Message 6 of 18
(9,407 Views)

Hi everyone. Thanks for your help. Fortunatelly I contacted Rigol and their customer support sent me a Demo VI specifically for DS2000 that works perfectly fine on my windows 8 machine.

Here I attached the file if anyone else needs it. Thanks again for all your input.

 

Dragos Minea.

Message 7 of 18
(9,393 Views)

I have 3 of Rigol instruments (OScope, Func Gen and Spec An). They are a good deal, good instrument and Rigol is doing a great job supporting their equipment. All have USB remote program capability at such a low price and Labview drivers for everything. Great to hear they took care of you the North American support and sales team is friendly and easy to work with. Looking forward to seeing more good stuff come from Rigol.

0 Kudos
Message 8 of 18
(9,389 Views)

I agree with Dennis and SunshineDesign and retract my earlier post.

 

Investigation:

This should be an incompatiblity issue on instrument firmware USBTMC layer which lead to a runtime error when invoke viClear (a standard function in IEEE 488.2).

 

The dependency chain are as following: LabVEIW driver -> NI-VISA -> USBTMC -> USB x.x standard

 

USBTMC -- USB test and measurement class interface make communicates over USB using USBTMC messages based on the IEEE 488.1 and IEEE 488.2 standards.

 

So there might be something missed in the USBTMC layer, especially on a new OS Windows 8 64-bit.

 

 

Solution:

We need a stable and well tested USBTMC layer to completely resolve this issue. I agree with Sunshine that you could contact RIGOL to provide the inf driver.

 

Besides, as a workaround, you could *disable* or *remove* the viClear function in the Initialize.vi. Then everything else should work fine in the LabVIEW driver.

Rigol_DS2000.png

 

I checked the initialization part of RIGOL demo program, it doesn't use the viClear function. So it will not run into the error.

 


Please feel free to let me know if you have any further questions.

 

Thanks,

 

Charles

0 Kudos
Message 9 of 18
(9,324 Views)

I know the folks at Rigol North America and will contract them about this for you and get them involved on the issue. It may impact more than this instrument on Windows 8 systems. We found this to be the case with a number of USB instruments on Win8 since Microsoft dropped the USB standards and left it open to the industry. This matter is still working itself out as to how to deal with this security signature for devices.

0 Kudos
Message 10 of 18
(9,312 Views)