PicoScope 7 Software
Available on Windows, Mac and Linux
PicoScope 7 Software
Available on Windows, Mac and Linux
OEM & custom applications
PicoScope, Pico data logger and RF products can be used as components in custom applications and OEM projects.
A to Z of PC oscilloscopes
Everything you need to know about PC oscilloscopes from Advanced Triggers to Zooming.
A to Z of Data Loggers
Everything you need to know about PC-based data loggers from Alarms to Zooming.
Application Notes
Details of some of the many applications for Pico data logger and oscilloscope products.
How do I measure...?
Find out how you can measure using Pico products
Videos
Showing you how to get the most out of PicoScope oscilloscope software.
Documentation
Up-to-date versions of the documentation supplied with your products in PDF format.
Educational Experiments
Our library of science experiments suitable for use with oscilloscope and data logging products.
PicoApps
Want to share hints, tips and code with other developers? Show your Pico-based products to the world.
Newsletter
Archive of our monthly Test and Measurement Newsletters.
Why do I need the call to GetMinMaxAcdCounts if r is simply the value input in SetAnaologInChannel?Scaling
To convert from ADC values to volts, first obtain the minimum and maximum ADC
values for the selected channel by calling the HRDLGetMinMaxAdcCounts function in
the driver. Next, scale the ADC value to the voltage range you specified when you
called HRDLSetAnalogInChannel. You can calculate the voltage range
programmatically by using
Vmax = 2500 mV / (2^r)
where r is the range constant you supplied to HRDLSetAnalogInChannel (0 for ±2500
mV, 1 for ±1250 mV and so on).
This is just giving the actual maximum for the chosen range. As you have to use r to set the channel you may as well use r in the calculation of the value returned when you read a channel. r could be linked into an enumeration for a drop down combo selection box in C#, so that selecting a voltage range in the drop down gives a value for r which can be used in two placesVmax = 2500 mV / (2^r)
This is required because the returned values can change depending upon the conversion time that you have chosen for the channelHRDLGetMinMaxAdcCounts
Code: Select all
volatge=AdcValue * (2500/(2^r)) / MaxAdcCount
Return to “General Software Discussions”