Generates a waveform containing a square wave.

If the sequence Y represents Square Wave, this VI generates the pattern according to the following equation.
y[i] = amp × square(phase[i]), for i = 0, 1, 2, …, n – 1,
where amp = amplitude, n = number of samples (#s), and square(phase[i]) is:
1.0 if 0
pmod < (0.01 × duty) × 360.0
or
–1.0 if (0.01 × duty) × 360.0
pmod < 360.0
where pmod = p modulo 360.0, duty = duty cycle in percent, and phase[i] is
initial_phase + frequency × 360.0 × i/Fs