Creates an output waveform using a formula string to specify the time function to be used.


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 time stamp to zero. The default is FALSE.

  • cdbl.png frequency

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

  • cdbl.png amplitude

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

  • cstr.png formula

    formula is the representation used to generate the signal out waveform. The default is sin(w*t)*sin(2*pi(1)*10).

    The following table lists the defined variable names.
    fFrequency equal to the frequency input
    aAmplitude equal to the amplitude input
    w2*pi*f
    nNumber of samples generated so far
    tNumber of elapsed seconds
    fsSampling frequency equal to sampling info→>Fs
  • 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.

  • imsdt.png signal out

    signal out is the generated waveform.

  • ierrcodeclst.png error out

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

  • Related Information

    Formula Node and Expression Node Functions

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Signal Processing\Waveform Measurements\Waveform Generation Using Formula.vi