]> sigrok.org Git - pulseview.git/blame - manual/acquisition.txt
Manual: Initial revision
[pulseview.git] / manual / acquisition.txt
CommitLineData
1894027b
SA
1== Data Acquisition
2
3Working with PulseView follows a pattern:
4
5image::pv_nodevice.png[]
6<1> Open a new session
7<2> Select the device you want to work with:
8<3> Click "Run" to acquire signal data (waiting for a trigger first if you set one)
9
10When you start PulseView and no sessions are restored from the last time you used it, it will
11come up with a session that has the demo device selected. That way, you can get to know the
12program even when you don't have any hardware to use it with.
13
14=== Device Selection
15
16The device selector offers two methods to choose the device to use. If you click on the small
17arrow on the side, you see a list of devices PulseView has recognized. If the device you want
18to use it listed, you can just select it here to use it.
19
20image::device_selector_dropdown.png[]
21
22If it's not listed, you'll need to scan for it first. Since most serial port and Ethernet
23devices can't be auto-detected, this is usually required for those.
24To do so, either choose the "Connect to Device" option from the list or click on the button
25itself. You will see the following dialog:
26
27image::device_selector_scan.png[]
28
29First, you'll need to pick a driver that you want to use. In order to do this, you'll need
30to know which driver is used to talk to the device. If you're unsure, you can either try the
31driver which you think may fit best or you can check the wiki. For every supported device there's
32a wiki page, showing you which driver is used.
33
34Once the driver has been chosen, you need to select the interface. Please be aware that USB
35is only usable for devices that directly communicate over USB. Devices that use USB to emulate
36a serial port (like the OpenBench Logic Sniffer) will have their serial port listed in the
37serial port drop-down.
38
39In case your device connects via Ethernet, you must supply the IP address and port. You are
40also given the option to choose between raw TCP access and using the VXI protocol. VXI is an
41industry standard which is mainly used in professional equipment and the device will most
42likely let you know that it supports VXI. If your device however is more of a hobbyist grade
43device, it's more likely that using raw TCP will be the correct choice.
44
45After you selected the appropriate options, clicking the scan button will make PulseView try
46to connect to the device with the given settings. If successful, any device(s) found will be
47shown in the list box.
48
49[NOTE]
50When a session uses a USB device and you close Pulseview, a session with that same device
51is re-opened when you start Pulseview again. Currently, this is however not the case for non-USB
52devices, such as ones that connect via serial port or Ethernet.
53
54[NOTE]
55To avoid having to manually enter the device configuration for a serial port or Ethernet
56device every time you want to use it and then having to scan for it, you can also use the
57command line parameter -d to have PulseView scan for it on startup.
58
59=== Device Configuration
60
61In PulseView, the device configuration is done using these buttons:
62
63image::pv_device_config.png[]
64<1> Device-specific settings
65<2> Channel-specific settings
66<3> Number of samples to capture
67<4> Sample rate at which to capture the samples
68<5> Per-channel trigger setting (see below)
69
70The values offered for those four elements depend on your device. Which settings you should choose
71depends on several factors: the needs of your measurement, the device you use to capture the data
72and the capabilities of your computer.
73
74The sample rate you choose must at least be twice that of the highest frequency you want to
75capture - ideally 3 to 5 times as much so that you have some margin. That way, a jittering signal
76won't ruin your measurements.
77
78[NOTE]
79If you're using a device with a Cypress FX2 (most 8 channel / 24 MHz logic analyzers do) then you should
80be aware that the 24 MHz sampling rate (12 MHz for 16 channels) can only be sustained under perfect
81conditions. Usually, those devices are shipped with low-quality USB cables, impairing USB transfers as
82USB traffic increases. Therefore, you can try a different USB cable if you're facing issues at higher
83sample rates. If they persist, it's worth trying a different USB port as well.
84
85=== Triggers
86
87The signal labels on the left side of the view (D0, D1 and so on in the picture above) allow you to
88configure certain aspects of these signals. If the device supports it then the trigger that will be
89used for this signal will be among them.
90
91As of now, the trigger system is awaiting extension for advanced and complex trigger types, meaning
92that the only triggers available to you are:
93
94* Trigger when the signal has a "low" level
95* Trigger when the signal has a "high" level
96* Trigger when the signal switches from "low" to "high" level (rising edge)
97* Trigger when the signal switches from "hig" to "low" level (falling edge)
98* Trigger when the signal changes level in any way (any edge)
99
100Once you choose a trigger, the icon for the type you chose becomes visible on the right side of the
101trace view.
102
103When you click "Run" with a trigger configured, PulseView will wait for the device to trigger and
104send data before it can show anything. There is currently no frame limit, so if the device driver
105supports it, PulseView will continue arming the trigger and collecting data until you either click
106"Stop" or it runs out of memory.
107
108=== Channel Groups
109
110Some devices share certain settings between a group of channels, which is why PulseView may show
111the channels your device offers in groups. You can see which channels are grouped by looking at the
112dark gray bar on the left. If there is none, no channels are grouped.
113
114Currently, the grouping is only done for your convenience and there's no direct functional impact.
115This means that you're free to ungroup and group channels as you please. To do so, right-click
116on the dark gray bar and select "Ungroup".
117If you want to create a new group, select the signals you want to group by holding down CTRL
118and clicking on the signal labels. Once you have selected the ones you want to be grouped,
119right-click on one of the labels you selected and choose "Group".
120