LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling rate issues with 6517B

Hi everyone,

I'm running the attached code to control my 6517B, but I'm struggling to achieve the full specified sampling rate. Accuracy isn't my main concern—I just need to reach 400–430 samples per second. However, no matter how I adjust the aperture settings, I can't get beyond 144 samples per second.

Are there any limitations in my code that might be preventing faster measurements?
I'd really appreciate any insights or suggestions.

Thanks in advance!

0 Kudos
Message 1 of 5
(322 Views)

Can you post your VI saved back to an earlier version?  Most of us on the forum don't use the latest version.  I would recommend back-saving to 2019.

 

Since I can't look at it to check what exactly you're doing, what connection are you using (serial or GPIB)?  If Serial, have you changed the baud rate?

 

If you're using serial at 9600 baud, that's only 1,200 bytes per second.  Even at other speeds, serial is still pretty slow.

0 Kudos
Message 2 of 5
(273 Views)

Hi Kyle,
I am using a GPIB. I've tried saving to the version 19.
I've got a couple export errors but it runs on my computer still probably some missing dependencies?
Please let me know if it runs for you.

0 Kudos
Message 3 of 5
(265 Views)

It looks like you're saving to a file in the same loop as you're doing the readings in.  If you disable the file saving action, does that speed it up?  I know you're only writing a small amount of data, but it could be slowing it down somewhat.

 

It also looks like you're using the drivers from the manufacturer.  I don't have drivers for that exact bit of equipment, but I have used other Keithley drivers before.  Those are usually good, in that they are functional, but they often have unnecessary extra functions in them.  I would bet that if you opened up the "Read" VI that's in your loop, there would be at least one extra subVI in there (an error check), maybe more.  If you can get rid of the error check that could also speed it up.

 

The last thing is another question.  Do you need to see the data live, or do you just need to collect it at a certain rate and review it later?  If it's the second one, look into doing a buffered read, where the equipment stores all the data on it and then you get it later all at once.  I don't know if it's possible for your exact circumstances, but I know that in general it's possible.  Someone about a year ago got it to work for their application:

 

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Help-reading-buffer-in-Keithley-Electrometer...

 

0 Kudos
Message 4 of 5
(217 Views)

I will give it a try thank you!

0 Kudos
Message 5 of 5
(154 Views)