Command: DataBlInsert
- Updated2024-09-12
- 3 minute(s) read
Command: DataBlInsert
Command: DataBlInsert
Copies a data block from channels and inserts the data block into other channels. In the process DIAdem moves existing values down.
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 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. If you want to copay a data block from the end of a channel to the beginning of that channel, DIAdem does not copy the data as expected. In this case, instead of using the DataBlInsert command, use the methods SetValuesBlock and GetValuesBlock. The DataBlInsert command replaces the DataAreaInsert command. |
Examples
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 inserts these values into the first two channels in the second group starting at the second line.
| VBScript | Python |
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 DataBlInsert(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: DataBlCopy | Command: DataBlDel | Command: DataBlInsertVal

