DIAdem Help

Command: DataBlAppend

  • Updated2024-09-12
  • 3 minute(s) read

Display all  Hide all

Command: DataBlAppend

Copies data blocks from channels and appends the data blocks to other channels.

Call DataBlAppend(ChnList, ChnRow, ValNo, ChnList1)

Input Parameters

ChnList Specifies one or more channels.
ChnRow Specifies the row number in a channel.
ValNo Specifies the number of values in a channel.
ChnList1 Specifies one or more channels.

The ChnList variable specifies the channels of the source block. The ChnList1 variable specifies the channels of the target block.

Note

The DataBlAppend command replaces the DataAreaAppend command.

The order of the channels you use is not the same as the displayed order in the Data Portal.

To determine the number of the row where DIAdem inserts the copied data block, DIAdem determines which row in the target channels has the last valid value. If the channels are not the same length, the result channel might have gaps.

Source and target channels must not be identical. The number of source and target channels must be identical.

You cannot perform block operations on text channels.

Examples

The following example copies the values of the channels with the names Channel1 and Channel2 from the first group in the Data Portal into the first two channels of the second group.

VBScriptPython

 

Dim oMyChannelList1, oMyChannelList2
Set oMyChannelList1 = Data.GetChannels("[1]/Channel1")
Call oMyChannelList1.Add(Data.Root.ChannelGroups(1).Channels("Channel2"))
Set oMyChannelList2 = Data.GetChannels("[2]/[1]")
Call oMyChannelList2.Add(Data.Root.ChannelGroups(2).Channels(2))
Call DataBlAppend(oMyChannelList1,3,10,oMyChannelList2)

Related Topics

Command: DataAreaAppend | Command: DataAreaCopy | Command: DataAreaDel | Command: DataAreaInsert0 | Command: DataAreaInsert | Command: DataAreaInsertV | Command: DataBlClpCopy | Command: DataBlClpPaste | Command: DataBlCopy | Command: DataBlDel | Command: DataBlInsert | Command: DataBlInsertVal