LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1073807339 with Rigol DS4052 oscilloscope

Hello,

I try to read data from a Rigol DS4052 Oscilloscope. I have a driver installed and I am using one of the exemplary files. When I run a VI, an error occurs:

error.png

 

I know that possible reasons are baud rate, parity etc., but I don't know where to check these settings. The block diagram of the VI provided with the driver looks as below:

rigol.png

 

Do you maybe have any ideas?

0 Kudos
Message 1 of 9
(4,140 Views)

What is the interface? USB? Did you install driver under windows for the unit if needed? First you should check if the address of the oscilloscope is present in MAX?

What is the used interface? GPIB? USB? Depending on the device, the unit might use a virtual serial port via the USB, but these details should be in the manual.

Also, using MAX, you could test the unit with some simple commands, like the IDN...

0 Kudos
Message 2 of 9
(4,085 Views)

I use USB interface and all of the drivers are installed.

The device is seen by MAX.

I think the problem occurs when LabVIEW tries to acquire data.

Do you have any idea how to check and set correct data transmission rates?

0 Kudos
Message 3 of 9
(4,076 Views)

You do not need to set transmission rates in this case.

Your error msg shows the error comes already from the initialization step (Initialize.vi). Are you sure you set and use the proper resource (VISA resource name)? Could you show us your settings?

 

Alternatively, you could query a *IDN command using MAX to be sure you are able to communicate with the device...

0 Kudos
Message 4 of 9
(4,069 Views)

Here is printscreen from NI MAX:

osc1.png

 

This is what I get when I send IDN command to the oscilloscope - it returns correct value.

 

osc2.png

 

and this is the VI, one of the provided examples, which results in the error:

osc3.png

 

And yes, I use channel 1 of the oscilloscope 😄

Any ideas?

 

 

EDIT: When I run it with Highlight execution enabled, the error occurs at the initizalization step, so you were righ! But how to fix it?

0 Kudos
Message 5 of 9
(4,058 Views)

Huh, interesting problem. It is good that you can communicate with the device via Max, and it responds. I have no idea why the initialisation fails. Before you try to run the example, open the init vi too, and turn on execution highlight. At which function the error starts inside this init vi?

0 Kudos
Message 6 of 9
(4,052 Views)

I would be happy to answer your question, but I don't know how to check at which function it stops. How can I check it?

0 Kudos
Message 7 of 9
(3,994 Views)

Well, I guess you get the same error msg as you show in your very first post? The error is produced by the VISA Read timeouting in the Initialize.vi, at the Reset step. No idea why the *RST command times out, I guess the first step the *IDN executed fine in this VI, since we do not get error info about this...

I have no idea why it happens...

 

0 Kudos
Message 8 of 9
(3,991 Views)

Hello Ms Engineer,

did you try to investigate and perform the steps from Knowledge Base Why Do I Receive Timeout Error -1073807339 on VISA Read or Write?

0 Kudos
Message 9 of 9
(3,939 Views)