Command line interface (CLI)

PicoScope can be run from the Windows command line, allowing you to execute tasks manually or under the control of a batch file or other program.

To get help using the CLI, type:

picoscope /?
PicoScope command line: Help command

To see the list of available automation commands, type:

picoscope /a ?
PicoScope command line interface, list of commands

To display the GUI

PicoScope

To open a file in the GUI

PicoScope <filename>

<filename> Specifies a single .psdata or .pssettings file.

Example:

PicoScope C:\Temp\source.psdata

To convert a psdata file

PicoScope /C,/c 

Converts a psdata file from one format to another. Cannot be used with /p[rint].

Syntax:

PicoScope /c[onvert] <names> [/d <names>] /f <format> [/q] [/b [<n>[:<m>]] | [all]] [/v <viewportname>]

<names> Specifies a list of one or more directories or psdata files. Wildcards may be used to specify multiple files. If a directory is specified, all psdata files within that directory will be specified. This is a mandatory argument.

/d <names> Destination. Default is input filename with new extension.

/f <format> Destination format: .csv, .txt, .png, .bmp, .gif, .agif (animated GIF), .psdata, .pssettings, .mat (MATLAB). This is a mandatory argument.

/q Quiet mode. Do not ask before overwriting files. The default is to prompt.

/b [<n>[:<m>]]|all Waveform number n, waveform range n to m or all waveforms. The default is the current waveform.

/v <viewportname> Which view to convert. Default is current view.

Example:

PicoScope /c C:\Temp\source.psdata /f png /b 5:9 /v Scope2

To print a view

PicoScope /P,/p

Prints a view in the psdata file. Cannot be used with /c[onvert].

Syntax:

PicoScope /p[rint] <names> [/b [<n>[:<m>]] | all] [/v <viewportname>]

<names> Specifies a list of one or more directories or .psdata files. Wildcards may be used to specify multiple files. If a directory is specified, all .psdata files within that directory will be specified. This is a mandatory argument.

/b [<n>[:<m>]]|all Waveform number n, waveform range n to m or all buffers. Default is current waveform.

/v <viewportname> Which view to convert. Default is current view.

Example:

PicoScope /p C:\Temp\source.psdata /b 5:9 /v Scope2

To import notes

PicoScope /N,/n

Copies text from a specified file to the Notes area.

Syntax:

PicoScope /n[otes] <notes filename> <filename>

<notes filename> Specifies a single text file.

<filename> Specifies a single psdata or pssettings file.

Example:

PicoScope /n C:\Temp\source.txt C:\Temp\source.psdata

To run an automation command

PicoScope /A,/a

Run automation command or macro on an existing instance of PicoScope 6.

Syntax:

PicoScope /a[utomation] <command> | <macro>

<command> Automation command

<macro> Path to .psmacro file containing a macro

Examples:

PicoScope /a Run.Pressed=True
PicoScope /a MyMacro.psmacro
PicoScope /a ? 

(prints a list of automation commands to the console)

PicoScope /a Measurements? 

(prints information on the Measurements command)

An instance of PicoScope must be running before any automation command is issued.

List of automation commands (varies by PicoScope model):

AutoSetup.AutoSetup
Buffer.Filter
Buffer.Filtered.First
Buffer.Filtered.Last
Buffer.Filtered.Next
Buffer.Filtered.Previous
Buffer.Next
Buffer.Previous
Channel.#0.AnalogOffset
Channel.#0.Coupling
Channel.#0.Enabled
Channel.#0.LowPass.Enable
Channel.#0.LowPassCutoff
Channel.#0.Offset
Channel.#0.Range
Channel.#0.Zoom
Channel.#1.AnalogOffset
Channel.#1.Coupling
Channel.#1.Enabled
Channel.#1.LowPass.Enable
Channel.#1.LowPassCutoff
Channel.#1.Offset
Channel.#1.Range
Channel.#1.Zoom
Channel.#2.AnalogOffset
Channel.#2.Coupling
Channel.#2.Enabled
Channel.#2.LowPass.Enable
Channel.#2.LowPassCutoff
Channel.#2.Offset
Channel.#2.Range
Channel.#2.Zoom
Channel.#3.AnalogOffset
Channel.#3.Coupling
Channel.#3.Enabled
Channel.#3.LowPass.Enable
Channel.#3.LowPassCutoff
Channel.#3.Offset
Channel.#3.Range
Channel.#3.Zoom
CollectionTime
Config.Channel
Copy.AsImage
Copy.AsText
Copy.WindowAsImage
File.Exit
File.Open
File.Save
File.SaveAs
Instruments.Persistence
Instruments.Scope
Instruments.Spectrum
LoadFile
Measurement.Add
Measurement.Delete
Measurement.Edit
Measurements
Menu.Edit
Menu.File
Menu.Help
Menu.Measurements
Menu.Tools
Menu.View
Notes
NumberOfSamples
Persistence.Advanced.BackgroundColor
Persistence.Advanced.ColorScheme
Persistence.Advanced.DataHold
Persistence.Advanced.LineDrawing
Persistence.Advanced.Mode
Persistence.DecayTime
Persistence.MinimumIntensity
Persistence.Mode
Persistence.Saturation
Print.Preview
Print.Print
Properties.Channel.#0
Properties.Channel.#1
Properties.Channel.#10
Properties.Channel.#11
Properties.Channel.#12
Properties.Channel.#13
Properties.Channel.#14
Properties.Channel.#15
Properties.Channel.#2
Properties.Channel.#3
Properties.Channel.#4
Properties.Channel.#5
Properties.Channel.#6
Properties.Channel.#7
Properties.Channel.#8
Properties.Channel.#9
Properties.CollectionInfo
Properties.Scope
Properties.Siggen
Resolution
Run
Settings.LoadDefaults
Settings.LoadFactorySettings
Settings.LoadLastSession
Settings.ResetDefaults
Settings.RestoreLastSessionOnStartup
Settings.RestoreUserSettingsOnStartup
Settings.SaveDefaults
Settings.SaveSettingsToFile
Siggen.Amplitude
Siggen.Enabled
Siggen.Frequency
Siggen.Offset
Siggen.WaveType
Spectrum.DisplayMode
Spectrum.Scale
Spectrum.ScaleType
Spectrum.SpectrumBins
Spectrum.WindowFunction
Spectrum.XScale
Tools.Home
Tools.Marquee
Tools.Pan
Tools.Select
Tools.Zoom.FullSize
Tools.Zoom.Horizontal
Tools.Zoom.Undo
Tools.Zoom.Vertical
Tools.ZoomIn
Tools.ZoomOut
Trigger.Direction
Trigger.Edge
Trigger.Edge.Falling
Trigger.Edge.Rising
Trigger.Hysteresis
Trigger.PreTrigger
Trigger.PWQtype
Trigger.RapidBuffers
Trigger.Threshold
Trigger.Threshold2
Trigger.Time
Trigger.Time2
Trigger.TimeDelayEnable
Trigger.TriggerDelay
Trigger.TriggerMode
Trigger.TriggerSource
Trigger.Type
View.Add.Scope
View.Add.Spectrum
View.Add.XY
View.ArrangeAxes
View.ArrangeViewports
View.Close
View.GridLayout.1 view
View.GridLayout.2 views
View.GridLayout.3 views
View.GridLayout.4 views
View.GridLayout.6 views
View.GridLayout.9 views
View.GridLayout.Auto
View.GridLayout.Custom
View.Properties
View.Rename
View.ResetLayout
View.ResetSizes
View.Ruler
WindowLayout