DIAdem Help

Command: DataBlCopy

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

Display all  Hide all

Command: DataBlCopy

Copies a data block from channels and inserts the data block into other channels. DIAdem overwrites existing values.

Call DataBlCopy(ChnList, ChnRow, ValNo, ChnList1, TargetLine)

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.
TargetLine Specifies the row number in the target channel.

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

Note

The DataBlCopy command replaces the DataAreaCopy command.

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

The number of source and target channels must be identical.

You cannot perform block operations on text channels.

Example

Starting at the third line, the following example copies 10 values from the channels with the names Channel1 and Channel2 in the first group of the Data Portal and overwrites the values of the first two channels in the second group with these values starting at the second line.

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 DataBlCopy(oMyChannelList1, 3, 10, oMyChannelList2, 2)

Related Topics

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