PCS10 reading multiple times problem

Hi,

I have a PCS10 device and made a program in c++ to communicate with it and it works fine, but I am getting a problem when I set the gain and read the data from the device most of the time it gives me wrong values.
What the program does is:
It reads the values in the Channels first with gain of 30V (because I don’t know yet what are the values), then check the values if they are less than 15V , 6V or 3V, then I set the gain depending on these values and reread again to get more accurate values, and this operation is repeated several times.
When I use a delay of 400 ms between the first and second reading I get correct values from the reading, but When I remove this delay I get wrong readings.
Is there any way to make this 400ms delay less or could you please help me to get more accurate values?

Thanks,

David

Are you getting good values if there is used fixed gain setting without the automated gain update?

Thanks for you fast reply, When I measure with a fixed gain I get correct results.

OK. It seems there is need for some extra delay after each gain setting update or change.
I’m sorry, this is the delay due to the low USB communication speed.

BTW:
Have you downloaded this package from:
velleman.eu/support/download … cs10&type=
Software
DLL for K8047 (PCS10) for faster communication

I have tried the dlls in the link, but It is still giving me the same problem some values are correct and others are not.

Thanks a lot for your help and have a good day,

David