Autoscale in LabVIEW

Post any questions you may have about our current range of oscilloscopes
Post Reply
jon@ktizo.co.uk
Newbie
Posts: 1
Joined: Fri Oct 28, 2011 9:09 am

Autoscale in LabVIEW

Post by jon@ktizo.co.uk »

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,
Jon.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Autoscale in LabVIEW

Post by Martyn »

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.
Martyn
Technical Support Manager

Post Reply