Test and Measurement Forum

Saving mask failure result to a txt or cvs file?

Post general discussions on using our drivers to write your own software here

Saving mask failure result to a txt or cvs file?

Postby 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?
Posts: 0
Joined: Mon Feb 15, 2016 10:54 pm

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

Postby AndrewA » Wed Feb 24, 2016 1:18 pm


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-
Regards Andrew
Technical Specialist
Zen Master
Zen Master
Posts: 178
Joined: Tue Oct 21, 2014 3:07 pm

Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests