I read channel 1 in my borland c++ project with ReadCH1(data). The settings of the PCSU1000 are: Time/Div 50µs; Channel1 1V, Probe x1. I get the following data back: data={2500000, 8000, 23, 50, 50 … }. The "50, 50 … " are the real data. The “23” is the ground level and the “2500000” is for the number of dots (125 for every 50µs). Is this right? The “8000” have to do with the voltage level. But i cant find a connection between the 8000 and the voltage level 1V!?
The three first data values the DLL returns are:
Sample rate [Hz]
Full scale [mV]
GND level [counts]
That 8000 you got is the full scale voltage (1V/div * 8div).
This 8000mV corresponds also the data value 255.
For easy conversion the data to volts the DLL returns the full scale value.
Hi
you mean that 8000mV------255
x ----------50
x [mV]= (50 * 8000)/ 255
I have tried but false values
and if I have 2v/div, fullscall 16000 mv
kann I say general the Volte value = ( fullscale * Databuf(5))/ 255)
Do i somthing wrong
thank you in advance
To get the real voltage value you must also take into account the GND level.
The DLL returns i too.
You may calculate the voltage using this formula:
Voltage value = fullscale * (Databuf(n)-GND_level )/ 255
If you get on 1V/div range the reading 50 and the GND_level reading is 128:
Voltage value = 8000 * (50 -128)/255 = -2447,06 mV
= -2.447 V