Jump to content
  • 0

Scope - record - after stop position not aligned


kojak

Question

Hello @attila

I think this is a bug. My setup looks like:

  • Wavegen is started by Script
  • Scope is triggered by Wavegen configured to record 2 Msamples. Trigger set to 10%
  • Logic is triggered by Signal and configured to measure very short period of time

In a script I Start Logic, then Scope and wait for scope to prefill. Then I start Wavegen, which triggers Scope. After some time Signal triggers Logic which is Done a little after that. Then Wavegen and Scope is stopped by Script. After that Scope data are shown correctly, but they are shifted from the defined trigger position. Do you think that it will be possible to align them to the right position?

Thank you

Link to comment
Share on other sites

14 answers to this question

Recommended Posts

Hi @kojak

Don't stop the recording process, let it stop automatically.

The recording continuously captures data and stops after it collects the required post trigger samples. Then it aligns the data according the trigger position.
If you force stop it it does not have sufficient samples, it can't align the data.

Link to comment
Share on other sites

Hello @attila

I can not let it stop automatically as I need to stop it as soon as event on Logic appears in order to have measurement as short as possible.

But trigger should be in measured data, so I think that alignment should be possible. Do you think that it will be possible to implement?

Link to comment
Share on other sites

Hi @kojak

You could use the Scope in mixed mode, with Logic Analyzer in it and trigger on digital signal, set the trigger position to 90%, to be a record stop condition.
If you prefer you can use Scope and Logic separately and select one to trigger the other.
You could also hook the digital signal to the trigger signal and select trigger source External 1/2

Scope.run()
wait(Scope.Time.Base.value) // make sure to have pretrigger data
Wavegen.run()
Scope.wait()
Wavegen.stop()

image.png.db2110b93eb8414effe4837c5c768849.png

Link to comment
Share on other sites

Hi @kojak

In case you want to stick to your triggering method, leave more prefill time for the scope, so when you stop it to have at least the specified number of samples collected. This way when stopped it can align the data, such a way that the last captured sample to be at the end. In case it does not have sufficient samples it won't perform this alignment.

Link to comment
Share on other sites

Hi @kojak

The recording process streams in data into a circular buffer, similar to scan screen.
Normally after the trigger event it collects the remaining samples, according trigger position (like 50%), then stops and aligns the data so the last sample to be on the right.
When you stop the recording, it it should have at least the specified number of samples for recording in order to perform alignment, so the last recorded sample will be on the right.

Link to comment
Share on other sites

Hello @attila

Now I understand how this is working. So I need to have all samples which I defined to capture.

Do you think that it will be possible to transfer information at what sample is trigger and align samples to this point (if there are missing samples after trigger) or this will be much work to be done?

Link to comment
Share on other sites

Hello @attila

OK, I will use your the first proposal. There is little about 2 us offset (measured signal from Wavegen on Scope is about 2 us delayed after trigger), but this is acceptable.

Thank you

On 1/29/2019 at 6:15 PM, attila said:

Hi @kojak

I'm not sure how exactly you are configuring the interface, but stopping the capture from Script has a few milliseconds of uncertainty.

I think it would be easier to configure the Wavegen to trigger on Scope and have in Scope trigger None, like this:

image.thumb.png.9060888ba7392dee54e952a8cf32905a.png

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...