DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: SetValues for AssignmentChannel <Data>

Method: SetValues for AssignmentChannel <Data>

Inserts a numeric value n times at the specified position into an assignment channel.

Object.SetValues(newVal, [Index], [Count], [BlockOperationMode])
ObjectAssignmentChannel <Data>
Object with this method
newValVariant
Specifies the value to insert.
[Index]LongInteger
Specifies where DIAdem inserts the value. The index starts at the value 1 (default value).
[Count]LongInteger
Specifies how often DIAdem inserts the specified value. The default value is the channel length minus the index plus 1. If the index is greater than the channel length, the default value is 1.
[BlockOperationMode]Enumeration with the following selection terms:
 0
eValueBlockValueOverwrite 
DIAdem overwrites existing values (default).
 1
eValueBlockValueInsert 
DIAdem inserts the values at the specified position.

The following example inserts the value 10, starting at the third position, 50 times into an assignment channel:

VBScriptPython

 

Dim oMyChannel
Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\Report_expl.tdm")
Set oMyChannel = Data.GetChannel("[6]/[4]")
Call oMyChannel.SetValues(10, 3, 50)
In This Section
Was this information helpful?