Command: DataAreaCopy
- Updated2024-09-12
- 4 minute(s) read
Command: DataAreaCopy
Command: DataAreaCopy
Copies a data block from channels and inserts the data block into other channels. DIAdem overwrites existing values.
Input Parameters
ChnArg1 |
Specifies a channel. |
ChnRow |
Specifies the row number in a channel. |
ValNo |
Specifies the number of values in a channel. |
ChnArg2 |
Specifies a further channel. |
TargetChn |
Specifies the target channel. |
TargetLine |
Specifies the row number in the target channel. |
The ChnArg1 channel specifies the first channel of a block. The ChnArg2 channel specifies the last channel of a block.
| Note The DataBlCopy command replaces the DataAreaCopy command. The channels used are in the same order as the channel numbers. This order is not always the same as the order of the channels in the Data Portal. Source and target channels must not be identical. You cannot perform block operations on text channels. |
Examples
The following example copies 10 rows from the channels Group1/Channel1 to Group1/Channel4, starting at the the third row. It inserts these rows into the channels starting at the Group2/Channel1 channel, starting at the second row.
| VBScript | Python |
Call DataAreaCopy("Group1/Channel1",3,10,"Group1/Channel4","Group2/Channel1",2)
Related Topics
Command: DataAreaAppend | Command: DataAreaDel | Command: DataAreaInsert0 | Command: DataAreaInsert | Command: DataAreaInsertV | Command: DataBlAppend | Command: DataBlClpCopy | Command: DataBlClpPaste | Command: DataBlCopy | Command: DataBlDel | Command: DataBlInsert | Command: DataBlInsertVal

