NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Signal to Square Wave Converter

VERSION 2

Created on: Mar 5, 2009 6:32 PM by BurtS - Last Modified:  Sep 12, 2009 6:59 AM by BurtS

This example shows one way to convert an input signal into a square wave of arbitrary amplitude.  The VI takes an input signal, filters it to get the desired frequency components, then amplifies the signal greatly so that it can then be clipped into a square wave.  The example assumes that the measured signal does not have a DC offset or that the DC offset is removed during filtering.  An offset can be applied to the signal after filtering but before scaling to change the duty cycle of the resulting square wave if desired.  The program assumes that the input signal is an array of doubles.

Signal to Square Wave.PNG

Signal to Square Wave FP.PNG

 

Downloads:
Average User Rating
(1 rating)




Todd Sierer Todd Sierer  says:

Doesn't look like the attachment is showing up...

BurtS BurtS  says in response to Todd Sierer:

Thanks Todd.Fixed it!