Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI Scope avoid "measurement already selected"

Hi,

 

I am using the IVI Scope Class in TestStand 4.1.1 to do multiple measurements within a short time.

After the first measurement the scope beeps and writes out the message: "measurement already selected" with each measurement.

Sure the message is right because it is the same measurement setting, but this message slows down the measurement by 30%.

 

Is there a possibility to avoid this "error"?

 

I am using the scope DSO3102A

 

Cheers Frank

Message Edited by frankne on 05-13-2009 06:23 AM
0 Kudos
Message 1 of 9
(4,455 Views)

Hello Frank,

         Can you please confirm that you have state-caching enabled for your IVI Driver session?  State-caching should greatly reduce redudant communication.  Also, it is recommended to not repeatedly configure an instrument to the same settings (such as in a loop).

 

Thanks,

 

NathanT

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

Hi Nathan,

 

caching is enabled and I do the configuration step just once.

In the loop is the read step and this causes the "measurement already selected".

 

Cheers Frank

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

Hello Frank,

         Please reduce the code down to the minimum amount that reproduces the problem, take an NI-spy capture of the problem (in a .spy format), and then attach both the code and capture to this post.

 

Thank you,

 

NathanT

 

Performing a Good NI Spy Capture for Debugging/Troubleshooting

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

Hi Nathan,

 

thanks for your support.

here are the two files you wanted.

 

Cheers Frank

Download All
0 Kudos
Message 5 of 9
(4,395 Views)

Hello Frank,

       Thank you for posting the NI Spy capture and the Sequence.  I am running into some problems when trying to reproduce the issue with my DSO3062A, so could you please take another NI Spy capture of the issue with IVI Scope unselected from the "View Selection"?  Spy>>Options>>View Selection tab>>Uncheck the box next to IviScope.  That will allow us to see the commands that are actually being sent to the instrument.

 

Thanks,

 

NathanT

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

Hi Nathan,

 

here the file you wanted.

 

Thanks for your help.

0 Kudos
Message 7 of 9
(4,305 Views)

Hello Frank,

       Thank you for attaching the additional NI-Spy capture.  It shows that the instrument driver only configures the settings once, starts a measurement, waits for it to complete, and then reads the measurement.  I looked through both the programming and user manuals for the instrument and could not find any reference to the error that you are seeing.  I also could not find a command to read the error information from the instrument, which in many instruments will give an error code that can be looked up in the manuals to determine what needs to be changed.  Did the instrument happen to display an error code in addition to the beep and "measurement already selected" message?

 

         I could not find anything when searching for "measurement already selected" on the Agilent website.  If you have time, could you please contact Agilent and see if they have more information about that message and what is causing it?

 

Thank you,

 

NathanT

 

0 Kudos
Message 8 of 9
(4,294 Views)

Hi Nathan,

 

no there comes no error code with the beep and the message.

 

I think i know why you cant reproduce the problem: the message appears just with the newest firmware 04.02.15.

I found a second scopy in my company: old firmware 04.02.10 no message, new firmware 04.02.15 an the message appears.

 

Can you now see "meassurement already selected" on your scope?

 

Cheers Frank

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