Add Measurements to python?

Post general discussions on using our drivers to write your own software here
Post Reply
strangequark
User
User
Posts: 2
Joined: Tue Mar 05, 2019 2:48 pm

Add Measurements to python?

Post by strangequark » Fri May 10, 2019 4:20 pm

I am trying to set up a way to measure and get the pulse width values in python. In the Picoscope software, this would be done by adding a measurement, but how is this done with programming languages?

I've been trying to decode the pico.measurements.dll file to see the source code as a means of using that to call the functions necessary in python, but it is written in Assembly and doesn't not translate fully when I try to decode into utf-8/text.

Is there a way I can have the source code for the .dll extension translated into text so I can read the commands? I do not see this option in the manual.

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

Re: Add Measurements to python?

Post by Martyn » Fri May 10, 2019 7:48 pm

We can't release any of our PicoScope code, however you should be able to code this easily. Look for max and min values in a buffer and then search for midpoint crossings and count the samples between them.
Martyn
Technical Support Manager

strangequark
User
User
Posts: 2
Joined: Tue Mar 05, 2019 2:48 pm

Re: Add Measurements to python?

Post by strangequark » Mon May 13, 2019 12:55 pm

Thank you, I will try that!

Post Reply