Amplitude axis issue

Post your LabVIEW discussions here
Post Reply
Waqas Ahmed Faroouqi
Newbie
Posts: 0
Joined: Tue May 15, 2012 5:36 am

Amplitude axis issue

Post by Waqas Ahmed Faroouqi »

Hello

I am using Picoscope6403, LabView 8.6.1 and Picoscope LabView SDK.

I have integrated Picoscope6403 in my LabView application using SDK.

My question:
When waveform is acquired and displayed in my application, amplitude axis doesn't correspond to voltage values instead it looks that it displays some ADC output values (quantized values).
So how to display waveform in my LabView application with amplitude axis showing voltage of acquired waveform? Any formula exists ?

Regards
Waqas

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Amplitude axis issue

Post by Martyn »

The raw ADC count value divided by the maximum count value (32512) multiplied by the selected voltage range

The following code snippet is from the c console application in the sdk

Code: Select all

#define PS6000_MAX_VALUE 32512

unsigned short inputRanges [PS6000_MAX_RANGES] = {	50,
																										100,
																										200,
																										500,
																										1000,
																										2000,
																										5000,
																										10000,
																										20000};


/****************************************************************************
* adc_to_mv
*
* If the user selects scaling to millivolts,
* Convert an 16-bit ADC count into millivolts
****************************************************************************/
int adc_to_mv(long raw, int ch)
{
	return scaleVoltages ? (raw * inputRanges[ch]) / PS6000_MAX_VALUE : raw;
}
Martyn
Technical Support Manager

Post Reply