From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Downsample Digital Waveform

Solved!
Go to solution

Hello,

Is there a way to downsample a digital waveform?

Thank you.

0 Kudos
Message 1 of 3
(1,091 Views)
Solution
Accepted by FrankBrown

Do you mean to reduce the sampling rate such that the edges are still intact?

  • For example, you generate a 1MHz clock signal at a 200MHz sampling rate - effective oversampled by 100x times
  • When downsampled, it will become a 2MHz sampling rate and still retains the 1MHz clock signal

If my above statement is correct - then nope, no readily available tool

 

But there is digital compress and uncompress - this does not change the sampling rate but only reduces the memory footprint by discarding redundant cycles

santo_13_0-1630631466557.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(1,061 Views)

@santo_13 - Thank you for pointing "Compress Digital.vi" to me.

It uses its knowledge of signal transitions to remove the duplicated rows and only keeps the transition values! this is great!! 

Thank you very much.

0 Kudos
Message 3 of 3
(1,047 Views)