Test and Measurement Forum

Using the overflow parameter

Post your .Net discussions here

Using the overflow parameter

Postby TimOster » Thu Jan 22, 2015 6:31 pm

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
TimOster
Active User
Active User
 
Posts: 12
Joined: Mon Dec 01, 2014 5:36 pm

Re: Using the overflow parameter

Postby Hitesh » Tue Jan 27, 2015 2:18 pm

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2063
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Using the overflow parameter

Postby TimOster » Tue Jan 27, 2015 3:37 pm

Thank you.

Tim
TimOster
Active User
Active User
 
Posts: 12
Joined: Mon Dec 01, 2014 5:36 pm


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests