This is very similar to: Analog export timestamp does not match capture
I do a capture of a small number of SPI transactions and then I export them as binary format. Using either my C code to parse the format, or the python examples given to parse the format I can see that the output of the analog does not line up with the digital side. The digital output in the exported .bin files lines up with the capture show in the Saleae tool, but the analog capture is off by a significant amount.
For example, here is the output from digital_0.bin:
python ~/dump_digital.py ~/new_capture/digital_0.bin
Opening /Users/mlarson/new_capture/digital_0.bin
Initial state: low
Begin time: 3.995592290
End time: 3.999428154
Num transitions: 8160
Time Bit State
3.995592290 low
3.995995488 high
3.995995560 low
3.995995616 high
3.995995680 low
Note that the first HIGH time is 3.995995488.
When I output the analog_0.bin, I see that the first rising transition reported there does not line up with the digital side or the capture as shown in the Saleae UI:
python ~/dump_analog.py ~/new_capture/analog_0.bin
Opening /Users/mlarson/new_capture/analog_0.bin
Begin time: 3.995525300
Sample rate: 50000000
Downsample: 1
Number of samples: 191794
Time Voltage
3.9955253000 -0.022
3.9955253200 -0.022
3.9955253400 -0.022
3.9955253600 -0.022
3.9955253800 -0.022
...
3.9959284400 -0.011
3.9959284600 0.009
3.9959284800 0.086
3.9959285000 0.276
3.9959285200 0.619
3.9959285400 1.034
3.9959285600 1.310
3.9959285800 1.239
3.9959286000 0.839
3.9959286200 0.429
3.9959286400 0.378
3.9959286600 0.752
3.9959286800 1.228
3.9959287000 1.362
3.9959287200 1.018
3.9959287400 0.511
3.9959287600 0.311
3.9959287800 0.609
Note that the analog export has a rising/falling transition shown from 3.9959284600-> 3.9959286400, clearly not aligned in time with the digital capture whose first HIGH transition is at 3.995995488. Like the referenced similar issue, the analog times/voltages reported do not line up with the times reported at the top of the Saleae app view of the capture either.