Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measurements: Rise/Fall not computed when waveform doesn't cross 0 volts #1135

Open
sja1440 opened this issue Jun 18, 2021 · 8 comments
Open
Labels
bug m2k bugs related to the M2kPlugin in Scopy v2

Comments

@sja1440
Copy link

sja1440 commented Jun 18, 2021

Environment:

  • OS: Ubuntu 20.04 (fully updated)
  • FW 0.27
  • SW 1.3.0 dda5ec6 (Appimage)
  • ADALM2000 connected to Scopy via USB.

Describe the bug
The measurements related to rise time, period, frequency, duty cycle etc never seem to be populated even though they are enabled. Please see the attached screenshot.
Oscilloscope

I have tried resetting scopy but nothing changes.

Given that I am a new scopy user, I suppose that it is possible that there is some config parameter that needs to be set - if there is then I have searched but not found it.

If you need me collect specific evidence please do not hesitate to ask.

@sja1440 sja1440 added the bug label Jun 18, 2021
@adisuciu
Copy link
Contributor

adisuciu commented Jun 18, 2021

Yes, because it is impossible to calculate based on your waveform. There is no periodicity in the waveform on the screen, and it is impossible to compute dutycycle(in percent of the periodic waveform) because it is not all being acquired.
It is impossible to tell that the duty is 1% or 10% of the waveform because the waveform could remain on 0 volts for any amount of time.
Up the timebase and retry - make more of the waveform visible on screen.

@sja1440
Copy link
Author

sja1440 commented Jun 18, 2021

Thanks, that makes sense.

By increasing the value of the timebase I see that the rise time measurements etc are indeed calculated for channel 1 (orange) which is across the scopy Signal Generator (square wave amplitude 3.3V at 37kHz).

However, the measurements do not appear for channel 2 (purple) which is measuring the potential difference across a resistor on the load side of a MOSFET LED driver. Vpp of channel 2 is around 500mV. I have tried timebases all the way up to showing 30 pulses at a time: channel 1 continues to show rise time etc whilst channel 2 never does.

By eye, the periodic nature of channel 2 seems to track pretty well channel 1 and so I find it hard to understand why rise time etc are not being calculated also for channel 2. I guess that the algorithm used to identify periodicity does not recognise my channel 2 waveform as a periodic signal. Here is screen shot showing channel 1 vs channel 2:
channel2. This does seem strange to me.

@adisuciu
Copy link
Contributor

If you view more of the waveform, you can see it - it works for me -
image

Can you confirm that it doesn't work this way for you ?

@sja1440
Copy link
Author

sja1440 commented Jun 18, 2021

I am sorry but how do you get the yellow and purple measurements being interleaved like that?

By the way, it seems to work when I Single shot the oscilloscope for channel 2 even with as few as pulses on the screen. Though if I increase the time base (more pulse on screen), then occasionally the rise time is not shown.

@adisuciu
Copy link
Contributor

Select channel 1 in bottom left, select measurements menu, activate individual measurements (for channel 1), select channel 2, activate individual measurements for channel 2, select channel 1 again, activate some more measurements :)

By the way, it seems to work when I Single shot the oscilloscope for channel 2 even with as few as pulses on the screen. Though if I increase the time base (more pulse on screen), then occasionally the rise time is not shown. - this does not reproduce for me . And it is not clear for me what you are looking at since in the screenshot you are zoomed in.

@sja1440
Copy link
Author

sja1440 commented Jun 18, 2021

OK I now see how you got those measurements interleaved. Here is a screenshot of single "shot" where channel 1 rise time etc is shown and channel 2 is not:
dual

@adisuciu
Copy link
Contributor

Yes, I see it now .. It's a bug because the waveform never crosses zero volts .. We'll invesgitage further

@adisuciu adisuciu changed the title Oscilloscope: Missing rise time, period, frequency, duty cycle measurements Measurements: Rise/Fall not computed when waveform doesn't cross 0 volts Jun 18, 2021
@sja1440
Copy link
Author

sja1440 commented Jun 18, 2021

Aha. Up to now I have been triggering on channel 1 (3.3 Vpp). If I trigger instead on channel 2 (Vpp approx 500mV) then the rise time is nearly always calculated also for channel 2! Here
dualTrigger2
is a screen shot:

@AlexandraTrifan AlexandraTrifan added the m2k bugs related to the M2kPlugin in Scopy v2 label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug m2k bugs related to the M2kPlugin in Scopy v2
Projects
None yet
Development

No branches or pull requests

3 participants