Hi, I want to capture as many as possible power traces in the rapid block mode (I'm observing the power consumption of cryptographic devices for each encryption round).
I've have a predefined number of sample points to capture and a predefined timebase.
I now want to capture as many blocks as possible. For that I have to calculate how many blocks fit into the scope's memory.
To do this, I call setMemorySegments(1,&nMaxSamples) and after that divide nMaxSamples by the number of active channels (in my case probably always 2).
Now I know how many sample points I could capture per channel.
I divide this number again by the predefined amount of sample points to capture.
In my opinion this should give me the amount of segments that I could fill in the rapid block mode.
Sadly this way seems to be not correct.
In the next step I would use setMemorySegments and setNoOfCaptures to my calculated maximum.
This works, but runBlock will fail with "Invalid Timebase".
If I set setMemorySegments and setNoOfCaptures to about the half of my calculated maximum it works.
My question: What have I done wrong? How can I calculate a working and efficient segmentation of the memory?
Hardware: Picoscope 6402B