Test and Measurement Forum

PICOSCOPE 2204A

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

PICOSCOPE 2204A

Postby 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?
EduardoLima1
Newbie
 
Posts: 0
Joined: Mon May 07, 2018 9:34 pm

Re: PICOSCOPE 2204A

Postby 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.
Martyn
Technical Support Manager
Martyn
Site Admin
Site Admin
 
Posts: 3041
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 0 guests