Computes the duration of waveform in using the following equation: duration = (#samples-1) x dx. Wire data to the waveform in input to determine the polymorphic instance to use or manually select the instance.


icon

Inputs/Outputs

  • cbool.png open interval? (T)

    open interval? defines the interval over which the input waveform extends. The default is TRUE, which selects an open interval.

    For example, assume an input waveform contains 3 data elements at t = {0, dt, 2dt}. An open interval defines the waveform as extending over the time interval 0 ≤ t < 2dt, and a closed interval defines the waveform as extending over the time interval 0 ≤ t < 3dt.

  • cdigwdt.png waveform in

    waveform in is the digital waveform for which you want the duration.

  • cerrcodeclst.png error in (no error)

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

  • idigwdt.png waveform out

    waveform out returns waveform in unchanged.

  • idbl.png duration

    duration is the duration of the waveform.

  • ierrcodeclst.png error out

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

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Waveform\Waveform - Get Final Time and Duration.vi