Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

oscilloscope filter data algorithm

For general discussion related FlowStone

oscilloscope filter data algorithm

Postby borodadada » Sat Mar 14, 2015 4:11 pm

Hello guys. The question of the theory than on practice. If I have one million samples, and screen size
1000 pixels wide. How do I display all the data that would not be the maximum and minimum losses? The end result of 1,000 samples.
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm

Re: oscilloscope filter data algorithm

Postby Perfect Human Interface » Sat Mar 14, 2015 7:17 pm

Not certain where this came from but here's a wave player module that includes a waveform display written in Ruby.
Attachments
Wave Player.fsm
(144.2 KiB) Downloaded 725 times
Perfect Human Interface
 
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: oscilloscope filter data algorithm

Postby borodadada » Sat Mar 14, 2015 8:14 pm

Yes, this is it. Thank you. But I have a poor knowledge of Ruby, in code,
Code: Select all
      0.upto(a.length-1) do |i|
         step += 1
         max = a[i] > max ? a[i] : max
         min = a[i] < min ? a[i] : min
         if step >= epp
            maxA << [i*s,h-max*h]
            minA << [i*s,h-min*h]
            step = 0
            max = -1
            min = 1
         end
      end


Search max and min amplitude on interval (incloming 10 samples, search 2 (min and max))? Result one horizontal line? Ohh... :) Is it possible to make this algorithm in real time?
borodadada
 
Posts: 47
Joined: Sun Jun 02, 2013 5:58 pm


Return to General

Who is online

Users browsing this forum: No registered users and 38 guests