Test and Measurement Forum

Picoscope 6 Automation

Forum for discussing PicoScope version 6 (non-automotive version)

Picoscope 6 Automation

Postby bitan » Mon Sep 01, 2014 8:59 am

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.
bitan
Newbie
 
Posts: 0
Joined: Mon Sep 01, 2014 8:51 am

Re: Picoscope 6 Automation

Postby Hitesh » Wed Sep 03, 2014 9:12 am

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

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope 6 Automation

Postby vubdub » Fri Jan 30, 2015 10:37 am

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
vubdub
Newbie
 
Posts: 0
Joined: Fri Jan 30, 2015 10:06 am

Re: Picoscope 6 Automation

Postby Hitesh » Fri Jan 30, 2015 4:15 pm

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope 6 Automation

Postby vubdub » Tue Feb 03, 2015 9:24 am

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.
vubdub
Newbie
 
Posts: 0
Joined: Fri Jan 30, 2015 10:06 am

Re: Picoscope 6 Automation

Postby Hitesh » Fri Feb 06, 2015 11:22 am

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,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Picoscope 6 Automation

Postby vubdub » Sat Feb 07, 2015 10:46 am

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


Return to PicoScope 6 for Windows

Who is online

Users browsing this forum: No registered users and 1 guest