Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why am I getting intermittant garbage measurements?

I am running some software that gets voltage and resistance measurements from a Tektronix 4054 O-scope. There is a function called DPO_GetMeasurement() in the O-scope code in CVI that is called into Test Stand every time it needs a measurement. There are different measurement types, etc., depending on what type of measurement it needs. However, regardless of what type of measurement it is performing, every once in a while, I will get this complete garbage number. Sometimes it will happen several times in a row, sometimes it won't happen but maybe one in ten tries.  It’s the same number every time: 99099999999999986303164714637431144448.0. I tried to decode it, in case it might be a term in hex or something, but to no avail. I scrounged around in the code and didn’t see it defined as an error code anywhere. I’m wondering if it might be a conflict between something in IVI Tools. I don’t know. Any suggestion would be of value. Thanks in advance.

0 Kudos
Message 1 of 6
(3,642 Views)
This is a very common problem in Tektronix measurement. Please include a necessary delay of few seconds before you use GetMeasurement(). It is needed for the instrument to respond. This will definitely solve your problem.
0 Kudos
Message 2 of 6
(3,613 Views)

Hello LMRoxy,

       Which IVI Specific Driver are you using?  Did you download it from IDNet?  If so, please provide the link.

 

Thanks,

 

NathanT

0 Kudos
Message 3 of 6
(3,601 Views)

What would be considered an appropriate amount of time? I forgot to mention that I had added a 2 second delay prior to the measurement, but was still running into the problem.

0 Kudos
Message 4 of 6
(3,600 Views)
Hi Nathan, it looks like the module I am using according to MAX is tkdpo4k_32.dll, IviDriver 1.0 & IviScope 3.0. 
0 Kudos
Message 5 of 6
(3,599 Views)

Hi,

I have a TEK DPO 4104 on my desk and I haven’t been able to reproduce what you are seeing yet. Can you post your code?

Matt
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,553 Views)