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.
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).