]> sigrok.org Git - pulseview.git/blame - manual/cli.txt
decoder_selector: Expand "All Decoders" if the user filtered
[pulseview.git] / manual / cli.txt
CommitLineData
1894027b
SA
1== Command-line Interface
2
3Even though PulseView has a graphical user interface, there is also a command-line interface that
4you can make use of. It is meant to provide functions for convenience and debug purposes, not to
5replace the user interface itself.
6
7Running
8
9 pulseview -h
10
11gives you a list of these functions.
12
13Since PulseView can't automatically scan for devices connected to a COM port (ttySx on Linux) or
14Ethernet, you can tell it to look for a specific device using the -d or --driver parameter. Its
15usage is the same as for sigrok-cli. For example:
16
17 pulseview -d lecroy-xstream:conn=vxi/192.168.178.20/111
18
19Also, just as with sigrok-cli, you can specify -i / --input-file and -I / --input-format to open
20a file on startup. Without -I, it is assumed that the file is in the native sigrok format (.sr).
21You can also specify more than one file but they are all expected to be in the same format then.
22Example:
23
0e96068d 24 pulseview -i data.csv -I csv:samplerate=3000000
1894027b 25
611c8625
DL
26If you previously saved a PulseView session setup alongside your input file, PulseView will
27automatically load those settings so long as the setup file (.pvs) has the same base name
28as your input file.
29You can also manually specify a PulseView session setup file to load with -s / --settings.
30Example:
31
32 pulseview -s settings.pvs data.sr
33
1894027b
SA
34The remaining parameters are mostly for debug purposes:
35
36 -V / --version Shows the release version
37 -l / --loglevel Sets the libsigrok/libsigrokdecode log level (max is 5)
0e96068d 38 -D / --dont-scan Don't auto-scan for devices
1894027b
SA
39 -c / --clean Don't restore previous sessions on startup
40
0e96068d
SA
41Of these, -D / --dont-scan can be useful when PulseView gets stuck during the startup device scan.
42No such scan will be performed then, allowing the program to start up but you'll have to scan for
43your acquisition device(s) manually before you can use them.
1894027b 44
0e96068d
SA
45Another potentially useful option is -c / --clean, which can be used when PulseView doesn't start
46up and you don't know what could cause this.
1894027b
SA
47
48Thus, the combination of both parameters can be seen as some kind of "safe mode" for PulseView:
49
0e96068d 50 pulseview -c -D