analogdevicesinc / scopy

A software oscilloscope and signal analysis toolset
http://wiki.analog.com/scopy
GNU General Public License v3.0
396 stars 164 forks source link

Oscilloscope: Fails to autoset horizontal and vertical settings on math generated waveform from SG #907

Closed HRosete closed 4 years ago

HRosete commented 4 years ago

Environment:

Describe the bug The oscilloscope fails to autoset the Horizontal (Time Base) and Vertical (Volts/Div) settings when the signal generated is from the Math function of the Signal Generator. The result is a cut waveform on the Oscilloscope's screen when it should have displayed several periods of the waveform upon clicking 'Autoset.'

To Reproduce Steps to reproduce the behavior:

  1. Open Scopy and connect the M2K to your laptop.

  2. Unzip the attached file 'scopy_sig-gen_math.zip' and load the .ini file to Scopy. scopy_sig-gen_math.zip

  3. Connect AWG CH1 to scope CH1+ and scope CH1- to GND.

  4. Click 'Run' on the Signal Generator.

  5. Click 'Run' on the Oscilloscope.

  6. Click 'Autoset' and observe the waveform read by the oscilloscope.

Expected behavior The oscilloscope should automatically adjust the horizontal and vertical settings to display several periods of the waveform upon clicking 'Autoset.'

Screenshots Waveform using the Math function of the SG: image

Waveform read by the oscilloscope after clicking 'Autoset': image

Expected behavior; the same waveform after adjusting the Horizontal and Vertical settings manually: image

HRosete commented 4 years ago

FW: m2k-fw-v0.25-3-g1c38-dirty.zip Math equation on SG: f(t) = sin(2pi1000*t)

adisuciu commented 4 years ago

duplicate of https://github.com/analogdevicesinc/scopy/issues/913