Test and Measurement Forum

Autoscale in LabVIEW

Post any questions you may have about our current range of oscilloscopes

Autoscale in LabVIEW

Postby jon@ktizo.co.uk » Wed Apr 11, 2012 9:26 am

Hi - has anyone managed to successfully write an autoscale function for any of the Picoscopes in LabVIEW? Desktop scopes have a built-in autoscale function you can call, but with these you have to write your own - and it's a lot harder than I thought it would be.
Ideally for the 2203 but anything yould be a help.
Many thanks,
Posts: 0
Joined: Fri Oct 28, 2011 9:09 am

Re: Autoscale in LabVIEW

Postby Martyn » Wed Apr 11, 2012 9:46 am

Do you mean that you wish to change the input voltage range of the scope automatically if an overvoltage is detected ?

If yes then you will need to be looking at the overflow value returned by ps2000_get_values, ps2000_get_times_and_values, ps2000_get_streaming_values, ps2000_get_streaming_values_no_aggregation, or my_get_overview_buffers, depending upon which mode you are using. If overflow is present then change to the next scale.

To work in the opposite direction you will need to look at the returned value and if the max/min returned are less than the full range of the next range then step down. You may have to tune the values so that you don't get a continuous up down switching of ranges.

Unfortunately we don't have an example of this in action, but if you post your vi we can take a look at your implementation if this would help.
Technical Support Manager
Site Admin
Site Admin
Posts: 3114
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Return to USB PC Oscilloscopes

Who is online

Users browsing this forum: No registered users and 1 guest