Picoscope 6 Automation

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
bitan
Newbie
Posts: 0
Joined: Mon Sep 01, 2014 8:51 am

Picoscope 6 Automation

Post by bitan »

Hello,
I am trying to use the in line automation commands to automate recording in Picoscope6 software.
Can you please tell me the command to set a recording time?
for e.g. I want to:
1. Set Recording time
2. Start Recording
3. Stop Recording
4. Save file

Regards,
Bitan.

Hitesh

Re: Picoscope 6 Automation

Post by Hitesh »

Hi Bitan,

Once you have started an instance of PicoScope 6, you can query the automation commands available as follows:

Code: Select all

picoscope.com /a /?
To start and stop data collection, use the 'Run' argument:-

Start collection:

Code: Select all

picoscope.com /a Run.Pressed=True
Stop collection:

Code: Select all

picoscope.com /a Run.Pressed=False
You can use the CollectionTime argument to set the timebase/collection time.

To save the file, you can use the File.Save argument.

If you are going to be using the same settings for a number of acquisitions, you may wish to consider saving your settings to a file from within PicoScope 6 and passing that as an argument from the command line to start the PicoScope 6 software e.g.

Code: Select all

PicoScope C:\Temp\myPicoSettings.pls
You could then use the Alarms feature to automatically save the data to file when a condition (such as the buffer being full) is met.

I hope this helps.

vubdub
Newbie
Posts: 0
Joined: Fri Jan 30, 2015 10:06 am

Re: Picoscope 6 Automation

Post by vubdub »

Hello.
I am trying to do similar thing but using alarms tool.
My sequence in alarm tool is following:
Buffers Full->
Save All buffers (.txt)
Restart capture

And problem is that program always overwrites folder and data inside.
Is it posible to add counter in folder names to prevent overwriting
For example
c:\20150130-0001
c:\20150130-0002
c:\20150130-0003

Hitesh

Re: Picoscope 6 Automation

Post by Hitesh »

Hi vubdub,

The following from section 6.5.5 in the PicoScope 6 User's Guide (also available via the Help menu) should help:
Save Current Buffer: save the current waveform from the buffer
as a .psdata, .pssettings, .csv or .mat file. You can use the %
buffer% variable to insert the buffer index number into the
filename, or the %time% variable to insert the time of capture.
You should be able to specify the file name to save to as something like myTest_%buffer%.psdata .

Hope this helps,

vubdub
Newbie
Posts: 0
Joined: Fri Jan 30, 2015 10:06 am

Re: Picoscope 6 Automation

Post by vubdub »

Hi. It doesn't solve my problem.
%buffer% parameter works when you use "Save Current Buffer" and even without this parameter windows automatically adds numeration if file already exist.
With "Save ALL buffers" Picoscope creates folder containing all 32(default) inside buffers and it always overwrites this folder and all 32 files. Parameter %buffer% doesn't help in this case.
I need to add counter to folder name.

Hitesh

Re: Picoscope 6 Automation

Post by Hitesh »

Hi vubdub,

Please use the %time% argument instead of %buffer% as the folders and files will then be time stamped.

I will report a bug regarding the overwrite to our Development Team.

Regards,

vubdub
Newbie
Posts: 0
Joined: Fri Jan 30, 2015 10:06 am

Re: Picoscope 6 Automation

Post by vubdub »

Ok, thanks.

Post Reply