Deletes data from a channel or multiple channels in a group.

Note This function does not support digital data or DAQmx raw data.


icon

Inputs/Outputs

  • ci64.png count (-1: all)

    count specifies the number of data samples to delete from the .tdms file for each channel. The default is -1, which means this function deletes all data samples from the position you specify in from.

    If the value of count is out of range for a channel, this function automatically sets count to the number of data samples in that channel.

  • cenum.png from (0: start)

    from specifies from where to delete data samples from the .tdms file for each channel.

    0start (default)—Specifies to delete data samples from the beginning of each channel.
    1end—Specifies to delete data samples from the end of each channel.
  • cpath.png file path

    file path is the absolute path to the file you want to open.

  • cstr.png group name in

    group name in specifies the channel group on which to perform the operation.

  • c1dstr.png channel name(s) in

    channel name(s) in specifies the channel to perform the operation on. If you do not wire data to this input, LabVIEW performs the operation on all channels under the same group.

  • cerrcodeclst.png error in (no error)

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

  • cbool.png keep empty group/channel? (T)

    keep empty group/channel? specifies whether to keep the group or channels in the .tdms file if the group or channels are empty after this function deletes data samples. The default is TRUE, which means this function keeps the empty group or channels.

  • ipath.png file path out

    file path out returns the path of the .tdms file on which you performed the operation.

  • ierrcodeclst.png error out

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

  • When the data you wire contains waveform data, LabVIEW sets the following channel properties and waveform attributes:

    • If the waveform attribute NI_ExpXDimension represents time or if this attribute does not exist, LabVIEW sets the following values:
      • wf_start_offset = wf_start_offset + count * wf_increment
      • If the waveform attribute NI_ExpTimeStamp exists, LabVIEW sets NI_ExpTimeStamp = NI_ExpTimeStamp + count * 1/wf_increment
    • If the waveform attribute NI_ExpXDimension represents frequency, LabVIEW sets the following values:
      • wf_start_offset = wf_start_offset + count * 1/wf_increment
      • If the waveform attribute NI_ExpTimeStamp exists, LabVIEW sets NI_ExpTimeStamp = NI_ExpTimeStamp + count * 1/wf_increment
    • After this function deletes data, if the number of data samples in the .tdms file is less than the value of the channel property wf_samples, LabVIEW sets the value of wf_samples to equal the number of data samples in the .tdms file.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\File IO\TDMS\TDMS Delete Data from Channels.vi