Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 97e647fc6ba2
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6b89283ed9fc
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Nov 28, 2020

  1. Copy the full SHA
    6b89283 View commit details
Showing with 9 additions and 8 deletions.
  1. +2 −2 scopehal/DemoOscilloscope.cpp
  2. +2 −1 scopeprotocols/HistogramFilter.cpp
  3. +2 −2 scopeprotocols/JitterSpectrumFilter.cpp
  4. +3 −3 scopeprotocols/VerticalBathtub.cpp
4 changes: 2 additions & 2 deletions scopehal/DemoOscilloscope.cpp
Original file line number Diff line number Diff line change
@@ -388,7 +388,7 @@ bool DemoOscilloscope::AcquireData()
m_sweepFreq += 1e6;
if(m_sweepFreq > 1.5e9)
m_sweepFreq = 1.1e9;
float sweepPeriod = SECONDS_PER_FS / m_sweepFreq;
float sweepPeriod = FS_PER_SECOND / m_sweepFreq;

//Generate waveforms
SequenceSet s;
@@ -403,7 +403,7 @@ bool DemoOscilloscope::AcquireData()
float now = GetTime();
float tfrac = fmodf(now, 1);
time_t start = round(now - tfrac);
int64_t fs = round(tfrac * SECONDS_PER_FS);
int64_t fs = round(tfrac * FS_PER_SECOND);
for(auto it : s)
{
auto wfm = it.second;
3 changes: 2 additions & 1 deletion scopeprotocols/HistogramFilter.cpp
Original file line number Diff line number Diff line change
@@ -156,7 +156,8 @@ void HistogramFilter::Refresh()
}

//Calculate histogram for our incoming data
size_t bins = ceil(range);
//For now, 100fs per bin target
size_t bins = ceil(range) / 100;
auto data = MakeHistogram(din, m_min, m_max, bins);

//Calculate bin configuration.
4 changes: 2 additions & 2 deletions scopeprotocols/JitterSpectrumFilter.cpp
Original file line number Diff line number Diff line change
@@ -44,8 +44,8 @@ JitterSpectrumFilter::JitterSpectrumFilter(const string& color)
m_yAxisUnit = Unit(Unit::UNIT_FS);
m_category = CAT_ANALYSIS;

m_range = 1;
m_offset = -0.5;
m_range = 1000;
m_offset = -500;
}

JitterSpectrumFilter::~JitterSpectrumFilter()
6 changes: 3 additions & 3 deletions scopeprotocols/VerticalBathtub.cpp
Original file line number Diff line number Diff line change
@@ -122,9 +122,9 @@ void VerticalBathtub::Refresh()
int64_t timestamp = m_parameters[m_timeName].GetIntVal();

//Find the eye bin for this column
double ps_per_width = 2*eye->m_uiWidth;
double ps_per_pixel = ps_per_width / eye->GetWidth();
size_t xbin = round( (timestamp + eye->m_uiWidth) / ps_per_pixel );
double fs_per_width = 2*eye->m_uiWidth;
double fs_per_pixel = fs_per_width / eye->GetWidth();
size_t xbin = round( (timestamp + eye->m_uiWidth) / fs_per_pixel );

/*
float ymid = din->GetHeight()/2;