gusmanb / logicanalyzer

24 channel, 100Msps logic analyzer hardware and software
GNU General Public License v3.0
2.38k stars 263 forks source link

Multidevice capture #99

Closed mlukasek closed 6 months ago

mlukasek commented 6 months ago

Hello, I try Multidevice capture, but without success. The trigger seems to work OK, but there is almost nothing displayed on main screen. There seem to be signals captured from first device (MASTER) in signal preview, but not form the second one (the SLAVE). If I swap devices it behaves the same, only MASTER visible in signal preview and almost nothing on main screen. Both analyzers work if used alone.

I use Firmware-LogicAnalyzer-5.1.0.0-W-WiFi.uf2 and have the EXT_CHAIN and GND connected. Using COM10 and COM11, no WiFi. Latest hardware v4.0.

Did I do anything wrong or is it some issue?

Thank you, Martin. Screenshot 2024-05-13 120037 Screenshot 2024-05-13 120053 Screenshot 2024-05-13 120119

gusmanb commented 6 months ago

Hi.

The preview shows only up to 24 channels, more channels are unreadable in that small space. Regarding the view, is strange, can you send me the .lac capture to check it?

Also, as a recommendation, if you want to mimic the edge trigger when the /RES goes high then you should select 22 as the first channel, "1" as the pattern and enable the "fast pattern matching" (remember that all the channels that compose the trigger pattern must be in analyzer 1). In the wiki you have more info about the triggering system.

Cheers.

mlukasek commented 6 months ago

Thank you, I understand, I do not care much now about the trigger or preview or what I see. I want to just capture from both analyzers. I will set the correct signals, channels later ;-) I found, that the problem is when I select all 24 channels from Master then the channels from Slave are not captured. I tried only few from Master and it works. It even works with 23 channnels, but 24 is the problem. See attached capture files. capture_Multi_Martin.zip

gusmanb commented 6 months ago

Thanks for the capture, I will check it.

Cheers.

gusmanb commented 6 months ago

Ok, this one has been easy, it was a bumb error in the rendering routine that went beyond the channel color arrays.

imagen

I will check the CS problem and will send you a version with both fixes.

Cheers.

gusmanb commented 6 months ago

Ok, I think I got all sorted.

The channel viewer (not the preview) should show you now all the captured channels. For the CS selection, if you change it to "< NONE >" it will deselect correctly the channel.

Here is the new version: https://mega.nz/file/rPAFRJ6S#9qa-LDqqxHqw8ppV6v3puSrMToAYdSWzkLvB2dhXwXU

mlukasek commented 6 months ago

Great, thank you. It works OK. I am surprised, there is no time shift between the 2 logic analyzers. Great work!

gusmanb commented 6 months ago

Excellent.

There can be a +-1 sample of difference but the software tries to correct it and most of the times it does a good job, only at the highest speeds it is noticeable (and even in that case you can shift the channels to align it :) )

mlukasek commented 6 months ago

I tried it even on 100 MHz and it was perfectly aligned. Good job! Thank you!