Saving mask failure result to a txt or cvs file?

Post general discussions on using our drivers to write your own software here
Post Reply
pdoggett
Newbie
Posts: 0
Joined: Mon Feb 15, 2016 10:54 pm

Saving mask failure result to a txt or cvs file?

Post by pdoggett » Mon Feb 15, 2016 11:16 pm

I have created a mask for a 1kHz sine wave and saved it as the default scope setting. The default measurement is Mask Failure. I have a macro that pushes the Run button and saves the data to a psdata file. I am executing the macro via the command line, "PicoScope.exe /A C:\Users\username\Documents\Waveforms\Macros\test.psmacro". The result data file contains all of the data points but does not appear to contain the Pass/Fail result of the measurement.

Is there a way to obtain the Pass/Fail result via a macro executed from the command line?

AndrewA
PICO STAFF
PICO STAFF
Posts: 195
Joined: Tue Oct 21, 2014 3:07 pm

Re: Saving mask failure result to a txt or cvs file?

Post by AndrewA » Wed Feb 24, 2016 1:18 pm

Hi,

Yes you can export the mask pass/fail measurement at the bottom of the Picoscope screen to csv file, by using the command-

Code: Select all

Picoscope.com /a Measurements.CSV?
This gives

Code: Select all

0ms: Measurements.CSV?
A,Mask Failures,True,6,---,---,---,---,7,WholeTrace,
Just remember-
A mask Fail is logged as True and
A mask Pass is logged as False

You may want to read my post on exporting measurements-
topic20001.html
Regards Andrew
Technical Specialist

Post Reply