Using the overflow parameter

Post your .Net discussions here
Post Reply
TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Using the overflow parameter

Post by TimOster »

I want to add an "autorange" function to the code I'm playing with. I see the overflow parameter in ps2000_get_values...

What I read is there is a two bit pattern here, LSB is Ch A, MSB is Ch B. What I didn't see is what to expect.

I'm not sure that's what is said in RETURNS. That seems to say you get a 0 IF there is an overflow, but doesn't say what happens if there is not an overflow.

A couple more words in the manual would eliminate questions :)

Thank you,

Tim

Hitesh

Re: Using the overflow parameter

Post by Hitesh »

Hello Tim,

This should be a case of converting the number returned to binary and vice-versa.
  • If there is no overflow on either channel, overflow will be 0
  • If there is an overflow on Channel A ONLY, overflow will be 1
  • If there is an overflow on Channel B ONLY, overflow will be 2
  • If there is an overflow on BOTH channels, overflow will be 3
I will ask for the documentation to be updated.

Regards,

TimOster
Newbie
Posts: 0
Joined: Mon Dec 01, 2014 5:36 pm

Re: Using the overflow parameter

Post by TimOster »

Thank you.

Tim

Post Reply