Python Project for Oscilloscope Automation

Post discussions on applications you are writing
Post Reply
bcw962
Newbie
Posts: 0
Joined: Wed Sep 02, 2020 10:31 am

Python Project for Oscilloscope Automation

Post by bcw962 »

Hi,

So I am trying to build a program which will allow me to automate the use of the Oscilloscope. Currently I only want to be able to set the number of samples and the time frame which I then want to export the data as CSV file for further computation later on.

Any help which this forum can provide will be much appreciated and I will keep you updated on my progress.

Thanks,

Gerry
PICO STAFF
PICO STAFF
Posts: 1145
Joined: Mon Aug 11, 2014 11:14 am

Re: Python Project for Oscilloscope Automation

Post by Gerry »

Hi bcw962,

There are 3 ways to do what you want:

1/ The easiest way to use simple automation, is to use the Macro Recorder in PicoScope 6 (under the 'Tools->Macro Recorder' menu option). You just set it to record your actions and it will then create an execution run that you can save as a file to load and re-use. Note that the commands that it saves are also the commands used by the Command Line Interface (the next method for automation).

2/ So, you can also manipulate PicoScope 6 from the command line or within a batch file using PicoScope 6 automation commands. A list of available commands can be displayed by typing the command line string picoscope.com /a ? in the CMD window. You will notice that the commands you are looking for are: NumberOfSamples, CollectionTime and File.SaveAs .csv. For an example of how to use the commands, and how they would look in a batch file, go here: topic38401.html?&p=136661&hilit=automation#p136661. Note that if you want to find commands to use, another method would be to execute the action in PicoScope 6, while running the Macro Recorder, which will then display the text command (if it exists).

3/ If you want more control then the 3rd way would be to use our Software Development Kit (see here: https://www.picotech.com/library/oscill ... nt-kit-sdk and here: https://www.picotech.com/library/videos ... y-software) which you can download for a 32-bit application (running on Windows 32-bit or Windows 64-bit), or for a 64-bit application (running on Windows 64-bit) from our downloads page (here: https://www.picotech.com/downloads). We have examples of developed applications performing basic data capture in different Programming Languages / Integrated Development Environments, for a quick start, which you can download from here: https://github.com/picotech.

Regards,

Gerry
Gerry
Technical Specialist

Post Reply