DIAdem Help

Command: DataBlInsertVal

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

Display all  Hide all

Command: DataBlInsertVal

Inserts a data block, in which all the values are the same, into channels. DIAdem moves existing values down.

Call DataBlInsertVal(ChnList, ChnRow, ValNo, [ValueInsert], [ValueOverwrite])

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.
[ValueInsert] Specifies the value that DIAdem inserts. The default value of the ValueInsert variable is 0.
[ValueOverwrite] Specifies whether DIAdem overwrites existing channel data. The default value is FALSE, which specifies that DIAdem does not overwrite the input channels.
Note

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

The DataBlInsertVal command replaces the DataAreaInsertV command.

You cannot perform block operations on text channels.

Examples

The following example inserts ten times the value 9 into the channels whose names start with the text Channel from the first group in the Data Portal and into all channels from the second group starting at the fourth line.

VBScriptPython

 

Dim oMyChannelList
Set oMyChannelList = Data.GetChannels("[1]/Channel*")
Call oMyChannelList.Add(Data.Root.ChannelGroups(2))
Call DataBlInsertVal(oMyChannelList, 4, 10, 9, False)

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: DataBlInsert