Method: SetValues for AssignmentChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > 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])
Object | AssignmentChannel <Data> Object with this method | ||||||
newVal | Variant 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:
|
The following example inserts the value 10, starting at the third position, 50 times into an assignment channel:
VBScript | Python |
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)