Signal Generator by Duration (Not in Base Package)

Generates a signal with a shape given by the waveform type. Details

reset phase determines the initial phase of output signal. The default is TRUE. If reset phase is TRUE, the initial phase is set to phase in. If reset phase is FALSE, the initial phase is set to the value of phase out when this VI was last executed.
duration is the time, in seconds, of the duration of the generated output signal. The default is 1.0.
waveform type is the waveform type of the output signal.

0sine (default)
1cosine
2triangle
3square
4sawtooth
5increasing ramp
6decreasing ramp
# of samples is the number of samples of the output signal. The default is 100.
frequency is the frequency of the output signal in Hz. The default is 10. The unit of frequency is Hz, or cycles/sec, and so represents the number of cycles of one period of the waveform type that is generated in 1 second of the output signal.
amplitude is the amplitude of the output signal. The default is 1.0.
dc offset is the constant offset, or dc value, of the generated output signal. The default is 0.
phase in is the initial phase, in degrees, of output signal when reset phase is TRUE. phase in default is 0.
square wave duty cycle is the duty cycle, in percent, of the output signal when waveform type is set to square.
signal is the generated array of signal samples.
sample rate is the output signal sample rate and is equal to # of samples/duration.
error returns any error or warning from the VI. Refer to Signal Processing Error Codes for more information about these conditions.
phase out is the phase, in degrees, of the next sample of output signal.

Signal Generator by Duration Details

The frequency of the signal is given in Hz (cycles/sec) and the duration is given in seconds.

# of samples and duration completely define a sample rate, which must be greater than 2 times the appropriate signal frequency to meet the Nyquist criterion

If the Nyquist criterion is not met, you must adjust # of samples, duration, or frequency by one of the following methods:

The Signal Generator by Duration VI is reentrant, so you can use it to simulate a continuous acquisition from a function generator. If the input control reset phase is FALSE, subsequent calls to the Signal Generator by Duration VI produce an array containing the next n samples of the selected waveform.

When reset phase is FALSE, the Signal Generator by Duration VI uses the phase out value as its new phase in the next time the VI executes.