From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase the speed of measurement

Solved!
Go to solution

Hello everyone,

 

I need to use a Keithley 2450 to apply a DC voltage and an SR 830 Lock-in to measure AC signals. In my case, I need to continuously change the DC voltage and have a real-time measurement of V-I DC from Keithley 2450 and V AC from SR830. The picture below shows Keithley 2450 code. The small while loop on the left gives a series of DC voltage. In the large while loop on the upright, for each iteration, a V DC is applied, a current value is measured and the values of time, V and I are input into a queue for plot a graph and maybe some other process in the downright while loop.

For the upright while loop, every iteration takes 43 millisecond, which is quite long. What can I do to reduce this time? 

 

Thank you.

Zhu

I-V sweep.png

0 Kudos
Message 1 of 15
(4,815 Views)
Solution
Accepted by topic author zhaosir

Hi zcchina,

 

For the upright while loop, every iteration takes 43 millisecond, which is quite long. What can I do to reduce this time?

43ms is rather short I guess: you have an external DAQ device connected by a bus (serial?, GPIB?, LAN?). The communication takes time, the command processing in the device takes time, the measurement itself takes time. Atleast the last usually is mentioned in the Keithley manuals!

 

To improve measurement time you could decrease measurement resolution of the K2450…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 15
(4,807 Views)

Hello GerdW,

 

Thank you!

 

In my case, Keithley 2450 is directly connected to the computer by the usb connection. I have also tried with a GPIB connection. Both take 43 millisecond.

I found some guy has got a much higher speed, about 60 points/sec(see http://forum.keithley.com/phpBB3/viewtopic.php?t=78440)

Are there any improvements for the structure or measure scheme of my code?

BTW, how to lower the measurement resolution of K2450? Lower the NLPC?

 

Zhu

0 Kudos
Message 3 of 15
(4,794 Views)

Hi zhaosir,

 

are you the same as zcchina? Are you working as tag team?

 

Both take 43 millisecond.

So time need is driven by execution speed (of Keithley) and measurement time…

 

I found some guy has got a much higher speed, about 60 points/sec

In the link things like disabling autorange is mentioned. Have you tried that?

 

how to lower the measurement resolution of K2450? Lower the NLPC?

It's all in the manual of your K2450. Did you read it? Keithley usually supplies very good manuals, explaining all commands with all their options…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 15
(4,781 Views)

Hello GerdW,

 

Same guy. I just changed ID.

The auto range is off. But I dont change the default  NLPC. I think maybe that makes a difference.

The manual is so long, especially the reference manual. I just ctrl+F to go through the ref manual...

 

Regards

Zhu

0 Kudos
Message 5 of 15
(4,767 Views)
Solution
Accepted by topic author zhaosir

Things that typically help acquisition speed (some may not apply to this instrument):

  • Turn off the display
  • Turn off autozero
  • Turn off autorange
  • Lower resolution
  • Lower NPLC (Number of Power Line Cycles) used to take measurement

GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 15
(4,760 Views)

Hello GerdW,

 

I have changed the NPLC from 1 to 0.5, one iteration time are reduced to 23 ms. I also tried to turn off the display, which made little difference.

Thank you agian.

 

Best

Zhu

0 Kudos
Message 7 of 15
(4,722 Views)

Hello crossrulz,

 

I changed a lower NPLC (from 1 to 0.5). One iteration time changed from 43 ms to 23 ms.

Thank you.

 

Zhu

Message 8 of 15
(4,716 Views)

@zhaosir wrote:

Hello GerdW,

 

Same guy. I just changed ID.

The auto range is off. But I dont change the default  NLPC. I think maybe that makes a difference.

The manual is so long, especially the reference manual. I just ctrl+F to go through the ref manual...

 

Regards

Zhu


Kids and their attention spans these days.  😉

 

You can't tell me a manual is long unless it's longer than those hairy several-hundred page long HP/Agilent manuals!  I think I read one that weighed in at over 500 pages!!!  (Although i will say that those manuals are worth the read if you can sit through them.) 😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 15
(4,686 Views)

Actually the Keithley 2450 reference manual is over 1000 pages long

0 Kudos
Message 10 of 15
(4,662 Views)