![]() |
|
|
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.
Doesn't look like the attachment is showing up...