Different ADC counts in LabView and Python?

Post general discussions on using our drivers to write your own software here
Post Reply
JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Different ADC counts in LabView and Python?

Post by JamCam »

Hello all

I work in a laser laboratory. We use a photodiode to detect our laser pulses and this signal is fed to the oscilloscope's BNC input.

I have a Python program that I have written with the wrapper PicoTech supply. My ADC counts for the laser pulses are below:

https://i.imgur.com/mf6HHeK.png

I also have a LabView program that is an extension of the one supplied by PicoTech. My ADC counts for the laser pulses in that instance are:

https://i.imgur.com/Ckk8Z26.png

You can see there's a factor of 10 difference between the ADC counts for Python and LabView and I cannot for the life of me find the parameter to change to improve Python's ADC counts. Both programs have the same triggering parameters, pre- and post-trigger samples, timebase and are using block capture,

Any advice anybody can offer?

Many thanks

Jamie

NeilH
PICO STAFF
PICO STAFF
Posts: 265
Joined: Tue Jul 18, 2017 8:28 am

Re: Different ADC counts in LabView and Python?

Post by NeilH »

Hi Jamie

Are the voltage ranges in both programs being set to the same value?

Neil
Neil
Technical Support Engineer

JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Re: Different ADC counts in LabView and Python?

Post by JamCam »

Hello Neil

Yes, both 5V ranges.

Thanks

Jamie

JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Re: Different ADC counts in LabView and Python?

Post by JamCam »

Doh! Just realised that the Pythonic implementation goes through the ADC2mV function... So I'm comparing ADC counts with voltages!

Apologies.

Post Reply