Processing sequential .psdata files

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
Posts: 0
Joined: Thu Sep 07, 2017 5:49 am

Processing sequential .psdata files

Post by Elecmuso » Mon Sep 18, 2017 6:11 am

I am running my picoscope in a slow sampling mode which acquires data for 10 seconds at 100kS, saves the file to disk, then repeats until stopped. Each file is between 200kB and 500kB (I guess the size depends on the signal activity though the variations surprised me). The test (that I am having someone run remotely for me) occurs over several hours and there are hundreds of files produced.

I am looking for events where the AC voltage exceeds some value. Can I automatically process each of these output files with the resulting output being a list of files that have the exceedance? Thereby saving me form loading each file, and visually scanning the output manually.

As an example, lets say they have the names abc.psdata, abc(2).psdata, abc(3).psdata, ... , abc(499).psdata

The output of this macro (or whatever it would be) is a list of 1 or more filenames eg. 'abc(27).psdata'


Posts: 594
Joined: Mon Aug 11, 2014 11:14 am

Re: Processing sequential .psdata files

Post by Gerry » Thu Sep 21, 2017 11:21 am

Hi Elecmuso,

You would be better off setting a mask for the maximum voltage level, and then using Alarms to save a file on mask failure. That way you wouldn't need to do any processing. I have attached an example data file, which uses the internal Signal Generator and will stop autosaving when you reduce the voltage level to, say 1V in the Sig Gen.
Example mask fail save.psdata
(273.45 KiB) Downloaded 185 times
Regarding the file variations how many buffers are you saving?


Technical Specialist

Post Reply