Interface to Control Picoscope

Post any questions you may have about our current range of oscilloscopes
Post Reply
mula
Newbie
Posts: 0
Joined: Thu Dec 19, 2019 7:11 pm

Interface to Control Picoscope

Post by mula » Thu Dec 19, 2019 7:20 pm

I have a 3406D picoscope. I need to control it from a PC, i.e. simply just start, stop and save waveforms. Is there a library, preferably C#, to do that?

Btw, I tried what is explained here https://www.picotech.com/support/topic14371.html#p42147
However, even picoscope run doesn't do anything. And picoscope run ? returns the errors

Please specify a valid file path or file type.

Possible errors:
Not a valid folder or file path
Not a PicoScope 6 supported file type.

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

Re: Interface to Control Picoscope

Post by Gerry » Fri Dec 20, 2019 11:00 am

Hi Mula,

The easiest way to use simple automation, e.g. to start, stop and save waveforms, 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.

The commands that it saves are also the commands used by the Command Line Interface (when preceded by 'picoscope.com /a') that is referred to in the link that you gave. So, you can use it to get the correct automation commands to run in a batch file aswell.

However, if you would prefer to use a C# environment, then you can:
1/ Download and install our Software Development Kit (from here: https://www.picotech.com/download/software/sr/PicoSDK_32_10.6.13.97.exe, for 32-bit applications running on Windows, and here: https://www.picotech.com/download/software/sr/PicoSDK_64_10.6.13.97.exe, for 64-bit applications).
2/ Download example code that performs simple captures and that you can modify to create your own application from here: https://github.com/picotech/picosdk-c-sharp-examples).

Regards,

Gerry
Gerry
Technical Specialist

Post Reply