Post any questions you may have about our current range of oscilloscopes
Post Reply
Posts: 0
Joined: Mon May 07, 2018 9:34 pm


Post by EduardoLima1 » Mon May 07, 2018 9:59 pm

I am trying to retrieve the data from the oscilloscope using ps2000.dll. My application is a WPF application and VB.net.
The example shown in the website is not very clear in relation to using this dll.

they have the following function

threshold = mvToAdc(500, channelARange, PS2000Imports.PS2000_MAX_VALUE)

but there is no information about mvToAdc. What are they doing inside that function?

I can communicate to my scope but the data I read is always zero. It does not show real data coming from the scope.

I have a signal applied to my scope.

Can anybody help with using the dll from vb.net or csharp?

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


Post by Martyn » Tue May 08, 2018 5:25 am

You will find this function in the PicoFunctions.vb file found in the shared folder

It will convert a mV value, in this case 500mV, into an ADC count for the chosen rnage of the channel. This is returned as the trigger threshold value in the line of code.
Technical Support Manager

Post Reply