ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic time delay between wright and read.

Hi All

 

I'm woring on expanding my instrument sriver for my Agilent DSO-X4043A Oscilloscope.

I have made a VI that sets up a VPP measument and it works fine. Until I set the aqusition type to "Average" and ask it to do this over 128 measurements.

 

I suspect that this is due to the fact that it takes to long to do this averaging. So that I try to read before the data is ready.

Since I'm running this over ethernet, I dont have the otion of monitoring the amount of data ready to be read.

 

My question is therefore: Is there a way to determin when the scope is ready to "unload" the data?

 

I know I could set up a time delay, but I'm duing quite a lot of measurements. So I would like to have this VI running as fast as posible.

 

Help is much areciated

 

Regards Rasmus

0 Kudos
Message 1 of 4
(4,069 Views)
Have you tried an OPC? query? That stands for Operation Complete.
0 Kudos
Message 2 of 4
(4,067 Views)

Hi Dennis

 

Yes, I just tried that without luck. 😞

 

I get the -1073807339 timeout error after my read command and when I check the scopes error log afterwards I get a "Instrument reports:
-221,"Settings conflict"" massage.

 

I can however not anything in the instrument manual about conflicts with the aqusition type...

 

Regards Rasmus

0 Kudos
Message 3 of 4
(4,061 Views)
What does the manual say about the status byte? Perhaps you can read that.
0 Kudos
Message 4 of 4
(4,049 Views)