Creates an output waveform based on signal type.


icon

Inputs/Outputs

  • cdbl.png offset

    offset is the DC offset of the signal. The default is 0.0.

  • cbool.png reset signal

    reset signal, if TRUE, resets the phase to the phase control value and the time stamp to zero. The default is FALSE.

  • cenum.png signal type

    signal type is the type of waveform to generate.

    0
    Sine Wave
    (default)
    1
    Triangle Wave
    2
    Square Wave
    3
    Sawtooth Wave
  • cdbl.png frequency

    frequency is the frequency of the waveform in units of hertz. The default is 10.

  • cdbl.png amplitude

    amplitude is the amplitude of the waveform. The amplitude is also the peak voltage. The default is 1.0.

  • cdbl.png phase

    phase is the initial phase, in degrees, of the waveform. The default is 0. The VI ignores phase if reset signal is FALSE.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cnclst.png sampling info

    sampling info contains sampling information.

  • cdbl.png Fs

    Fs is the sampling rate in samples per second. The default is 1000.

  • cdbl.png #s

    #s is the number of samples in the waveform. The default is 1000.

  • cdbl.png square wave duty cycle (%)

    square wave duty cycle is the percentage of time a square wave remains high versus low over one period. The VI uses this parameter only if the signal type is a square wave. The default is 50.

  • imsdt.png signal out

    signal out is the generated waveform.

  • idbl.png phase out

    phase out is the phase of the waveform in degrees.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • This VI remembers the time stamp of the previous waveform generated and continues to increment the time stamp from that point. It takes as inputs the type of waveform, number of samples, phase in, and the frequency of the waveform to be generated in Hz.